oplist.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "strings.h"
#include "resources.h"
#include "op.h"
#include "opinternal.h"
#include "oplist.h"
#include "byteorder.h"

Include dependency graph for oplist.c:

Go to the source code of this file.

Data Structures

struct  tylistrecord
struct  tydisklistrecord

Defines

#define fldebugging   false
#define oplistversionnumber   1

Functions

boolean opnewlist (hdllistrecord *hlist, boolean isrecord)
void opdisposelist (hdllistrecord hlist)
boolean oppushhandle (hdllistrecord hlist, ptrstring pname, Handle hdata)
boolean opunshifthandle (hdllistrecord hlist, ptrstring pname, Handle hdata)
boolean oppushdata (hdllistrecord hlist, ptrstring pname, ptrvoid pdata, long ctbytes)
boolean oppushstring (hdllistrecord hlist, ptrstring pname, bigstring bs)
static boolean opgetlistnode (hdllistrecord hlist, long ix, ptrstring pname, hdlheadrecord *hnode)
boolean opgetlisthandle (hdllistrecord hlist, long ix, ptrstring pname, Handle *hdata)
boolean opgetliststring (hdllistrecord hlist, long ix, ptrstring pname, bigstring bs)
boolean opsetlisthandle (hdllistrecord hlist, long ix, ptrstring pname, Handle hdata)
boolean opsetlistdata (hdllistrecord hlist, long ix, ptrstring pname, ptrvoid pdata, long ctbytes)
long opcountlistitems (hdllistrecord hlist)
boolean opgetisrecord (hdllistrecord hlist)
void opsetisrecord (hdllistrecord hlist, boolean flisrecord)
oplistreleaseitemcallback opsetreleaseitemcallback (hdllistrecord hlist, oplistreleaseitemcallback cb)
static boolean opdeletelistnode (hdloutlinerecord ho, hdlheadrecord hdelete)
boolean opdeletelistitem (hdllistrecord hlist, long ix, ptrstring pname)
boolean oppacklist (hdllistrecord hlist, Handle *hpacked)
boolean opunpacklist (Handle hpacked, hdllistrecord *hnewlist)
boolean opcopylist (hdllistrecord hsource, hdllistrecord *hcopy)
boolean oploadstringlist (short resnum, hdllistrecord *hnewlist)
boolean opvisitlist (hdllistrecord hlist, opvisitlistcallback visit, ptrvoid refcon)

Variables

static hdllistrecord hcurrentlist = nil


Define Documentation

#define fldebugging   false
 

Definition at line 52 of file oplist.c.

Referenced by langdialogitemhit(), oppushhandle(), and opunshifthandle().

#define oplistversionnumber   1
 

Definition at line 54 of file oplist.c.

Referenced by oppacklist(), and opunpacklist().


Function Documentation

boolean opcopylist hdllistrecord  hsource,
hdllistrecord hcopy
 

Definition at line 774 of file oplist.c.

References copyhandle(), disposehandle(), and opcopyoutlinerecord().

Referenced by copyvaluerecord().

Here is the call graph for this function:

long opcountlistitems hdllistrecord  hlist  ) 
 

Definition at line 485 of file oplist.c.

Referenced by coercelistvalue(), comparelists(), extOdbGetListCount(), langgetlistsize(), listaddvalue(), listsubtractvalue(), listtostring(), opvisitlist(), pullintegerlist(), shelldrawbuttons(), and shellgetbuttonlistcount().

boolean opdeletelistitem hdllistrecord  hlist,
long  ix,
ptrstring  pname
 

Definition at line 556 of file oplist.c.

References hnode, opdeletelistnode(), opemptyrefcon(), opgetlistnode(), oppopoutline(), oppushoutline(), and opreleasenode().

Referenced by extOdbDeleteListValue(), listdeletevalue(), and listsubtractvalue().

Here is the call graph for this function:

static boolean opdeletelistnode hdloutlinerecord  ho,
hdlheadrecord  hdelete
[static]
 

Definition at line 525 of file oplist.c.

References opchasedown(), opchaseup(), and opunlink().

Referenced by opdeletelistitem().

Here is the call graph for this function:

void opdisposelist hdllistrecord  hlist  ) 
 

Definition at line 142 of file oplist.c.

References disposehandle(), hcurrentlist, nil, and opdisposeoutline().

Referenced by addHeaderToTable(), callprotocolhandler(), coercetolist(), datedayofweektostring(), datemonthtostring(), disposevaluerecord(), evaluatetry(), getgifheightwidthverb(), getjpegheightwidthverb(), langfunctionvalue(), langpackfileval(), langunpackfileval(), locksemaphoreverb(), makeintegerlist(), opgetexpansionstateverb(), opgetselectverb(), oploadstringlist(), opunpacklist(), parseaddress(), parseargsverb(), tablegetselectionverb(), and xmlgetaddresslist().

Here is the call graph for this function:

boolean opgetisrecord hdllistrecord  hlist  ) 
 

Definition at line 491 of file oplist.c.

Referenced by comparelists(), listaddvalue(), listsubtractvalue(), and listtostring().

boolean opgetlisthandle hdllistrecord  hlist,
long  ix,
ptrstring  pname,
Handle hdata
 

Definition at line 398 of file oplist.c.

References hnode, nil, opgetheadstring(), and opgetlistnode().

Referenced by getnthlistval(), langunpackfileval(), listaddvalue(), listsubtractvalue(), and opgetliststring().

Here is the call graph for this function:

static boolean opgetlistnode hdllistrecord  hlist,
long  ix,
ptrstring  pname,
hdlheadrecord hnode
[static]
 

Definition at line 349 of file oplist.c.

