dbverbs.c File Reference

#include "frontier.h"
#include "standard.h"
#include "ops.h"
#include "memory.h"
#include "error.h"
#include "file.h"
#include "resources.h"
#include "scrap.h"
#include "strings.h"
#include "launch.h"
#include "notify.h"
#include "shell.h"
#include "lang.h"
#include "langexternal.h"
#include "langinternal.h"
#include "langipc.h"
#include "kernelverbs.h"
#include "kernelverbdefs.h"
#include "tablestructure.h"
#include "process.h"
#include "processinternal.h"
#include "odbinternal.h"

Include dependency graph for dbverbs.c:

Go to the source code of this file.

Data Structures

struct  tyodblistrecord

Defines

#define odbgeterror   odbGetError

Typedefs

typedef tyodblistrecord tyodbrecord
typedef tyodblistrecordptrodbrecord
typedef tyodblistrecord ** hdlodbrecord

Enumerations

enum  tydbtoken {
  newfunc, openfunc, savefunc, closefunc,
  definedfunc, getvaluefunc, setvaluefunc, deletefunc,
  newtablefunc, istablefunc, countitemsfunc, getnthitemfunc,
  getmoddatefunc, ctdbverbs
}

Functions

boolean odbnewfile (hdlfilenum fnum)
boolean odbaccesswindow (WindowPtr w, odbref *odb)
boolean odbopenfile (hdlfilenum fnum, odbref *odb, boolean flreadonly)
boolean odbsavefile (odbref odb)
boolean odbclosefile (odbref odb)
boolean odbdefined (odbref odb, bigstring bspath)
boolean odbdelete (odbref odb, bigstring bspath)
boolean odbgettype (odbref odb, bigstring bspath, OSType *odbType)
boolean odbgetvalue (odbref odb, bigstring bspath, odbValueRecord *value)
boolean odbsetvalue (odbref odb, bigstring bspath, odbValueRecord *value)
boolean odbnewtable (odbref odb, bigstring bspath)
boolean odbcountitems (odbref odb, bigstring bspath, long *count)
boolean odbgetnthitem (odbref odb, bigstring bspath, long n, bigstring bsname)
boolean odbgetmoddate (odbref odb, bigstring bspath, unsigned long *date)
boolean odbdisposevalue (odbref odb, odbValueRecord *value)
static boolean odberror (boolean flresult)
static boolean getodbparam (hdltreenode hparam1, short pnum, hdlodbrecord *hodbrecord)
static boolean getodbvalue (hdltreenode hparam1, short pnum, tyodbrecord *odb, boolean flreadonly)
static boolean dbclosefile (hdlodbrecord hodb)
boolean dbcloseallfiles (long refcon)
static boolean dbnewverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbopenverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbsaveverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbcloseverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbdefinedverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbgetvalueverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbsetvalueverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbdeleteverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbnewtableverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbistableverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbcountitemsverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbgetnthitemverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbgetmoddateverb (hdltreenode hparam1, tyvaluerecord *vreturned)
static boolean dbfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
boolean dbinitverbs (void)

Variables

static hdlodbrecord hodblist = nil


Define Documentation

#define odbgeterror   odbGetError
 

Definition at line 391 of file dbverbs.c.

Referenced by odberror().


Typedef Documentation

typedef struct tyodblistrecord ** hdlodbrecord
 

typedef struct tyodblistrecord * ptrodbrecord
 

typedef struct tyodblistrecord tyodbrecord
 


Enumeration Type Documentation

enum tydbtoken
 

Enumerator:
newfunc 
openfunc 
savefunc 
closefunc 
definedfunc 
getvaluefunc 
setvaluefunc 
deletefunc 
newtablefunc 
istablefunc 
countitemsfunc 
getnthitemfunc 
getmoddatefunc 
ctdbverbs 

Definition at line 413 of file dbverbs.c.


Function Documentation

boolean dbcloseallfiles long  refcon  ) 
 

Definition at line 526 of file dbverbs.c.

static boolean dbclosefile hdlodbrecord  hodb  )  [static]
 

Definition at line 511 of file dbverbs.c.

References closefile(), disposehandle(), hodblist, listunlink(), and odbclosefile().

Referenced by dbcloseverb().

Here is the call graph for this function:

static boolean dbcloseverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 671 of file dbverbs.c.

References dbclosefile(), flnextparamislast, getodbparam(), and setbooleanvalue().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbcountitemsverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 866 of file dbverbs.c.

References bigstring, flnextparamislast, getodbvalue(), getstringvalue(), tyodblistrecord::odb, odbcountitems(), odberror(), and setlongvalue().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbdefinedverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 684 of file dbverbs.c.

References bigstring, fl, flnextparamislast, getodbvalue(), getstringvalue(), tyodblistrecord::odb, odbdefined(), and setbooleanvalue().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbdeleteverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 805 of file dbverbs.c.

