langpack.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "strings.h"
#include "cursor.h"
#include "ops.h"
#include "quickdraw.h"
#include "oplist.h"
#include "shell.h"
#include "lang.h"
#include "langinternal.h"
#include "langexternal.h"
#include "langsystem7.h"
#include "tablestructure.h"
#include "byteorder.h"

Include dependency graph for langpack.c:

Go to the source code of this file.

Data Structures

struct  tyoldpackedvalue
struct  typackedvalue

Defines

#define ctsigbytes   19
#define signaturestring   (ptrstring) "\x12" "packed binary data"

Typedefs

typedef tyoldpackedvalueptroldpackedvalue
typedef tyoldpackedvalue ** hdloldpackedvalue
typedef typackedvalueptrpackedvalue
typedef typackedvalue ** hdlpackedvalue

Functions

static boolean langpackdata (long lendata, ptrvoid pdata, hdlpackedvalue hpackedvalue)
static boolean langpackhandle (Handle hdata, hdlpackedvalue hpackedvalue)
boolean langpackvalue (tyvaluerecord val, Handle *h, hdlhashnode hnode)
boolean langpackverb (hdltreenode hparam1, tyvaluerecord *vreturned)
boolean langpackwindowverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean langunpackdata (long lendata, ptrvoid pdata, hdlpackedvalue hpackedvalue, long *ptrixunpack)
static boolean langunpackstring (hdlstring *hstring, hdlpackedvalue hpackedvalue, long *ptrixunpack)
static boolean langunpackhandle (boolean fltemp, Handle *hbinary, hdlpackedvalue hpackedvalue, long *ptrixunpack)
static boolean langunpackexternal (hdlexternalhandle *hexternal, hdlpackedvalue hpackedvalue, long *ptrixunpack)
static boolean langunpackoldheader (tyvaluetype *valuetype, hdlpackedvalue hpackedvalue, long *ptrixunpack)
boolean langunpackvalue (Handle hpacked, tyvaluerecord *val)
boolean langunpackverb (hdltreenode hparam1, tyvaluerecord *vreturned)
boolean langunpackwindowverb (hdltreenode hparam1, tyvaluerecord *vreturned)
boolean langvaluetotextscrap (tyvaluerecord val, Handle htext)


Define Documentation

#define ctsigbytes   19
 

Definition at line 47 of file langpack.c.

#define signaturestring   (ptrstring) "\x12" "packed binary data"
 

Definition at line 49 of file langpack.c.

Referenced by langunpackoldheader().


Typedef Documentation

typedef struct tyoldpackedvalue ** hdloldpackedvalue
 

typedef struct typackedvalue ** hdlpackedvalue
 

typedef struct tyoldpackedvalue * ptroldpackedvalue
 

typedef struct typackedvalue * ptrpackedvalue
 


Function Documentation

static boolean langpackdata long  lendata,
ptrvoid  pdata,
hdlpackedvalue  hpackedvalue
[static]
 

Definition at line 79 of file langpack.c.

References enlargehandle().

Referenced by langpackhandle(), and langpackvalue().

Here is the call graph for this function:

static boolean langpackhandle Handle  hdata,
hdlpackedvalue  hpackedvalue
[static]
 

Definition at line 85 of file langpack.c.

References fl, gethandlesize(), langpackdata(), lockhandle(), nil, and unlockhandle().

Referenced by langpackvalue().

Here is the call graph for this function:

boolean langpackvalue tyvaluerecord  val,
Handle h,
hdlhashnode  hnode
 

Definition at line 102 of file langpack.c.

References addressvaluetype, aliasvaluetype, bigstring, tyvaluedata::binaryvalue, binaryvaluetype, booleanvaluetype, cantpackerror, charvaluetype, tyvaluedata::chvalue, tyvaluedata::codevalue, codevaluetype, convertToMacExtended(), tyvaluerecord::data, tyvaluedata::datevalue, datevaluetype, directionvaluetype, disposehandle(), tyvaluedata::doublevalue, doublevaluetype, tyvaluedata::externalvalue, externalvaluetype, filespecvaluetype, fixedvaluetype, fl, tyvaluedata::flvalue, getaddresspath(), tyPoint::h, hnode, initbeachball(), tyvaluedata::intvalue, intvaluetype, langerror(), langexternalgettypeid(), langexternalmemorypack(), langpackdata(), langpackfileval(), langpackhandle(), langpacktree(), left, tyvaluedata::listvalue, tyvaluedata::longvalue, longvaluetype, newfilledhandle(), novaluetype, objspecvaluetype, oppacklist(), ostypevaluetype, passwordvaluetype, patternvaluetype, tyvaluedata::pointvalue, pointvaluetype, recttodiskrect(), tyvaluedata::rectvalue, rectvaluetype, rgbtodiskrgb(), tyvaluedata::rgbvalue, rgbvaluetype, tyvaluedata::singlevalue, singlevaluetype, stringlength, stringvaluetype, tokenvaluetype, typackedvalue::typeid, tyPoint::v, and tyvaluerecord::valuetype.

Referenced by coercetobinary(), copyvaluedata(), getpackedobject(), langexternalcopyvalue(), langpacktreevisit(), langpackverb(), langpackwindowverb(), langpushlistaddress(), langpushlistlong(), langpushlisttext(), langpushlistval(), langtablecopyvalue(), opsetrefconverb(), opxmlsetrefcon(), osaStore(), setnthlistval(), tablecopyroutine(), and tablecopyverb().

Here is the call graph for this function:

boolean langpackverb hdltreenode  hparam1,
tyvaluerecord vreturned
 