References bigstring, down, equalstrings(), hnode, nil, opchasedown(), opgetheadstring(), and oprepeatedbump().

Referenced by opdeletelistitem(), opgetlisthandle(), and opsetlisthandle().

Here is the call graph for this function:

boolean opgetliststring hdllistrecord  hlist,
long  ix,
ptrstring  pname,
bigstring  bs
 

Definition at line 425 of file oplist.c.

References copyheapstring(), h, opgetlisthandle(), and setstringlength.

Referenced by getbuttonwidth(), langunpackfileval(), shelldrawbutton(), and shellgetbuttonstring().

Here is the call graph for this function:

boolean oploadstringlist short  resnum,
hdllistrecord hnewlist
 

Definition at line 798 of file oplist.c.

References bigstring, getstringlist(), nil, opdisposelist(), opnewlist(), and oppushstring().

Referenced by shellloadbuttonlists().

Here is the call graph for this function:

boolean opnewlist hdllistrecord hlist,
boolean  isrecord
 

Definition at line 102 of file oplist.c.

References disposehandle(), h, newclearhandle(), and newoutlinerecord().

Referenced by addHeaderToTable(), callprotocolhandler(), coercetolist(), extOdbNewListValue(), getgifheightwidthverb(), getjpegheightwidthverb(), gettracebacklist(), langfunctionvalue(), langipcconvertaelist(), langpackfileval(), locksemaphoreverb(), makeintegerlist(), makelistvalue(), makerecordvalue(), opbuttonsattach(), opgetexpansionstateverb(), opgetselectverb(), oploadstringlist(), opunpacklist(), parseaddress(), parseargsverb(), tablegetselectionverb(), urlsplit(), webserveraddtoerrorlog(), xmlgetaddresslist(), and xmlstructtofrontiervalue().

Here is the call graph for this function:

boolean oppacklist hdllistrecord  hlist,
Handle hpacked
 

Definition at line 579 of file oplist.c.

References clearbytes(), disposehandle(), error, fl, gethandlesize(), info, newfilledhandle(), nil, oplistversionnumber, oppack(), oppopoutline(), oppushoutline(), and pushhandle().

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

Here is the call graph for this function:

boolean oppushdata hdllistrecord  hlist,
ptrstring  pname,
ptrvoid  pdata,
long  ctbytes
 

Definition at line 322 of file oplist.c.

References h, newfilledhandle(), and oppushhandle().

Referenced by oppushstring().

Here is the call graph for this function:

boolean oppushhandle hdllistrecord  hlist,
ptrstring  pname,
Handle  hdata
 

Definition at line 161 of file oplist.c.

References bigstring, copystring(), disposehandle(), down, error, fldebugging, h, nil, opaddheadline(), oppopoutline(), oppushoutline(), oprepeatedbump(), opsetheadstring(), and pushint().

Referenced by langpackfileval(), langpushlistaddress(), langpushlistlong(), langpushlisttext(), langpushlistval(), listaddvalue(), oppushdata(), opsetlisthandle(), and setnthlistval().

Here is the call graph for this function:

boolean oppushstring hdllistrecord  hlist,
ptrstring  pname,
bigstring  bs
 

Definition at line 339 of file oplist.c.

References oppushdata().

Referenced by langpackfileval(), opbuttonsattach(), and oploadstringlist().

Here is the call graph for this function:

void opsetisrecord hdllistrecord  hlist,
boolean  flisrecord
 

Definition at line 501 of file oplist.c.

Referenced by coercelistvalue().

boolean opsetlistdata hdllistrecord  hlist,
long  ix,
ptrstring  pname,
ptrvoid  pdata,
long  ctbytes
 

Definition at line 474 of file oplist.c.

References newfilledhandle(), and opsetlisthandle().

Here is the call graph for this function:

boolean opsetlisthandle hdllistrecord  hlist,
long  ix,
ptrstring  pname,
Handle  hdata
 

Definition at line 442 of file oplist.c.

References disposehandle(), hnode, nil, opgetlistnode(), and oppushhandle().

Referenced by opsetlistdata(), and setnthlistval().

Here is the call graph for this function:

oplistreleaseitemcallback opsetreleaseitemcallback hdllistrecord  hlist,
oplistreleaseitemcallback  cb
 

Definition at line 511 of file oplist.c.

boolean opunpacklist Handle  hpacked,
hdllistrecord hnewlist
 

Definition at line 645 of file oplist.c.

References assert, clearbytes(), disposehandle(), error, fl, gethandlesize(), idbadopversionnumber, info, loadfromhandle(), loadfromhandletohandle(), longswap, min, nil, opcountatlevel(), opdisposelist(), opdisposeoutline(), oplistversionnumber, opnewlist(), opunpackoutline(), pullfromhandle(), shellinternalerror, shortswap, sizeof(), and STR_bad_list_version_number.

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

Here is the call graph for this function:

boolean opunshifthandle hdllistrecord  hlist,
ptrstring  pname,
Handle  hdata
 

Definition at line 243 of file oplist.c.

References bigstring, copystring(), disposehandle(), error, fldebugging, h, nil, opaddheadline(), oppopoutline(), oppushoutline(), opsetheadstring(), pushint(), and up.

Here is the call graph for this function:

boolean opvisitlist hdllistrecord  hlist,
opvisitlistcallback  visit,
ptrvoid  refcon
 

Definition at line 830 of file oplist.c.

References bigstring, tyheadrecord::headlinkdown, opcountlistitems(), and opgetheadstring().

Referenced by langvisitlistvalues().

Here is the call graph for this function:


Variable Documentation

hdllistrecord hcurrentlist = nil [static]
 

Definition at line 89 of file oplist.c.

Referenced by opdisposelist().


Generated on Thu Jun 8 08:40:40 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6