db.h File Reference

#include "memory.h"

Include dependency graph for db.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tydatabaserecord

Defines

#define dbinclude
#define nildbaddress   0L
#define ctviews   3
#define cancoonview   0

Typedefs

typedef long dbaddress
typedef longptrdbaddress
typedef long ** hdldbaddress
typedef tydatabaserecordptrdatabaserecord
typedef tydatabaserecord ** hdldatabaserecord

Functions

boolean dbpushreleasestack (dbaddress, long)
boolean dbpushdatabase (hdldatabaserecord)
boolean dbpopdatabase (void)
boolean dbreference (dbaddress, long, ptrvoid)
boolean dbrefhandle (dbaddress, Handle *)
boolean dbassign (dbaddress *, long, ptrvoid)
boolean dbcopy (dbaddress, dbaddress *)
boolean dballochandle (Handle, dbaddress *)
boolean dbassignhandle (Handle, dbaddress *)
boolean dbsavehandle (Handle, dbaddress *)
boolean dbrefheapstring (dbaddress, hdlstring *)
boolean dbassignheapstring (dbaddress *, hdlstring)
void dbsetview (short, dbaddress)
void dbgetview (short, dbaddress *)
void dbcurrentdatabase (hdldatabaserecord)
void dbgetcurrentdatabase (hdldatabaserecord *)
boolean dbflushreleasestack (void)
boolean dbfnumchanged (hdlfilenum)
boolean dbdispose (void)
boolean dbnew (hdlfilenum)
boolean dbopenfile (hdlfilenum, boolean)
boolean dbclose (void)
boolean dbstartsaveas (hdlfilenum)
boolean dbendsaveas (void)
boolean statsblockinuse (dbaddress, bigstring)
boolean dbstatsmessage (hdldatabaserecord, boolean)
boolean statsstart (void)

Variables

hdldatabaserecord databasedata
boolean fldatabasesaveas


Define Documentation

#define cancoonview   0
 

Definition at line 47 of file db.h.

Referenced by ccfindusedblocks(), ccloadfile(), ccnewrecord(), ccsavefile(), odbNewFile(), odbOpenFile(), and odbSaveFile().

#define ctviews   3
 

Definition at line 46 of file db.h.

Referenced by dbflushheader(), and dbopenfile().

#define dbinclude
 

Definition at line 31 of file db.h.

#define nildbaddress   0L
 

Definition at line 43 of file db.h.

Referenced by attachscript(), ccfindusedblocks(), ccnewrecord(), ccsavefile(), dballocate(), dballochandle(), dbassign(), dbassignhandle(), dbassignheapstring(), dbassignstring(), dbcopy(), dbfindpreviousavail(), dbgetsize(), dbpushreleasestack(), dbreadshadowavaillist(), dbrefhandle(), dbrefstring(), dbrelease(), dbsavehandle(), dbsetavaillink(), dbshadowavaillist(), dbwriteavailnode(), dbwriteshadowavaillist(), hashpackscalar(), langexternalsetdatabase(), mecopyrefconroutine(), mehaslinkedtext(), meloadoutline(), meloadscriptoutline(), mepackscriptvisit(), meunpackmenustructure(), meunpackscriptvisit(), odbNewFile(), odbSaveFile(), opverbunload(), pictclose(), statsblockinuse(), statscompute(), tableloadsystemtable(), and tableverbinmemory().


Typedef Documentation

typedef long dbaddress
 

Definition at line 49 of file db.h.

typedef struct tydatabaserecord ** hdldatabaserecord
 

typedef long ** hdldbaddress
 

Definition at line 49 of file db.h.

typedef struct tydatabaserecord * ptrdatabaserecord
 

typedef long * ptrdbaddress
 

Definition at line 49 of file db.h.


Function Documentation

boolean dballochandle Handle  ,
dbaddress
 

Definition at line 2111 of file db.c.

References dballocate(), fl, gethandlesize(), h, lockhandle(), nil, nildbaddress, and unlockhandle().

Referenced by dbassignhandle().

Here is the call graph for this function:

boolean dbassign dbaddress ,
long  ,
ptrvoid 
 

Definition at line 1905 of file db.c.

References DB_MSG_2, dballocate(), dbassignfreeblockerror, dberror(), dbmove(), dbreadheader(), dbrelease(), dbsetsize(), fldatabasesaveas, and nildbaddress.

Referenced by ccsavefile(), dbassignhandle(), dbassignstring(), dbsavehandle(), mesavemenustructure(), odbNewFile(), and odbSaveFile().

Here is the call graph for this function:

boolean dbassignhandle Handle  ,
dbaddress
 

Definition at line 2133 of file db.c.

References dballochandle(), dbassign(), fl, gethandlesize(), lockhandle(), nil, nildbaddress, and unlockhandle().

Referenced by ccsavefile(), hashpackscalar(), opverbpack(), pictverbpack(), and wpverbpack().

Here is the call graph for this function:

boolean dbassignheapstring dbaddress ,
hdlstring 
 

