tablestructure.c File Reference

#include "frontier.h"
#include "standard.h"
#include "file.h"
#include "memory.h"
#include "strings.h"
#include "timedate.h"
#include "resources.h"
#include "langinternal.h"
#include "langexternal.h"
#include "tableinternal.h"
#include "tableverbs.h"
#include "tablestructure.h"
#include "byteorder.h"

Include dependency graph for tablestructure.c:

Go to the source code of this file.

Functions

boolean getsystemtablescript (short idscript, bigstring bsscript)
static boolean checktable (hdlhashtable htable, bigstring bs, boolean flcreate, hdlhashtable *hsubtable)
static boolean linksystemtable (hdlhashtable hsystem, bigstring bstable, hdlhashtable htable)
boolean linksystemtablestructure (hdlhashtable hroot)
boolean unlinksystemtablestructure (void)
boolean tablenewtable (hdltablevariable *hvariable, hdlhashtable *htable)
boolean tablenewsubtable (hdlhashtable htable, bigstring bsname, hdlhashtable *hnewtable)
boolean tablenewsystemtable (hdlhashtable htable, bigstring bs, hdlhashtable *hnewtable)
boolean tableloadsystemtable (dbaddress adr, Handle *hvariable, hdlhashtable *htable, boolean flcreate)
boolean tablesavesystemtable (Handle hvariable, dbaddress *adr)
boolean checktablestructure (boolean flcreate)
boolean cleartablestructureglobals (void)
boolean settablestructureglobals (Handle hvariable, boolean flcreatesubs)

Variables

byte nameinternaltable [] = STR_compiler
byte namemenubar [] = STR_menubar
byte namebuiltinstable [] = STR_builtins
byte namepathstable [] = STR_paths
byte nameverbstable [] = STR_verbs
byte nameiacgluetable [] = STR_apps
byte nameiachandlertable [] = STR_traps
byte nameagentstable [] = STR_agents
byte nameresourcestable [] = STR_misc
byte nameefptable [] = STR_kernel
byte namelangtable [] = STR_language
byte namestacktable [] = STR_stack
byte namesemaphoretable [] = STR_semaphores
byte namethreadtable [] = STR_threads
byte namefilewindowtable [] = STR_filewindows
byte nameroottable [] = STR_root
byte namestartuptable [] = STR_startup
byte namesuspendtable [] = STR_suspend
byte nameresumetable [] = STR_resume
byte nameshutdowntable [] = STR_shutdown
byte namesystembranch [] = STR_system
byte namemenubartable [] = STR_menubars
static byte namemacintoshtable [] = STR_macintosh
static byte nameobjectmodeltable [] = STR_objectmodel
static byte nametemptable [] = STR_temp
byte nameenvironmenttable [] = STR_environment
byte namecharsetstable [] = STR_charsets
Handle rootvariable = nil
hdlhashtable roottable = nil
hdlhashtable systemtable = nil
hdlhashtable internaltable = nil
hdlhashtable efptable = nil
hdlhashtable langtable = nil
hdlhashtable runtimestacktable = nil
hdlhashtable semaphoretable = nil
hdlhashtable threadtable = nil
hdlhashtable filewindowtable = nil
hdlhashtable builtinstable = nil
hdlhashtable pathstable = nil
hdlhashtable verbstable = nil
hdlhashtable iacgluetable = nil
hdlhashtable iachandlertable = nil
hdlhashtable resourcestable = nil
hdlhashtable agentstable = nil
hdlhashtable menubartable = nil
hdlhashtable objectmodeltable = nil
hdlhashtable environmenttable = nil
hdlhashtable charsetstable = nil


Function Documentation

static boolean checktable hdlhashtable  htable,
bigstring  bs,
boolean  flcreate,
hdlhashtable hsubtable
[static]
 

Definition at line 161 of file tablestructure.c.

References filegetapplicationrnum(), filegetresource(), findnamedtable(), hashunpacktable(), nil, and tablenewsubtable().

Referenced by checktablestructure(), and linksystemtablestructure().

Here is the call graph for this function:

