odbengine.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "dialogs.h"
#include "file.h"
#include "font.h"
#include "resources.h"
#include "ops.h"
#include "quickdraw.h"
#include "strings.h"
#include "langexternal.h"
#include "langinternal.h"
#include "langipc.h"
#include "tablestructure.h"
#include "tableinternal.h"
#include "shell.rsrc.h"
#include "odbinternal.h"
#include "timedate.h"
#include "byteorder.h"

Include dependency graph for odbengine.c:

Go to the source code of this file.

Data Structures

struct  tycancoonrecord
struct  tycancoonwindowinfo
struct  tyversion2cancoonrecord

Defines

#define cancoonversionnumber   0x03
#define ctwindowinfo   6
#define odbexpandtodotparams(bs, htable, bsname)   langexpandtodotparams(bs, htable, bsname)

Typedefs

typedef tycancoonrecordptrcancoonrecord
typedef tycancoonrecord ** hdlcancoonrecord

Functions

boolean alertdialog (bigstring bs)
static boolean disposecancoonrecord (hdlcancoonrecord hcancoon)
static boolean newcancoonrecord (hdlcancoonrecord *hcancoon)
static boolean ccloadsystemtable (hdlcancoonrecord hcancoon, dbaddress adr)
static boolean odberrorroutine (bigstring bs, ptrvoid refcon)
static void setcancoonglobals (hdlcancoonrecord hcancoon)
static void clearcancoonglobals (void)
static boolean loadversion2cancoonfile (dbaddress adr, hdlcancoonrecord hcancoon)
static short tablecomparenames (hdlhashtable ht, hdlhashnode hnode1, hdlhashnode hnode2)
static boolean odbtabledirty (hdlhashtable htable, const bigstring bsname)
static boolean odbsymbolchanged (hdlhashtable htable, const bigstring bsname, hdlhashnode hnode, boolean flvalue)
static boolean odbsymbolunlinking (hdlhashtable ht, hdlhashnode hn)
static void initlangcallbacks (void)
static boolean odbvaltotable (tyvaluerecord val, hdlhashtable *htable, hdlhashnode hnode)
pascal boolean odbNewFile (hdlfilenum fnum)
pascal boolean odbOpenFile (hdlfilenum fnum, odbref *odb, boolean flreadonly)
pascal boolean odbSaveFile (odbref odb)
pascal boolean odbCloseFile (odbref odb)
pascal boolean odbDefined (odbref odb, bigstring bspath)
pascal boolean odbDelete (odbref odb, bigstring bspath)
pascal boolean odbGetType (odbref odb, bigstring bspath, OSType *odbType)
pascal boolean odbGetValue (odbref odb, bigstring bspath, odbValueRecord *value)
pascal boolean odbSetValue (odbref odb, bigstring bspath, odbValueRecord *value)
pascal boolean odbNewTable (odbref odb, bigstring bspath)
pascal boolean odbCountItems (odbref odb, bigstring bspath, long *count)
pascal boolean odbGetNthItem (odbref odb, bigstring bspath, long n, bigstring bsname)
pascal boolean odbGetModDate (odbref odb, bigstring bspath, unsigned long *date)
pascal void odbDisposeValue (odbref odb, odbValueRecord *value)
pascal void odbGetError (bigstring bs)

Variables

boolean fldatabasesaveas
static byte canthandlethistypeerror [] = "\x43" "This version of ODB Engine can not get or set objects of this type."
static bigstring bserror = "\0"
static hdlcancoonrecord cancoonglobals = nil


Define Documentation

#define cancoonversionnumber   0x03
 

Definition at line 72 of file odbengine.c.

#define ctwindowinfo   6
 

Definition at line 84 of file odbengine.c.

#define odbexpandtodotparams bs,
htable,
bsname   )     langexpandtodotparams(bs, htable, bsname)
 

Definition at line 353 of file odbengine.c.

Referenced by odbCountItems(), odbDefined(), odbDelete(), odbGetModDate(), odbGetNthItem(), odbGetType(), odbGetValue(), odbNewTable(), and odbSetValue().


Typedef Documentation