Definition at line 2091 of file db.c.

References bigstring, copyheapstring(), dbassignstring(), dbreleasestring(), fldatabasesaveas, isemptystring, and nildbaddress.

Referenced by ccsavefile().

Here is the call graph for this function:

boolean dbclose void   ) 
 

Definition at line 2574 of file db.c.

References databasedata, dbflushheader(), dbzeroreleasestack(), and setdirty.

Referenced by dbendsaveas(), and odbNewFile().

Here is the call graph for this function:

boolean dbcopy dbaddress  ,
dbaddress
 

Definition at line 1992 of file db.c.

References dballocate(), dbgetsize(), dbreference(), disposehandle(), h, lockhandle(), newhandle(), nildbaddress, and unlockhandle().

Referenced by hashpackscalar(), mesaveasscriptvisit(), opverbpack(), pictverbpack(), and wpverbpack().

Here is the call graph for this function:

void dbcurrentdatabase hdldatabaserecord   ) 
 

Definition at line 2223 of file db.c.

References databasedata, and nil.

boolean dbdispose void   ) 
 

Definition at line 2420 of file db.c.

References databasedata, dbzeroreleasestack(), disposehandle(), and nil.

Referenced by ccdisposerecord(), ccloadfile(), ccnewrecord(), dbendsaveas(), dbnew(), odbCloseFile(), odbNewFile(), and odbOpenFile().

Here is the call graph for this function:

boolean dbendsaveas void   ) 
 

Definition at line 2602 of file db.c.

References dbclose(), dbdispose(), dbswapglobals(), fl, and fldatabasesaveas.

Referenced by ccsavefile().

Here is the call graph for this function:

boolean dbflushreleasestack void   ) 
 

Definition at line 2372 of file db.c.

References dbrelease(), disposehandle(), gethandlesize(), nil, and rollbeachball().

Referenced by ccsavefile(), and odbSaveFile().

Here is the call graph for this function:

boolean dbfnumchanged hdlfilenum   ) 
 

Definition at line 2236 of file db.c.

References databasedata, dbflushheader(), tydatabaserecord::fnumdatabase, long, and setdirty.

Referenced by ccfnumchanged().

Here is the call graph for this function:

void dbgetcurrentdatabase hdldatabaserecord  ) 
 

Definition at line 2230 of file db.c.

References databasedata.

void dbgetview short  ,
dbaddress
 

Definition at line 2217 of file db.c.

Referenced by ccfindusedblocks(), ccloadfile(), ccsavefile(), odbOpenFile(), and odbSaveFile().

boolean dbnew hdlfilenum   ) 
 

Definition at line 2438 of file db.c.

References assert, databasedata, dbdispose(), dbflushheader(), dbshadowavaillist(), dbsystemidMac, dbsystemidWin32, dbversionnumber, dbversionnumberminor, firstphysicaladdress, tydatabaserecord::fnumdatabase, long, newclearhandle(), and setdirty.

Referenced by ccnewrecord(), dbstartsaveas(), and odbNewFile().

Here is the call graph for this function:

boolean dbopenfile hdlfilenum  ,
boolean 
 

Definition at line 2484 of file db.c.

References assert, tydatabaserecord::availlist, ctviews, databasedata, dbread(), error, tydatabaserecord::extensions, tydatabaserecord::flags, tydatabaserecord::fnumdatabase, tydatabaserecord::headerLength, long, longsizeof, tydatabaserecord::longversionMajor, tydatabaserecord::longversionMinor, newclearhandle(), tydatabaserecord::u, and tydatabaserecord::views.

Referenced by ccloadfile(), and odbOpenFile().

Here is the call graph for this function:

boolean dbpopdatabase void   ) 
 

Definition at line 248 of file db.c.

References databasedata, and databasestack.

Referenced by additemtopagetable(), dbstatsmessage(), decompilespecialtable(), disposehashnode(), hashassign(), hashpackscalar(), hashresolvevalue(), langexternalrefdata(), medisposemenurecord(), meloadscriptoutline(), menuverbinmemory(), mereleaserefconroutine(), mesavemenurecord(), opverbcopyvalue(), opverbinmemory(), pictverbinmemory(), and tableverbinmemory().

boolean dbpushdatabase hdldatabaserecord   ) 
 

Definition at line 225 of file db.c.

References ctdatabasestack, databasedata, databasestack, DebugStr(), nil, and STR_database_stack_overflow.

Referenced by additemtopagetable(), dbstatsmessage(), decompilespecialtable(), disposehashnode(), hashassign(), hashpackscalar(), hashresolvevalue(), langexternalrefdata(), medisposemenurecord(), meloadscriptoutline(), menuverbinmemory(), mereleaserefconroutine(), mesavemenurecord(), opverbcopyvalue(), opverbinmemory(), pictverbinmemory(), and tableverbinmemory().

Here is the call graph for this function:

boolean dbpushreleasestack dbaddress  ,
long 
 

Definition at line 2341 of file db.c.

References enlargehandle(), newclearhandle(), nil, and nildbaddress.