boolean checktablestructure boolean  flcreate  ) 
 

Definition at line 543 of file tablestructure.c.

References agentstable, builtinstable, checktable(), fl, iacgluetable, iachandlertable, menubartable, nameagentstable, namebuiltinstable, nameiacgluetable, nameiachandlertable, namemacintoshtable, namemenubartable, nameobjectmodeltable, namepathstable, nameresourcestable, namesystembranch, nameverbstable, nil, objectmodeltable, pathstable, resourcestable, roottable, STR_menus, systemtable, and verbstable.

Referenced by settablestructureglobals().

Here is the call graph for this function:

boolean cleartablestructureglobals void   ) 
 

Definition at line 609 of file tablestructure.c.

References agentstable, builtinstable, iacgluetable, iachandlertable, menubartable, nil, objectmodeltable, pathstable, resourcestable, roottable, rootvariable, systemtable, and verbstable.

Referenced by ccloadsystemtable(), clearcancoonglobals(), disposecancoonrecord(), and settablestructureglobals().

boolean getsystemtablescript short  idscript,
bigstring  bsscript
 

Definition at line 155 of file tablestructure.c.

References getstringlist(), and idsystemtablescripts.

Referenced by browsercollisiondialog(), ccloadspecialfile(), ccrun(), ccrunurlscript(), ccsavespecialfile(), dockmenugetaddresscallback(), langgetuserflag(), langopruncallbackscripts(), langsetuserflag(), langzoomobject(), oppopupruncallbackscript(), postthreadsmessage(), pushsearchparamstable(), replacevariabledialog(), runeditmenuscript(), runfilemenuscript(), runopenrecentmenuscript(), runurlscript(), scriptrunresumescripts(), scriptrunsuspendscripts(), scriptverifycompilation(), shellopen(), shellrunwindowconfirmationscript(), shellupdateopenrecentmenu(), and updateconfigsettings().

Here is the call graph for this function:

static boolean linksystemtable hdlhashtable  hsystem,
bigstring  bstable,
hdlhashtable  htable
[static]
 

Definition at line 215 of file tablestructure.c.

References idtableprocessor, langexternaldontsave(), and langsetexternalsymbol().

Referenced by linksystemtablestructure().

Here is the call graph for this function:

boolean linksystemtablestructure hdlhashtable  hroot  ) 
 

Definition at line 232 of file tablestructure.c.

References charsetstable, checktable(), environmenttable, internaltable, langexternaldontsave(), linksystemtable(), namecharsetstable, nameenvironmenttable, nameinternaltable, namesystembranch, and nametemptable.

Referenced by tableloadsystemtable().

Here is the call graph for this function:

boolean settablestructureglobals Handle  hvariable,
boolean  flcreatesubs
 

Definition at line 666 of file tablestructure.c.

References checktablestructure(), cleartablestructureglobals(), nil, roottable, and rootvariable.

Referenced by ccchecktablestructureglobals(), ccloadsystemtable(), and setcancoonglobals().

Here is the call graph for this function:

boolean tableloadsystemtable dbaddress  adr,
Handle hvariable,
hdlhashtable htable,
boolean  flcreate
 

Definition at line 387 of file tablestructure.c.

References assert, disposehandle(), HNoNode, idtableprocessor, linksystemtablestructure(), namesystembranch, newtablevariable(), nildbaddress, tabledisposetable(), tablenewsubtable(), tablenewtable(), tableverbdispose(), tableverbinmemory(), and version5orgreater.

Referenced by ccloadsystemtable().

Here is the call graph for this function:

boolean tablenewsubtable hdlhashtable  htable,
bigstring  bsname,
hdlhashtable hnewtable
 

Definition at line 331 of file tablestructure.c.

References idtableprocessor, langsetexternalsymbol(), tablenewtable(), and tableverbdispose().

Referenced by checktable(), langipcggettableparam(), tableloadsystemtable(), and tablenewsystemtable().

Here is the call graph for this function:

boolean tablenewsystemtable hdlhashtable  htable,
bigstring  bs,
hdlhashtable hnewtable
 

