langsystypes.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "strings.h"
#include "ops.h"
#include "error.h"
#include "file.h"
#include "lang.h"
#include "langinternal.h"
#include "langipc.h"
#include "langsystem7.h"
#include "oplist.h"
#include "tableinternal.h"
#include "tablestructure.h"

Include dependency graph for langsystypes.c:

Go to the source code of this file.

Functions

boolean langcanusealiases (void)
static boolean findvaluevisit (bigstring bs, hdlhashnode hnode, tyvaluerecord val, ptrvoid valfind)
static boolean langfindvalue (tyvaluerecord val, hdlhashtable *htable, bigstring bsname)
static boolean getostypevalnamevisit (bigstring bsname, hdlhashnode hnode, tyvaluerecord val, ptrvoid refcon)
static boolean getostypedisplaystring (OSType key, bigstring bsdisplay)
static boolean getlimitedvaluestring (tyvaluerecord *val, short limit, char chquote, bigstring bsvalue)
boolean getobjectmodeldisplaystring (tyvaluerecord *vitem, bigstring bsdisplay)
boolean filespectoalias (const tyfilespec *fs, boolean flminimal, AliasHandle *halias)
boolean aliastostring (Handle halias, bigstring bs)
boolean aliastofilespec (AliasHandle halias, tyfilespec *fs)
boolean coercetoalias (tyvaluerecord *v)
boolean filespecaddvalue (tyvaluerecord *v1, tyvaluerecord *v2, tyvaluerecord *vreturned)
boolean filespecsubtractvalue (tyvaluerecord *v1, tyvaluerecord *v2, tyvaluerecord *vreturned)
boolean langpackfileval (const tyvaluerecord *vfile, Handle *hpacked)
boolean langunpackfileval (Handle hpacked, tyvaluerecord *vfile)

Variables

static byte bsellipses [] = "\x03..."
static byte filerecordpath [] = "\x04" "path"
static byte filerecordalias [] = "\x05" "alias"
static byte filerecordmachine [] = "\x07" "machine"
static byte filerecordplatform [] = "\x04" "plat"
static byte bsplatformmac [] = "\x03" "mac"
static byte bsplatformwin [] = "\x03" "win"


Function Documentation

boolean aliastofilespec AliasHandle  halias,
tyfilespec fs
 

Definition at line 708 of file langsystypes.c.

References bigstring, bsfunctionname, fileparsevolname(), langcanusealiases(), langerrorenabled(), langgetmiscstring(), langparamerror(), nil, noErr, oserror(), setoserrorparam(), unimplementedverberror, and unknownstring.

Referenced by coercetofilespec(), hashunpacktable(), and langunpackfileval().

Here is the call graph for this function:

boolean aliastostring Handle  halias,
bigstring  bs
 

Definition at line 623 of file langsystypes.c.

References aliasvaluetype, bigstring, bsfunctionname, filespectopath(), h, insertstring(), isemptystring, langcanusealiases(), langgettypestring(), langparamerror(), nil, noErr, pushchar(), setemptystring, and unimplementedverberror.

Referenced by coercetostring(), and langpackfileval().

Here is the call graph for this function:

boolean coercetoalias tyvaluerecord v  ) 
 

Definition at line 776 of file langsystypes.c.

References aliasvaluetype, binaryvaluetype, bsfunctionname, coercebinaryval(), coercelistvalue(), coercetofilespec(), filespecvaltoalias(), filespecvaluetype, flinhibitnilcoercion, langcoerceerror(), langparamerror(), novaluetype, stringtoalias(), stringvaluetype, unimplementedverberror, and v.

Referenced by coercevalue(), and getaliasparam().

Here is the call graph for this function:

boolean filespecaddvalue tyvaluerecord v1,
tyvaluerecord v2,
tyvaluerecord vreturned
 

Definition at line 827 of file langsystypes.c.

References addvalue(), bigstring, coercetostring(), copystring(), fileexists(), fileisfolder(), insertchar(), insertstring(), noErr, pullstringvalue(), pushchar(), setfilespecvalue(), and stringfindchar().

Here is the call graph for this function:

boolean filespecsubtractvalue tyvaluerecord v1,
tyvaluerecord v2,
tyvaluerecord vreturned
 

Definition at line 929 of file langsystypes.c.

References bigstring, coercetostring(), noErr, pullstringvalue(), setfilespecvalue(), stringfindchar(), subtractstrings(), and subtractvalue().

Here is the call graph for this function:

boolean filespectoalias const tyfilespec fs,
boolean  flminimal,
AliasHandle halias
 

Definition at line 556 of file langsystypes.c.

References bigstring, bsfunctionname, filespectopath(), langerrorenabled(), langparamerror(), nil, noErr, oserror(), setoserrorparam(), stringlength, and unimplementedverberror.

Referenced by filespecvaltoalias(), hashpackvisit(), and langpackfileval().

Here is the call graph for this function:

static boolean findvaluevisit bigstring  bs,
hdlhashnode  hnode,
tyvaluerecord  val,
ptrvoid  valfind
[static]
 

Definition at line 156 of file langsystypes.c.

References tyvaluerecord::data, and tyvaluedata::longvalue.

static boolean getlimitedvaluestring tyvaluerecord val,
short  limit,
char  chquote,
bigstring  bsvalue
[static]
 