Definition at line 344 of file langpack.c.

References bigstring, fl, flnextparamislast, getparamvalue(), getvarparam(), HNoNode, langpackvalue(), langsetbinaryval(), and setbooleanvalue().

Referenced by builtinvalue().

Here is the call graph for this function:

boolean langpackwindowverb hdltreenode  hparam1,
tyvaluerecord vreturned
 

Definition at line 373 of file langpack.c.

References badwindowerror, BIGSTRING, bigstring, fl, flnextparamislast, getvarparam(), getwinparam(), HNoNode, langpackvalue(), langparamerror(), langsetbinaryval(), nil, setbooleanvalue(), setexternalvalue(), and shellgetexternaldata().

Referenced by langfunctionvalue().

Here is the call graph for this function:

static boolean langunpackdata long  lendata,
ptrvoid  pdata,
hdlpackedvalue  hpackedvalue,
long ptrixunpack
[static]
 

Definition at line 421 of file langpack.c.

References loadfromhandle().

Referenced by langunpackoldheader(), and langunpackvalue().

Here is the call graph for this function:

static boolean langunpackexternal hdlexternalhandle hexternal,
hdlpackedvalue  hpackedvalue,
long ptrixunpack
[static]
 

Definition at line 461 of file langpack.c.

References disposehandle(), fl, initbeachball(), langexternalmemoryunpack(), langunpackhandle(), and right.

Referenced by langunpackvalue().

Here is the call graph for this function:

static boolean langunpackhandle boolean  fltemp,
Handle hbinary,
hdlpackedvalue  hpackedvalue,
long ptrixunpack
[static]
 

Definition at line 446 of file langpack.c.

References gethandlesize(), h, and loadfromhandletohandle().

Referenced by langunpackexternal(), and langunpackvalue().

Here is the call graph for this function:

static boolean langunpackoldheader tyvaluetype valuetype,
hdlpackedvalue  hpackedvalue,
long ptrixunpack
[static]
 

Definition at line 479 of file langpack.c.

References equalstrings(), langunpackdata(), and signaturestring.

Referenced by langunpackvalue().

Here is the call graph for this function:

static boolean langunpackstring hdlstring hstring,
hdlpackedvalue  hpackedvalue,
long ptrixunpack
[static]
 

Definition at line 427 of file langpack.c.

References bigstring, h, loadfromhandle(), long, newheapstring(), and stringlength.

Referenced by langunpackvalue().

Here is the call graph for this function:

boolean langunpackvalue Handle  hpacked,
tyvaluerecord val
 

Definition at line 500 of file langpack.c.

References addressvaluetype, aliasvaluetype, binaryvaluetype, booleanvaluetype, cantunpackerror, charvaluetype, codevaluetype, convertFromMacExtended(), currenthashtable, datevaluetype, directionvaluetype, diskrecttorect(), diskrgbtorgb(), disposehandle(), doublevaluetype, exemptfromtmpstack(), externalvaluetype, filespecvaluetype, fixedvaluetype, fl, gethandlesize(), h, initvalue(), intvaluetype, langerror(), langexternalgetvaluetype(), langunpackdata(), langunpackexternal(), langunpackfileval(), langunpackhandle(), langunpackoldheader(), langunpackstring(), langunpacktree(), longvaluetype, newheapvalue(), nil, novaluetype, objspecvaluetype, oldstringvaluetype, opunpacklist(), ostypevaluetype, passwordvaluetype, patternvaluetype, pointvaluetype, pophashtable(), pullfromhandle(), pushhashtable(), r, rectvaluetype, rgbvaluetype, roottable, setdoublevalue(), singlevaluetype, stringtoaddress(), stringvaluetype, tokenvaluetype, unpack, unpackformaterror, and v.

Referenced by copyvaluedata(), getnthlistval(), langexternalcopyvalue(), langtablecopyvalue(), langunpacktreenode(), langunpackverb(), langunpackwindowverb(), langvisitlistvaluesvisit(), opattributesgetpackedtablevalue(), opattributesgettypestring(), opgetrefconverb(), osaLoad(), setpackedobject(), tablecopyverb(), and tablegetscrapvalue().

Here is the call graph for this function:

boolean langunpackverb hdltreenode  hparam1,
tyvaluerecord vreturned
 

Definition at line 784 of file langpack.c.

References bigstring, disposevaluerecord(), flnextparamislast, getbinaryvalue(), getvarparam(), langsetsymboltableval(), langunpackvalue(), and setbooleanvalue().

Referenced by builtinvalue().

Here is the call graph for this function:

boolean langunpackwindowverb hdltreenode  hparam1,
tyvaluerecord vreturned
 

Definition at line 817 of file langpack.c.

References cantunpackthisexternalerror, tyvaluerecord::data, disposevaluerecord(), tyvaluedata::externalvalue, externalvaluetype, flnextparamislast, fsname, getbinaryvalue(), getfilespecvalue(), isemptystring, langerror(), langexternalsetdirty(), langexternalzoomfilewindow(), langunpackvalue(), nil, setbooleanvalue(), and tyvaluerecord::valuetype.

Referenced by langfunctionvalue().

Here is the call graph for this function:

boolean langvaluetotextscrap tyvaluerecord  val,
Handle  htext
 

Definition at line 865 of file langpack.c.

References bigstring, chlinefeed, chreturn, chtab, externalvaluetype, hashvaltostrings(), langexternalpacktotext(), pushchar(), and pushtexthandle().

Referenced by tablepacktotextvisit().

Here is the call graph for this function:


Generated on Sun Jun 4 15:31:38 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6