Definition at line 367 of file tablestructure.c.

References tytablevariable::flsystemtable, langexternaldontsave(), return(), and tablenewsubtable().

Referenced by inittablestructure(), langinitbuiltintable(), langinitconsttable(), langinitkeywordtable(), newfunctionprocessor(), and scriptpushtable().

Here is the call graph for this function:

boolean tablenewtable hdltablevariable hvariable,
hdlhashtable htable
 

Definition at line 294 of file tablestructure.c.

References disposehandle(), tyhashtable::hashtablerefcon, long, newhashtable(), newtablevariable(), tyhashtable::timecreated, and timenow().

Referenced by ccnewrecord(), tableloadsystemtable(), tablenewsubtable(), and tableverbnew().

Here is the call graph for this function:

boolean tablesavesystemtable Handle  hvariable,
dbaddress adr
 

Definition at line 470 of file tablestructure.c.

References bigstring, disposehandle(), fl, fllangerror, flscriptrunning, getlower, getstringlist(), langerrorlist, langhookerrors(), langparamerror(), langtraperrors(), langunhookerrors(), languntraperrors(), newemptyhandle(), nil, parsedialogstring(), popfromhandle(), poptrailingchars(), shellerrormessage(), tablepreflightsubsdirtyflag(), tablesavingerror, and tableverbpack().

Referenced by ccsavefile(), and odbSaveFile().

Here is the call graph for this function:

boolean unlinksystemtablestructure void   ) 
 

Definition at line 278 of file tablestructure.c.

References hashdelete(), nameinternaltable, pophashtable(), pushhashtable(), and systemtable.

Referenced by ccdisposerecord().

Here is the call graph for this function:


Variable Documentation

hdlhashtable agentstable = nil
 

Definition at line 139 of file tablestructure.c.

Referenced by ccagentpopupselect(), ccagentselectvisit(), ccfillagentpopup(), checktablestructure(), cleartablestructureglobals(), scriptcompiler(), scriptloadagents(), tableclearroutine(), tableredoclear(), and tableundoclear().

hdlhashtable builtinstable = nil
 

Definition at line 127 of file tablestructure.c.

Referenced by checktablestructure(), cleartablestructureglobals(), findprotocolhandler(), and htmlbuildmacrocontext().

hdlhashtable charsetstable = nil
 

Definition at line 151 of file tablestructure.c.

Referenced by inittablestructure(), and linksystemtablestructure().

hdlhashtable efptable = nil
 

Definition at line 115 of file tablestructure.c.

Referenced by inittablestructure(), kernelerrorroutine(), langhandlercall(), newfunctionprocessor(), and pushkernelcall().

hdlhashtable environmenttable = nil
 

Definition at line 149 of file tablestructure.c.

Referenced by inittablestructure(), and linksystemtablestructure().

hdlhashtable filewindowtable = nil
 

Definition at line 125 of file tablestructure.c.

Referenced by ancestorroutine(), getfullpath(), hashsetlocality(), hashsetlocalityvisit(), indexfunc(), inittablestructure(), langexternalcloseregisteredwindows(), langexternalregisterwindow(), langexternalunregisterwindow(), langsearchpathlookup(), langsearchpathvisit(), parentfunc(), tableclientsurface(), tableupdatewindowtitles(), and tableverbfindusedblocks().

hdlhashtable iacgluetable = nil
 

Definition at line 133 of file tablestructure.c.

Referenced by checktablestructure(), cleartablestructureglobals(), getostypedisplaystring(), and langipcfindapptable().

hdlhashtable iachandlertable = nil
 

Definition at line 135 of file tablestructure.c.

Referenced by checktablestructure(), cleartablestructureglobals(), and langipcfindtraphandler().

hdlhashtable internaltable = nil
 

Definition at line 113 of file tablestructure.c.

Referenced by inittablestructure(), linksystemtablestructure(), and tableverbdispose().

hdlhashtable langtable = nil
 

Definition at line 117 of file tablestructure.c.