Definition at line 339 of file langsystypes.c.

References binarytodesc(), binaryvaluetype, bsellipses, chdoublequote, chnul, coercetostring(), disposevaluerecord(), insertchar(), langdeparsestring(), noErr, pullstringvalue(), pushchar(), pushstring(), setdescriptorvalue(), setstringlength, stringlength, typeAERecord, typeChar, and v.

Here is the call graph for this function:

boolean getobjectmodeldisplaystring tyvaluerecord vitem,
bigstring  bsdisplay
 

Definition at line 414 of file langsystypes.c.

References addressvaluetype, aliasvaluetype, BIGSTRING, charvaluetype, chdoublequote, chnul, chsinglequote, copystring(), datevaluetype, filespecvaluetype, getlimitedvaluestring(), getostypedisplaystring(), insertchar(), isemptystring, justnilstring, langgetmiscstring(), novaluetype, objspecvaluetype, ostypevaluetype, pointvaluetype, pushchar(), rectvaluetype, rgbvaluetype, stringvaluetype, and v.

Here is the call graph for this function:

static boolean getostypedisplaystring OSType  key,
bigstring  bsdisplay
[static]
 

Definition at line 281 of file langsystypes.c.

References BIGSTRING, chsinglequote, equalstrings(), getostypevalnamevisit(), hashinversesearch(), iacgluetable, isemptystring, langdeparsestring(), langfindvalue(), nil, objectmodeltable, ostypetostring(), parsedialogstring(), pophashtable(), pushhashtable(), and setostypevalue().

Here is the call graph for this function:

static boolean getostypevalnamevisit bigstring  bsname,
hdlhashnode  hnode,
tyvaluerecord  val,
ptrvoid  refcon
[static]
 

Definition at line 229 of file langsystypes.c.

References currenthashtable, tytablevariable::flinmemory, gettablevariable(), langfindvalue(), pophashtable(), and pushhashtable().

Here is the call graph for this function:

boolean langcanusealiases void   ) 
 

Definition at line 141 of file langsystypes.c.

References cantusealiaseserror, and langgestaltcheck().

Referenced by aliastofilespec(), aliastostring(), filespecvaltoalias(), and stringtoalias().

Here is the call graph for this function:

static boolean langfindvalue tyvaluerecord  val,
hdlhashtable htable,
bigstring  bsname
[static]
 

Definition at line 163 of file langsystypes.c.

References bigstring, currenthashtable, tyvaluerecord::data, findvaluevisit(), getaddressvalue(), h, hashinversesearch(), hashtablelookup(), hnode, langgetwithvaluename(), tyvaluedata::longvalue, nil, and setemptystring.

Here is the call graph for this function:

boolean langpackfileval const tyvaluerecord vfile,
Handle hpacked
 

Definition at line 984 of file langsystypes.c.

References aliastostring(), aliasvaluetype, assert, bigstring, bsplatformmac, bsplatformwin, copyhandle(), copystring(), disablelangerror(), enablelangerror(), filerecordalias, filerecordmachine, filerecordpath, filerecordplatform, filespectoalias(), filespectopath(), filespecvaluetype, getmachinename(), nil, opdisposelist(), opnewlist(), oppacklist(), oppushhandle(), and oppushstring().

Referenced by hashpackvisit(), and langpackvalue().

Here is the call graph for this function:

boolean langunpackfileval Handle  hpacked,
tyvaluerecord vfile
 

Definition at line 1084 of file langsystypes.c.

References aliastofilespec(), aliasvaluetype, assert, bigstring, bsplatformmac, bsplatformwin, copyhandle(), disablelangerror(), enablelangerror(), equalidentifiers(), filerecordalias, filerecordpath, filerecordplatform, filespecvaluetype, newfilledhandle(), newtexthandle(), opdisposelist(), opgetlisthandle(), opgetliststring(), opunpacklist(), pathtofilespec(), and stringvaluetype.

Referenced by hashunpacktable(), and langunpackvalue().

Here is the call graph for this function:


Variable Documentation

byte bsellipses[] = "\x03..." [static]
 

Definition at line 51 of file langsystypes.c.

Referenced by getlimitedvaluestring(), and pushdiskchar().

byte bsplatformmac[] = "\x03" "mac" [static]
 

Definition at line 62 of file langsystypes.c.

Referenced by langpackfileval(), and langunpackfileval().

byte bsplatformwin[] = "\x03" "win" [static]
 

Definition at line 64 of file langsystypes.c.

Referenced by langpackfileval(), and langunpackfileval().

byte filerecordalias[] = "\x05" "alias" [static]
 

Definition at line 56 of file langsystypes.c.

Referenced by langpackfileval(), and langunpackfileval().

byte filerecordmachine[] = "\x07" "machine" [static]
 

Definition at line 58 of file langsystypes.c.

Referenced by langpackfileval().

byte filerecordpath[] = "\x04" "path" [static]
 

Definition at line 54 of file langsystypes.c.

Referenced by langpackfileval(), and langunpackfileval().

byte filerecordplatform[] = "\x04" "plat" [static]
 

Definition at line 60 of file langsystypes.c.

Referenced by langpackfileval(), and langunpackfileval().


Generated on Mon Jun 5 04:03:44 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6