typedef struct tycancoonrecord ** hdlcancoonrecord
 

typedef struct tycancoonrecord * ptrcancoonrecord
 


Function Documentation

boolean alertdialog bigstring  bs  ) 
 

Definition at line 137 of file odbengine.c.

References bserror, and copystring().

Here is the call graph for this function:

static boolean ccloadsystemtable hdlcancoonrecord  hcancoon,
dbaddress  adr
[static]
 

Definition at line 197 of file odbengine.c.

References assert, cleartablestructureglobals(), currenthashtable, fl, hashtablestack, roottable, rootvariable, tableloadsystemtable(), and tablevalidate().

Here is the call graph for this function:

static void clearcancoonglobals void   )  [static]
 

Definition at line 268 of file odbengine.c.

References cancoonglobals, cleartablestructureglobals(), currenthashtable, databasedata, hashtablestack, and nil.

Here is the call graph for this function:

static boolean disposecancoonrecord hdlcancoonrecord  hcancoon  )  [static]
 

Definition at line 146 of file odbengine.c.

References cleartablestructureglobals(), disposehandle(), nil, and tabledisposetable().

Here is the call graph for this function:

static void initlangcallbacks void   )  [static]
 

Definition at line 340 of file odbengine.c.

References tylangcallbacks::comparenodescallback, langcallbacks, odbsymbolchanged(), odbsymbolunlinking(), odbtabledirty(), tylangcallbacks::symbolchangedcallback, tylangcallbacks::symboldeletedcallback, tylangcallbacks::symbolinsertedcallback, tylangcallbacks::symbolunlinkingcallback, and tablecomparenames().

Referenced by odbOpenFile().

Here is the call graph for this function:

static boolean loadversion2cancoonfile dbaddress  adr,
hdlcancoonrecord  hcancoon
[static]
 

Definition at line 282 of file odbengine.c.

References assert, ccloadsystemtable(), dbreference(), info, and roottable.

Here is the call graph for this function:

static boolean newcancoonrecord hdlcancoonrecord hcancoon  )  [static]
 

Definition at line 174 of file odbengine.c.

References disposehandle(), and newclearhandle().

Here is the call graph for this function:

pascal boolean odbCloseFile odbref  odb  ) 
 

Definition at line 606 of file odbengine.c.

References bserror, clearcancoonglobals(), dbdispose(), disposecancoonrecord(), nil, setcancoonglobals(), and setemptystring.

Referenced by odbclosefile().

Here is the call graph for this function:

pascal boolean odbCountItems odbref  odb,
bigstring  bspath,
long count
 

Definition at line 840 of file odbengine.c.

References bigstring, bserror, hashcountitems(), hnode, langsymbolreference(), odbexpandtodotparams, odbvaltotable(), setcancoonglobals(), and setemptystring.

Referenced by odbcountitems().

Here is the call graph for this function:

pascal boolean odbDefined odbref  odb,
bigstring  bspath
 

Definition at line 634 of file odbengine.c.

References bigstring, bserror, disablelangerror(), enablelangerror(), fl, hashsymbolexists(), odbexpandtodotparams, pophashtable(), pushhashtable(), setcancoonglobals(), and setemptystring.

Referenced by odbdefined().

Here is the call graph for this function:

pascal boolean odbDelete odbref  odb,
bigstring  bspath
 

Definition at line 667 of file odbengine.c.

References bigstring, bserror, hashtabledelete(), odbexpandtodotparams, setcancoonglobals(), and setemptystring.

Referenced by odbdelete().

Here is the call graph for this function:

pascal void odbDisposeValue odbref  odb,
odbValueRecord value
 

Definition at line 923 of file odbengine.c.

References tyvaluedata::binaryvalue, binaryvaluetype, bserror, tyvaluerecord::data, disposevaluerecord(), initvalue(), langexternalgetvaluetype(), setcancoonglobals(), and setemptystring.

Referenced by odbdisposevalue().

Here is the call graph for this function:

static boolean odberrorroutine bigstring  bs,
ptrvoid  refcon
[static]
 

Definition at line 234 of file odbengine.c.