Referenced by inittablestructure(), langinitbuiltintable(), langinitconsttable(), and langinitkeywordtable().

hdlhashtable menubartable = nil
 

Definition at line 145 of file tablestructure.c.

Referenced by checktablestructure(), cleartablestructureglobals(), and getmenubartable().

byte nameagentstable[] = STR_agents
 

Definition at line 65 of file tablestructure.c.

Referenced by checktablestructure().

byte namebuiltinstable[] = STR_builtins
 

Definition at line 55 of file tablestructure.c.

Referenced by checktablestructure().

byte namecharsetstable[] = STR_charsets
 

Definition at line 103 of file tablestructure.c.

Referenced by inittablestructure(), and linksystemtablestructure().

byte nameefptable[] = STR_kernel
 

Definition at line 69 of file tablestructure.c.

Referenced by inittablestructure().

byte nameenvironmenttable[] = STR_environment
 

Definition at line 101 of file tablestructure.c.

Referenced by inittablestructure(), and linksystemtablestructure().

byte namefilewindowtable[] = STR_filewindows
 

Definition at line 79 of file tablestructure.c.

Referenced by inittablestructure().

byte nameiacgluetable[] = STR_apps
 

Definition at line 61 of file tablestructure.c.

Referenced by checktablestructure().

byte nameiachandlertable[] = STR_traps
 

Definition at line 63 of file tablestructure.c.

Referenced by checktablestructure().

byte nameinternaltable[] = STR_compiler
 

Definition at line 51 of file tablestructure.c.

Referenced by inittablestructure(), linksystemtablestructure(), and unlinksystemtablestructure().

byte namelangtable[] = STR_language
 

Definition at line 71 of file tablestructure.c.

Referenced by inittablestructure().

byte namemacintoshtable[] = STR_macintosh [static]
 

Definition at line 95 of file tablestructure.c.

Referenced by checktablestructure().

byte namemenubar[] = STR_menubar
 

Definition at line 53 of file tablestructure.c.

byte namemenubartable[] = STR_menubars
 

Definition at line 93 of file tablestructure.c.

Referenced by checktablestructure().

byte nameobjectmodeltable[] = STR_objectmodel [static]
 

Definition at line 97 of file tablestructure.c.

Referenced by checktablestructure().

byte namepathstable[] = STR_paths
 

Definition at line 57 of file tablestructure.c.

Referenced by checktablestructure().

byte nameresourcestable[] = STR_misc
 

Definition at line 67 of file tablestructure.c.

Referenced by checktablestructure().

byte nameresumetable[] = STR_resume
 

Definition at line 87 of file tablestructure.c.

byte nameroottable[] = STR_root
 

Definition at line 81 of file tablestructure.c.

Referenced by addressofvalue(), assignordeletevalue(), getfullpath(), indexfunc(), langgetspecialtable(), langgetsymbolval(), parentfunc(), stringtoaddress(), tabledroppasteroutine(), and tablefindvariable().

byte namesemaphoretable[] = STR_semaphores
 

Definition at line 75 of file tablestructure.c.

Referenced by inittablestructure().

byte nameshutdowntable[] = STR_shutdown
 

Definition at line 89 of file tablestructure.c.

Referenced by runshutdownscripts().

byte namestacktable[] = STR_stack
 

Definition at line 73 of file tablestructure.c.

Referenced by inittablestructure().

byte namestartuptable[] = STR_startup
 

Definition at line 83 of file tablestructure.c.

Referenced by scriptrunstartupscripts().

byte namesuspendtable[] = STR_suspend
 

Definition at line 85 of file tablestructure.c.

byte namesystembranch[] = STR_system
 

Definition at line 91 of file tablestructure.c.

Referenced by checktablestructure(), linksystemtablestructure(), and tableloadsystemtable().

byte nametemptable[] = STR_temp [static]
 

Definition at line 99 of file tablestructure.c.

Referenced by linksystemtablestructure().

byte namethreadtable[] = STR_threads
 

Definition at line 77 of file tablestructure.c.

Referenced by inittablestructure().

byte nameverbstable[] = STR_verbs
 