References bigstring, flnextparamislast, getodbvalue(), getstringvalue(), tyodblistrecord::odb, odbdelete(), odberror(), and setbooleanvalue().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 933 of file dbverbs.c.

References closefunc, countitemsfunc, dbcloseverb(), dbcountitemsverb(), dbdefinedverb(), dbdeleteverb(), dbgetmoddateverb(), dbgetnthitemverb(), dbgetvalueverb(), dbistableverb(), dbnewtableverb(), dbnewverb(), dbopenverb(), dbsaveverb(), dbsetvalueverb(), definedfunc, deletefunc, getmoddatefunc, getnthitemfunc, getvaluefunc, istablefunc, newfunc, newtablefunc, openfunc, savefunc, setbooleanvalue(), setvaluefunc, and v.

Referenced by dbinitverbs().

Here is the call graph for this function:

static boolean dbgetmoddateverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 912 of file dbverbs.c.

References bigstring, flnextparamislast, getodbvalue(), getstringvalue(), tyodblistrecord::odb, odberror(), odbgetmoddate(), and setdatevalue().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbgetnthitemverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 887 of file dbverbs.c.

References bigstring, flnextparamislast, getlongvalue(), getodbvalue(), getstringvalue(), tyodblistrecord::odb, odberror(), odbgetnthitem(), and setstringvalue().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbgetvalueverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 708 of file dbverbs.c.

References bigstring, flnextparamislast, getodbvalue(), getstringvalue(), initvalue(), langexternalgetvaluetype(), langheapallocated(), nil, tyodblistrecord::odb, odberror(), odbgetvalue(), pushtmpstackvalue(), setbinaryvalue(), and value.

Referenced by dbfunctionvalue().

Here is the call graph for this function:

boolean dbinitverbs void   ) 
 

Definition at line 994 of file dbverbs.c.

References dbfunctionvalue(), hodblist, iddbverbs, loadfunctionprocessor(), and newclearhandle().

Referenced by shellinit().

Here is the call graph for this function:

static boolean dbistableverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 845 of file dbverbs.c.

References bigstring, flnextparamislast, getodbvalue(), getstringvalue(), tyodblistrecord::odb, odberror(), odbgettype(), setbooleanvalue(), and tableT.

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbnewtableverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 825 of file dbverbs.c.

References bigstring, flnextparamislast, getodbvalue(), getstringvalue(), tyodblistrecord::odb, odberror(), odbnewtable(), and setbooleanvalue().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbnewverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 563 of file dbverbs.c.

References closefile(), config, deletefile(), tyconfigrecord::filecreator, tyconfigrecord::filetype, fl, flnextparamislast, tyodblistrecord::fref, tyodblistrecord::fs, getfilespecvalue(), odberror(), odbnewfile(), opennewfile(), setbooleanvalue(), shellpopglobals(), and shellpushdefaultglobals().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbopenverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 601 of file dbverbs.c.

References closefile(), flnextparamislast, tyodblistrecord::flreadonly, tyodblistrecord::fref, tyodblistrecord::fs, getbooleanvalue(), getfilespecvalue(), hodblist, listlink(), newfilledhandle(), nil, tyodblistrecord::odb, odbaccesswindow(), odbclosefile(), odberror(), odbopenfile(), openfile(), setbooleanvalue(), and shellfindfilewindow().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbsaveverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 658 of file dbverbs.c.

References flnextparamislast, getodbvalue(), tyodblistrecord::odb, odbsavefile(), and setbooleanvalue().

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean dbsetvalueverb hdltreenode  hparam1,
tyvaluerecord vreturned
[static]
 

Definition at line 763 of file dbverbs.c.

References bigstring, copyvaluedata(), disposevaluerecord(), flnextparamislast, getodbvalue(), getparamvalue(), getstringvalue(), langexternalgettypeid(), tyodblistrecord::odb, odberror(), odbsetvalue(), setbooleanvalue(), and value.

Referenced by dbfunctionvalue().

Here is the call graph for this function:

static boolean getodbparam hdltreenode  hparam1,
short  pnum,
hdlodbrecord hodbrecord
[static]
 

Definition at line 464 of file dbverbs.c.

References equalfilespecs(), tyodblistrecord::fs, getfilespecvalue(), tyodblistrecord::hnext, hodblist, nil, and return().

Referenced by dbcloseverb(), and getodbvalue().

Here is the call graph for this function:

static boolean getodbvalue hdltreenode  hparam1,
short  pnum,
tyodbrecord odb,
boolean  flreadonly
[static]
 

Definition at line 491 of file dbverbs.c.

References bsfunctionname, dbopenedreadonlyerror, fsname, getodbparam(), lang2paramerror(), and tyodblistrecord::odb.