References bserror, and copystring().

Referenced by setcancoonglobals().

Here is the call graph for this function:

pascal void odbGetError bigstring  bs  ) 
 

Definition at line 945 of file odbengine.c.

References bserror, and copystring().

Here is the call graph for this function:

pascal boolean odbGetModDate odbref  odb,
bigstring  bspath,
unsigned long date
 

Definition at line 897 of file odbengine.c.

References bigstring, bserror, hnode, langsymbolreference(), odbexpandtodotparams, odbvaltotable(), setcancoonglobals(), and setemptystring.

Referenced by odbgetmoddate().

Here is the call graph for this function:

pascal boolean odbGetNthItem odbref  odb,
bigstring  bspath,
long  n,
bigstring  bsname
 

Definition at line 870 of file odbengine.c.

References bserror, hashgetiteminfo(), hnode, langsymbolreference(), nil, odbexpandtodotparams, odbvaltotable(), setcancoonglobals(), and setemptystring.

Referenced by odbgetnthitem().

Here is the call graph for this function:

pascal boolean odbGetType odbref  odb,
bigstring  bspath,
OSType odbType
 

Definition at line 683 of file odbengine.c.

References bigstring, tyvaluedata::binaryvalue, binaryvaluetype, bserror, tyvaluerecord::data, getbinarytypeid(), hnode, langexternalgettypeid(), langsymbolreference(), odbexpandtodotparams, setcancoonglobals(), setemptystring, and tyvaluerecord::valuetype.

Referenced by odbgettype().

Here is the call graph for this function:

pascal boolean odbGetValue odbref  odb,
bigstring  bspath,
odbValueRecord value
 

Definition at line 709 of file odbengine.c.

References bigstring, bserror, canthandlethistypeerror, copyvaluedata(), copyvaluerecord(), exemptfromtmpstack(), externalvaluetype, hnode, langerrormessage(), langexternalgettypeid(), langsymbolreference(), odbexpandtodotparams, setcancoonglobals(), setemptystring, and tyvaluerecord::valuetype.

Referenced by odbgetvalue().

Here is the call graph for this function:

pascal boolean odbNewFile hdlfilenum  fnum  ) 
 

Definition at line 463 of file odbengine.c.

References bserror, cancoonversionnumber, cancoonview, clearbytes(), dbassign(), dbclose(), dbdispose(), dbnew(), dbsetview(), fl, info, nil, nildbaddress, and setemptystring.

Referenced by ccstart(), and odbnewfile().

Here is the call graph for this function:

pascal boolean odbNewTable odbref  odb,
bigstring  bspath
 

Definition at line 811 of file odbengine.c.

References bigstring, bserror, disposevaluerecord(), exemptfromtmpstack(), hashtableassign(), idtableprocessor, langexternalnewvalue(), nil, odbexpandtodotparams, setcancoonglobals(), and setemptystring.

Referenced by odbnewtable().

Here is the call graph for this function:

pascal boolean odbOpenFile hdlfilenum  fnum,
odbref odb,
boolean  flreadonly
 

Definition at line 499 of file odbengine.c.

References alertdialog(), bserror, cancoonversionnumber, cancoonview, clearcancoonglobals(), databasedata, dbdispose(), dbgetview(), dbopenfile(), dbreference(), disposecancoonrecord(), error, tycancoonrecord::hdatabase, initlangcallbacks(), loadversion2cancoonfile(), newcancoonrecord(), nil, and setemptystring.

Referenced by ccstart(), and odbopenfile().

Here is the call graph for this function:

pascal boolean odbSaveFile odbref  odb  ) 
 

Definition at line 559 of file odbengine.c.

References bserror, cancoonversionnumber, cancoonview, clearbytes(), dbassign(), dbflushreleasestack(), dbgetview(), dbreference(), dbsetview(), info, nildbaddress, setcancoonglobals(), setemptystring, shellsave(), sizeof(), and tablesavesystemtable().

Referenced by odbsavefile().

Here is the call graph for this function:

pascal boolean odbSetValue odbref  odb,
bigstring  bspath,
odbValueRecord value
 