Definition at line 59 of file tablestructure.c.

Referenced by checktablestructure().

hdlhashtable objectmodeltable = nil
 

Definition at line 147 of file tablestructure.c.

Referenced by checktablestructure(), cleartablestructureglobals(), and getostypedisplaystring().

hdlhashtable pathstable = nil
 

Definition at line 129 of file tablestructure.c.

Referenced by checktablestructure(), cleartablestructureglobals(), hashresolvevalue(), and langsearchpathvisit().

hdlhashtable resourcestable = nil
 

Definition at line 137 of file tablestructure.c.

Referenced by checktablestructure(), and cleartablestructureglobals().

hdlhashtable roottable = nil
 

Definition at line 109 of file tablestructure.c.

Referenced by buildpagetableverb(), ccchecktablestructureglobals(), ccinstalltablestructure(), ccloadsystemtable(), ccsavespecialfile(), checktablestructure(), claygetfileinfo(), clayinitlinelayout(), cleartablestructureglobals(), datedayofweektostring(), datemonthtostring(), disposehashtable(), dockmenufillpopup(), findprotocolhandler(), FrontierOPWndProc(), getaddressvalue(), getfullpath(), hashflushcache(), hashresolvevalue(), hashstatsverb(), htmlbuildmacrocontext(), htmlgetdefaultpagetable(), htmlgetprefstable(), inetdsupervisor(), langaddlocalsymbols(), langbuildnamedparamlist(), langbuildparamlist(), langexternalgetconfig(), langgetspecialtable(), langgetsymbolval(), langgetuserflag(), langipcbuildparamlist(), langipcfileopen(), langipchandlefastscript(), langipcrunscript(), langkernelbuildparamlist(), langpushscopechain(), langrunhandle(), langrunscript(), langsetuserflag(), langunpackvalue(), loadversion2cancoonfile(), osahandlerunscript(), replacevariabledialog(), resolvexcmdglobal(), runeditmenuscript(), runfilemenuscript(), scriptdebugerrordebugger(), setcancoonglobals(), settablestructureglobals(), shellupdateopenrecentmenu(), tableexpandtodotparams(), tablefilltitlepopup(), tablefindvariable(), tablesurface(), threadcallscriptverb(), updateconfigsettings(), webservercallfilters(), webservergetrespondertableaddress(), webserverlocateresponder(), webservermaintainstats(), and windowopencommand().

Handle rootvariable = nil
 

Definition at line 107 of file tablestructure.c.

Referenced by addmenucommandverb(), assignordeletevalue(), ccchecktablestructureglobals(), ccloadsystemtable(), cleartablestructureglobals(), deletemenucommandverb(), langgetsymbolval(), settablestructureglobals(), tablefilltitlepopup(), and tablefindvariable().

hdlhashtable runtimestacktable = nil
 

Definition at line 119 of file tablestructure.c.

Referenced by inittablestructure(), scriptlocalsbutton(), scriptpoptable(), scriptprocesskilled(), scriptpushtable(), scriptzoomdotparams(), and tableverbsetupdisplay().

hdlhashtable semaphoretable = nil
 

Definition at line 121 of file tablestructure.c.

Referenced by inittablestructure(), langreleasesemaphores(), locksemaphoreverb(), and unlocksemaphoreverb().

hdlhashtable systemtable = nil
 

Definition at line 111 of file tablestructure.c.

Referenced by ccchecktablestructureglobals(), checktablestructure(), cleartablestructureglobals(), getpagetableaddressverb(), runshutdownscripts(), scriptrunspecialscripts(), and unlinksystemtablestructure().

hdlhashtable threadtable = nil
 

Definition at line 123 of file tablestructure.c.

Referenced by exitprocessthread(), initprocessthread(), inittablestructure(), and processsymbolunlinking().

hdlhashtable verbstable = nil
 

Definition at line 131 of file tablestructure.c.

Referenced by ccchecktablestructureglobals(), checktablestructure(), and cleartablestructureglobals().


Generated on Wed Jun 14 00:55:19 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6