Referenced by disposevaluerecord(), hashresolvevalue(), hashunpacktable(), langexternaldisposevariable(), medisposemenurecord(), and mereleaserefconroutine().

Here is the call graph for this function:

boolean dbreference dbaddress  ,
long  ,
ptrvoid 
 

Definition at line 1173 of file db.c.

References dberror(), dbfreeblockerror, dbread(), dbreadheader(), min, and sizeheader.

Referenced by ccfindusedblocks(), ccloadfile(), ccsavefile(), dbcopy(), dbrefstring(), loadversion2cancoonfile(), meloadmenurecord(), odbOpenFile(), and odbSaveFile().

Here is the call graph for this function:

boolean dbrefhandle dbaddress  ,
Handle
 

Definition at line 1208 of file db.c.

References ct, dberror(), dbfreeblockerror, dbread(), dbreadheader(), fl, lockhandle(), long, newclearhandle(), nil, nildbaddress, sizeheader, and unlockhandle().

Referenced by copyvaluerecord(), dbreadshadowavaillist(), hashpackscalar(), hashresolvevalue(), hashunpacktable(), langexternalrefdata(), meloadoutline(), meloadscriptoutline(), mepackscriptvisit(), opverbcopyvalue(), opverbinmemory(), pictverbinmemory(), tableverbinmemory(), and tableverbpack().

Here is the call graph for this function:

boolean dbrefheapstring dbaddress  ,
hdlstring
 

Definition at line 2080 of file db.c.

References bigstring, dbrefstring(), and newheapstring().

Here is the call graph for this function:

boolean dbsavehandle Handle  ,
dbaddress
 

Definition at line 2158 of file db.c.

References dballocate(), dbassign(), fl, gethandlesize(), h, lockhandle(), nildbaddress, and unlockhandle().

Referenced by mesaveoutline(), and tableverbpack().

Here is the call graph for this function:

void dbsetview short  ,
dbaddress 
 

Definition at line 2199 of file db.c.

References databasedata, dbflushheader(), dbswapglobals(), setdirty, and tydatabaserecord::views.

Referenced by ccnewrecord(), ccsavefile(), odbNewFile(), and odbSaveFile().

Here is the call graph for this function:

boolean dbstartsaveas hdlfilenum   ) 
 

Definition at line 2584 of file db.c.

References dbnew(), dbswapglobals(), fl, and fldatabasesaveas.

Referenced by ccsavefile().

Here is the call graph for this function:

boolean dbstatsmessage hdldatabaserecord  ,
boolean 
 

Definition at line 676 of file dbstats.c.

References dbpopdatabase(), dbpushdatabase(), nil, optionkeydown(), shellpopglobals(), shellpushglobals(), smashrect(), statscompute(), statsfindwindow(), statsnewwindow(), statswindow, and windowbringtofront().

Referenced by windowfunctionvalue().

Here is the call graph for this function:

boolean statsblockinuse dbaddress  ,
bigstring 
 

Definition at line 296 of file dbstats.c.

References dbreadheader(), idfreeblockinuse, idreadusedheaderfailed, keyboardescape(), nildbaddress, setstatsmessage(), and statsdata.

Referenced by ccfindusedblocks(), findusedblocksvisit(), langexternalfindusedblocks(), mefindusedblocksvisit(), menuverbfindusedblocks(), statscompute(), and tableverbfindusedblocks().

Here is the call graph for this function:

boolean statsstart void   ) 
 

Definition at line 576 of file dbstats.c.

References idstatsconfig, loadconfigresource(), shellnewcallbacks(), statsdata, statsdispose(), statsmousedown(), statsupdate(), statswindow, and statswindowinfo.

Referenced by frontierstart().

Here is the call graph for this function:


Variable Documentation

hdldatabaserecord databasedata
 

Definition at line 79 of file db.c.

Referenced by ccloadfile(), ccnewrecord(), ccsavefile(), ccsetdatabase(), clearcancoonglobals(), dballocate(), dbclose(), dbcurrentdatabase(), dbdispose(), dbfindpreviousavail(), dbflushheader(), dbfnumchanged(), dbgetcurrentdatabase(), dbnew(), dbopenfile(), dbpopdatabase(), dbpushdatabase(), dbreadshadowavaillist(), dbsetview(), dbswapglobals(), dbwriteshadowavaillist(), initializetableoutline(), langexternaldisposevariable(), langnewexternalvariable(), newoutlinevariable(), odbOpenFile(), and setcancoonglobals().

boolean fldatabasesaveas
 

Definition at line 87 of file db.c.

Referenced by dbassign(), dbassignheapstring(), dbendsaveas(), dbstartsaveas(), dbswapglobals(), dbwriteshadowavaillist(), hashpackscalar(), menuverbpack(), mesavemenurecord(), mesavemenustructure(), mesaveoutline(), opverbpack(), pictverbpack(), tablepreflightsubsdirtyflag(), tableverbpack(), and wpverbpack().


Generated on Thu Jun 1 05:10:49 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6