Definition at line 758 of file odbengine.c.

References bigstring, tyvaluedata::binaryvalue, bserror, canthandlethistypeerror, copyvaluerecord(), tyvaluerecord::data, disposevaluerecord(), exemptfromtmpstack(), externalvaluetype, hashtableassign(), initvalue(), langerrormessage(), langexternalgetvaluetype(), odbexpandtodotparams, setbinaryvalue(), setcancoonglobals(), setemptystring, and value.

Referenced by odbsetvalue().

Here is the call graph for this function:

static boolean odbsymbolchanged hdlhashtable  htable,
const bigstring  bsname,
hdlhashnode  hnode,
boolean  flvalue
[static]
 

Definition at line 329 of file odbengine.c.

References odbtabledirty().

Referenced by initlangcallbacks().

Here is the call graph for this function:

static boolean odbsymbolunlinking hdlhashtable  ht,
hdlhashnode  hn
[static]
 

Definition at line 334 of file odbengine.c.

Referenced by initlangcallbacks().

static boolean odbtabledirty hdlhashtable  htable,
const bigstring  bsname
[static]
 

Definition at line 319 of file odbengine.c.

References timenow().

Referenced by initlangcallbacks(), and odbsymbolchanged().

Here is the call graph for this function:

static boolean odbvaltotable tyvaluerecord  val,
hdlhashtable htable,
hdlhashnode  hnode
[static]
 

Definition at line 389 of file odbengine.c.

References bigstring, getstringlist(), hnode, langerrormessage(), langexternalvaltotable(), namenottableerror, and tableerrorlist.

Referenced by odbCountItems(), odbGetModDate(), and odbGetNthItem().

Here is the call graph for this function:

static void setcancoonglobals hdlcancoonrecord  hcancoon  )  [static]
 

Definition at line 243 of file odbengine.c.

References cancoonglobals, currenthashtable, databasedata, tylangcallbacks::errormessagecallback, hashtablestack, langcallbacks, odberrorroutine(), roottable, and settablestructureglobals().

Here is the call graph for this function:

static short tablecomparenames hdlhashtable  ht,
hdlhashnode  hnode1,
hdlhashnode  hnode2
[static]
 

Definition at line 303 of file odbengine.c.

References alllower(), bigstring, comparestrings(), and gethashkey.

Referenced by initlangcallbacks(), tablecomparekinds(), and tablecomparenodes().

Here is the call graph for this function:


Variable Documentation

bigstring bserror = "\0" [static]
 

Definition at line 131 of file odbengine.c.

Referenced by alertdialog(), getoutlinevalue(), gettableparam(), inetdsupervisor(), issafemacro(), kernelfunctionvalue(), landgetmenuarray(), landgetmenuhandles(), landrunmenuitem(), langerrorcopy(), langerrordrawtext(), langipcggettableparam(), langipcmenuprocesskilled(), langipcmessage(), langipcsendmenumessage(), languntraperrors(), mrcalendargetmostrecentaddress(), mrcalendargetmostrecentdayverb(), mrcalendargetnextaddress(), mrcalendargetnextdayverb(), namedobjecterror(), odbCloseFile(), odbCountItems(), odbDefined(), odbDelete(), odbDisposeValue(), odberror(), odberrorroutine(), odbGetError(), odbGetModDate(), odbGetNthItem(), odbGetType(), odbGetValue(), odbNewFile(), odbNewTable(), odbOpenFile(), odbSaveFile(), odbSetValue(), osacomponenterror(), verbmakefilespec(), webservercallfilters(), webservercallresponder(), and xmlgetaddresslistverb().

hdlcancoonrecord cancoonglobals = nil [static]
 

Definition at line 133 of file odbengine.c.

byte canthandlethistypeerror[] = "\x43" "This version of ODB Engine can not get or set objects of this type." [static]
 

Definition at line 79 of file odbengine.c.

Referenced by odbGetValue(), and odbSetValue().

boolean fldatabasesaveas
 

Definition at line 77 of file odbengine.c.


Generated on Thu Jun 8 01:21:52 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6