Referenced by dbcountitemsverb(), dbdefinedverb(), dbdeleteverb(), dbgetmoddateverb(), dbgetnthitemverb(), dbgetvalueverb(), dbistableverb(), dbnewtableverb(), dbsaveverb(), and dbsetvalueverb().

Here is the call graph for this function:

boolean odbaccesswindow WindowPtr  w,
odbref odb
 

Definition at line 140 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbAccessWindow(), and swapinthreadglobals().

Referenced by dbopenverb(), and extOdbGetCurrentRoot().

Here is the call graph for this function:

boolean odbclosefile odbref  odb  ) 
 

Definition at line 194 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbCloseFile(), and swapinthreadglobals().

Referenced by dbclosefile(), dbopenverb(), and extOdbCloseFile().

Here is the call graph for this function:

boolean odbcountitems odbref  odb,
bigstring  bspath,
long count
 

Definition at line 320 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbCountItems(), and swapinthreadglobals().

Referenced by dbcountitemsverb(), and extOdbCountItems().

Here is the call graph for this function:

boolean odbdefined odbref  odb,
bigstring  bspath
 

Definition at line 212 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbDefined(), and swapinthreadglobals().

Referenced by dbdefinedverb(), and extOdbDefined().

Here is the call graph for this function:

boolean odbdelete odbref  odb,
bigstring  bspath
 

Definition at line 230 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbDelete(), and swapinthreadglobals().

Referenced by dbdeleteverb(), and extOdbDelete().

Here is the call graph for this function:

boolean odbdisposevalue odbref  odb,
odbValueRecord value
 

Definition at line 374 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), getcurrentthreadglobals(), nil, odbDisposeValue(), swapinthreadglobals(), and value.

Referenced by extOdbDisposeValue().

Here is the call graph for this function:

static boolean odberror boolean  flresult  )  [static]
 

Definition at line 449 of file dbverbs.c.

References bigstring, bserror, langerrormessage(), and odbgeterror.

Referenced by dbcountitemsverb(), dbdeleteverb(), dbgetmoddateverb(), dbgetnthitemverb(), dbgetvalueverb(), dbistableverb(), dbnewtableverb(), dbnewverb(), dbopenverb(), and dbsetvalueverb().

Here is the call graph for this function:

boolean odbgetmoddate odbref  odb,
bigstring  bspath,
unsigned long date
 

Definition at line 356 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbGetModDate(), and swapinthreadglobals().

Referenced by dbgetmoddateverb(), and extOdbGetModDate().

Here is the call graph for this function:

boolean odbgetnthitem odbref  odb,
bigstring  bspath,
long  n,
bigstring  bsname
 

Definition at line 338 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbGetNthItem(), and swapinthreadglobals().

Referenced by dbgetnthitemverb(), and extOdbGetNthItem().

Here is the call graph for this function:

boolean odbgettype odbref  odb,
bigstring  bspath,
OSType odbType
 

Definition at line 248 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbGetType(), and swapinthreadglobals().

Referenced by dbistableverb(), and extOdbGetType().

Here is the call graph for this function:

boolean odbgetvalue odbref  odb,
bigstring  bspath,
odbValueRecord value
 

Definition at line 266 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbGetValue(), swapinthreadglobals(), and value.

Referenced by dbgetvalueverb(), and extOdbGetValue().

Here is the call graph for this function:

boolean odbnewfile hdlfilenum  fnum  ) 
 

Definition at line 122 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbNewFile(), and swapinthreadglobals().

Referenced by dbnewverb(), and extOdbNewFile().

Here is the call graph for this function:

boolean odbnewtable odbref  odb,
bigstring  bspath
 

Definition at line 302 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbNewTable(), and swapinthreadglobals().

Referenced by dbnewtableverb(), and extOdbNewTable().

Here is the call graph for this function:

boolean odbopenfile hdlfilenum  fnum,
odbref odb,
boolean  flreadonly
 

Definition at line 158 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbOpenFile(), and swapinthreadglobals().

Referenced by dbopenverb(), and extOdbOpenFile().

Here is the call graph for this function:

boolean odbsavefile odbref  odb  ) 
 

Definition at line 176 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbSaveFile(), and swapinthreadglobals().

Referenced by dbsaveverb(), and extOdbSaveFile().

Here is the call graph for this function:

boolean odbsetvalue odbref  odb,
bigstring  bspath,
odbValueRecord value
 

Definition at line 284 of file dbverbs.c.

References cancoonglobals, copythreadglobals(), fl, getcurrentthreadglobals(), nil, odbSetValue(), swapinthreadglobals(), and value.

Referenced by dbsetvalueverb(), and extOdbSetValue().

Here is the call graph for this function:


Variable Documentation

hdlodbrecord hodblist = nil [static]
 

Definition at line 410 of file dbverbs.c.

Referenced by dbclosefile(), dbinitverbs(), dbopenverb(), and getodbparam().


Generated on Thu Jun 1 06:40:26 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6