langlist.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "strings.h"
#include "error.h"
#include "lang.h"
#include "langinternal.h"
#include "langipc.h"
#include "langsystem7.h"
#include "oplist.h"
#include "op.h"

Include dependency graph for langlist.c:

Go to the source code of this file.

Data Structures

struct  tylangvisitlistinfo

Functions

boolean langgetlistsize (const tyvaluerecord *vlist, long *size)
boolean getnthlistval (hdllistrecord hlist, long n, ptrstring pkey, tyvaluerecord *val)
boolean setnthlistval (hdllistrecord hlist, long n, ptrstring pkey, tyvaluerecord *val)
boolean langpushlistval (hdllistrecord hlist, ptrstring pkey, tyvaluerecord *val)
boolean langpushlisttext (hdllistrecord hlist, Handle hstring)
boolean langpushliststring (hdllistrecord hlist, bigstring bs)
boolean langpushlistaddress (hdllistrecord hlist, hdlhashtable ht, bigstring bs)
boolean langpushlistlong (hdllistrecord hlist, long num)
static boolean evaluatefield (hdltreenode htree, bigstring key, boolean flformal, tyvaluerecord *itemval)
boolean makelistvalue (hdltreenode htree, tyvaluerecord *vreturned)
boolean makerecordvalue (hdltreenode htree, boolean flformal, tyvaluerecord *vreturned)
boolean langgetlistitem (const tyvaluerecord *vlist, long ix, ptrstring pkey, tyvaluerecord *vitem)
static boolean listtostring (hdllistrecord hlist, tyvaluerecord *val)
static boolean makeintegerlist (tyvaluerecord *v, tyvaluetype listtype, void *pints, short ctints, hdllistrecord *intlist)
static boolean pullintegerlist (hdllistrecord intlist, short ctints, void *pints)
static Point swappoint (Point pt)
static boolean nofunctioncallsvisit (hdltreenode hnode, void *refcon)
static boolean codecontainsfunctioncalls (hdltreenode hnode)
static boolean stringtolist (tyvaluerecord *val, tyvaluetype type)
boolean coercetolist (tyvaluerecord *val, tyvaluetype type)
static boolean coercelistcontents (tyvaluerecord *val, tyvaluetype totype, hdllistrecord hlist, long ctitems)
boolean coercelistvalue (tyvaluerecord *val, tyvaluetype totype)
static boolean equalsublists (hdllistrecord list1, hdllistrecord list2, long ixcompare, long ctcompare, boolean flbykey)
boolean listaddvalue (tyvaluerecord *v1, tyvaluerecord *v2, tyvaluerecord *vreturned)
boolean listsubtractvalue (tyvaluerecord *v1, tyvaluerecord *v2, tyvaluerecord *vreturned)
static boolean comparelists (hdllistrecord list1, hdllistrecord list2, tytreetype comparisonop)
boolean listcomparevalue (tyvaluerecord *v1, tyvaluerecord *v2, tytreetype comparisonop, tyvaluerecord *vreturned)
boolean coercetolistposition (tyvaluerecord *val)
boolean listarrayvalue (tyvaluerecord *vlist, bigstring bsname, register tyvaluerecord *vindex, tyvaluerecord *vreturned)
boolean listassignvalue (tyvaluerecord *vlist, bigstring bsname, register tyvaluerecord *vindex, tyvaluerecord *vassign)
boolean listdeletevalue (tyvaluerecord *vlist, bigstring bsname, register tyvaluerecord *vindex)
static boolean langvisitlistvaluesvisit (Handle hdata, ptrstring bskey, ptrvoid refcon)
boolean langvisitlistvalues (tyvaluerecord *vlist, langvisitlistvaluescallback visit, ptrvoid refcon)


Function Documentation

static boolean codecontainsfunctioncalls hdltreenode  hnode  )  [static]
 

Definition at line 456 of file langlist.c.

References hnode, langvisitcodetree(), nil, and nofunctioncallsvisit().

Referenced by stringtolist().

Here is the call graph for this function:

static boolean coercelistcontents tyvaluerecord val,
tyvaluetype  totype,
hdllistrecord  hlist,
long  ctitems
[static]
 

Definition at line 695 of file langlist.c.

References coercevalue(), disposevaluerecord(), getnthlistval(), nil, and setnthlistval().

Referenced by coercelistvalue().

Here is the call graph for this function:

boolean coercelistvalue tyvaluerecord val,
tyvaluetype  totype
 

Definition at line 729 of file langlist.c.

References binaryvaluetype, booleanvaluetype, coercelistcontents(), coercetobinary(), coercevalue(), disposevaluerecord(), getnthlistval(), listtostring(), newheapvalue(), nil, opcountlistitems(), opsetisrecord(), pointvaluetype, pt, pullintegerlist(), r, rectvaluetype, rgbvaluetype, setbooleanvalue(), setpointvalue(), stringvaluetype, swappoint(), and v.

Referenced by coercetoalias(), coercetoboolean(), coercetochar(), coercetodate(), coercetodirection(), coercetodouble(), coercetofilespec(), coercetofixed(), coercetoint(), coercetolong(), coercetoobjspec(), coercetoostype(), coercetopattern(), coercetopoint(), coercetorect(), coercetorgb(), coercetosingle(), and coercetostring().

Here is the call graph for this function:

boolean coercetolist tyvaluerecord val,
tyvaluetype  type
 

Definition at line 545 of file langlist.c.

References badexternaloperationerror, binarytodesc(), binaryvaluetype, coercetobinary(), coercevalue(), disposevaluerecord(), externalvaluetype, fl, flinhibitnilcoercion, langbadexternaloperror(), langcoerceerror(), langgetlistsize(), langgettypeid(), langipcconvertaelist(), langpushlistval(), makeintegerlist(), makelistvalue(), makerecordvalue(), nil, noErr, novaluetype, objspecvaluetype, opdisposelist(), opnewlist(), oserror(), pointvaluetype, pt, r, rectvaluetype, rgbvaluetype, setheapvalue(), stringtolist(), stringvaluetype, swappoint(), v, and tyvaluerecord::valuetype.

Referenced by callscriptverb(), coercevalue(), evaluateforinloop(), getgifheightwidthverb(), getjpegheightwidthverb(), htmlcalendardrawverb(), htmlrefglossary(), htmlreportmacroerror(), langfunctionvalue(), threadfunctionvalue(), and unionmatchesverb().

Here is the call graph for this function:

boolean coercetolistposition tyvaluerecord val  ) 
 

Definition at line 1127 of file langlist.c.

References badipclistposerror, coercetolong(), coercetostring(), disablelangerror(), enablelangerror(), fl, langerror(), longvaluetype, ostypevaluetype, stringvaluetype, and v.

Referenced by getlistpositionvalue(), listarrayvalue(), listassignvalue(), and listdeletevalue().

Here is the call graph for this function:

static boolean comparelists hdllistrecord  list1,
hdllistrecord  list2,
tytreetype  comparisonop
[static]
 

Definition at line 1045 of file langlist.c.

References beginswithop, containsop, endswithop, EQop, equalsublists(), opcountlistitems(), and opgetisrecord().

Referenced by equaldescriptors(), and listcomparevalue().

Here is the call graph for this function:

static boolean equalsublists hdllistrecord  list1,
hdllistrecord  list2,
long  ixcompare,
long  ctcompare,
boolean  flbykey
[static]
 

Definition at line 843 of file langlist.c.

References bigstring, fl, and getnthlistval().

Referenced by comparelists().

Here is the call graph for this function:

static boolean evaluatefield hdltreenode  htree,
bigstring  key,
boolean  flformal,
tyvaluerecord itemval
[static]
 

Definition at line 159 of file langlist.c.

References assert, coercetostring(), disposevaluerecord(), evaluatetree(), fieldop, h, htree, langgetidentifier(), and pullstringvalue().

Referenced by evaluatecustomkey(), and makerecordvalue().

Here is the call graph for this function:

boolean getnthlistval hdllistrecord  hlist,
long  n,
ptrstring  pkey,
tyvaluerecord val
 

Definition at line 50 of file langlist.c.

References langunpackvalue(), opgetlisthandle(), and pushvalueontmpstack().

Referenced by coercelistcontents(), coercelistvalue(), equalsublists(), extOdbGetListValue(), langfunctionvalue(), langgetlistitem(), listarrayvalue(), listtostring(), pullintegerlist(), and writetableitemtostreamvisit().

Here is the call graph for this function:

boolean langgetlistitem const tyvaluerecord vlist,
long  ix,
ptrstring  pkey,
tyvaluerecord vitem
 

Definition at line 270 of file langlist.c.

References fllangerror, getnthlistval(), langarrayreferror(), and setlongvalue().

Referenced by datedayofweektostring(), datemonthtostring(), evaluateforinloop(), getdayofweekstring(), getmonthstring(), gettypelistvalue(), langbuildnamedparamlist(), langbuildparamlist(), langipcconvertoplist(), langipcpushrecordparams(), langkernelbuildparamlist(), mrcalendargetaddressday(), namefunc(), opsetexpansionstateverb(), releasesemaphorevisit(), unionmatchesverb(), and xmlfrontiervaltotaggedtext().

Here is the call graph for this function:

boolean langgetlistsize const tyvaluerecord vlist,
long size
 

Definition at line 42 of file langlist.c.

References opcountlistitems().

Referenced by coercetolist(), evaluateforinloop(), gettypelistvalue(), langbuildnamedparamlist(), langbuildparamlist(), langfunctionvalue(), langgetvalsize(), langipcconvertoplist(), langipcpushrecordparams(), langkernelbuildparamlist(), mrcalendargetaddressday(), opsetexpansionstateverb(), unionmatchesverb(), and xmlfrontiervaltotaggedtext().

Here is the call graph for this function:

boolean langpushlistaddress hdllistrecord  hlist,
hdlhashtable  ht,
bigstring  bs
 

Definition at line 123 of file langlist.c.

References disposevaluerecord(), fl, HNoNode, langpackvalue(), nil, oppushhandle(), and setexemptaddressvalue().

Here is the call graph for this function:

boolean langpushlistlong hdllistrecord  hlist,
long  num
 

Definition at line 143 of file langlist.c.

References fl, HNoNode, langpackvalue(), nil, oppushhandle(), and setlongvalue().

Referenced by getgifheightwidthverb(), getjpegheightwidthverb(), langfunctionvalue(), and opgetexpansionstatevisit().

Here is the call graph for this function:

boolean langpushliststring hdllistrecord  hlist,
bigstring  bs
 

Definition at line 112 of file langlist.c.

References langpushlisttext(), and newtexthandle().

Referenced by langbuildnamelist(), and webserveraddtoerrorlog().

Here is the call graph for this function:

boolean langpushlisttext hdllistrecord  hlist,
Handle  hstring
 

Definition at line 91 of file langlist.c.

References tyvaluerecord::data, disposehandle(), fl, HNoNode, initvalue(), langpackvalue(), nil, oppushhandle(), tyvaluedata::stringvalue, and stringvaluetype.

Referenced by addHeaderToTable(), langpushliststring(), parseargsverb(), urlsplit(), and webserveraddtoerrorlog().

Here is the call graph for this function:

boolean langpushlistval hdllistrecord  hlist,
ptrstring  pkey,
tyvaluerecord val
 

Definition at line 80 of file langlist.c.

References HNoNode, langpackvalue(), and oppushhandle().

Referenced by addHeaderToTable(), arraytofrontiervalvisit(), callprotocolhandler(), coercetolist(), extOdbAddListValue(), htmlreportmacroerror(), langipcconvertaelist(), locksemaphoreverb(), makeintegerlist(), makelistvalue(), makerecordvalue(), opgetselvisit(), tablegetselvisit(), and xmlgetaddresslist().

Here is the call graph for this function:

boolean langvisitlistvalues tyvaluerecord vlist,
langvisitlistvaluescallback  visit,
ptrvoid  refcon
 

Definition at line 1280 of file langlist.c.

References info, langvisitlistvaluesvisit(), opvisitlist(), and return().

Here is the call graph for this function:

static boolean langvisitlistvaluesvisit Handle  hdata,
ptrstring  bskey,
ptrvoid  refcon
[static]
 

Definition at line 1258 of file langlist.c.

References disposevaluerecord(), fl, info, and langunpackvalue().

Referenced by langvisitlistvalues().

Here is the call graph for this function:

boolean listaddvalue tyvaluerecord v1,
tyvaluerecord v2,
tyvaluerecord vreturned
 

Definition at line 892 of file langlist.c.

References bigstring, copyhandle(), disposehandle(), i, initvalue(), key, novaluetype, opcountlistitems(), opgetisrecord(), opgetlisthandle(), and oppushhandle().

Referenced by addvalue().

Here is the call graph for this function:

boolean listarrayvalue tyvaluerecord vlist,
bigstring  bsname,
register tyvaluerecord vindex,
tyvaluerecord vreturned
 

Definition at line 1165 of file langlist.c.

References bigstring, coercetolistposition(), fl, fllangerror, getnthlistval(), key, langarrayreferror(), longvaluetype, nil, and pullstringvalue().

Referenced by parsearrayreference().

Here is the call graph for this function:

boolean listassignvalue tyvaluerecord vlist,
bigstring  bsname,
register tyvaluerecord vindex,
tyvaluerecord vassign
 

Definition at line 1194 of file langlist.c.

References bigstring, coercetolistposition(), fl, fllangerror, key, langarrayreferror(), longvaluetype, nil, pullstringvalue(), and setnthlistval().

Referenced by setarrayelement().

Here is the call graph for this function:

boolean listcomparevalue tyvaluerecord v1,
tyvaluerecord v2,
tytreetype  comparisonop,
tyvaluerecord vreturned
 

Definition at line 1114 of file langlist.c.

References comparelists(), fl, fllangerror, and setbooleanvalue().

Referenced by EQvalue(), and specialcomparisonvalue().

Here is the call graph for this function:

boolean listdeletevalue tyvaluerecord vlist,
bigstring  bsname,
register tyvaluerecord vindex
 

Definition at line 1223 of file langlist.c.

References bigstring, coercetolistposition(), fl, fllangerror, key, langarrayreferror(), longvaluetype, nil, opdeletelistitem(), and pullstringvalue().

Referenced by setarrayelement().

Here is the call graph for this function:

boolean listsubtractvalue tyvaluerecord v1,
tyvaluerecord v2,
tyvaluerecord vreturned
 

Definition at line 975 of file langlist.c.

References bigstring, equalhandles(), error, initvalue(), key, novaluetype, opcountlistitems(), opdeletelistitem(), opgetisrecord(), and opgetlisthandle().

Referenced by subtractvalue().

Here is the call graph for this function:

static boolean listtostring hdllistrecord  hlist,
tyvaluerecord val
[static]
 

Definition at line 288 of file langlist.c.

References bigstring, chdoublequote, error, getnthlistval(), i, key, langdeparsestring(), nil, opcountlistitems(), openhandlestream(), opgetisrecord(), writehandlestreamchar(), and writehandlestreamstring().

Referenced by coercelistvalue().

Here is the call graph for this function:

static boolean makeintegerlist tyvaluerecord v,
tyvaluetype  listtype,
void *  pints,
short  ctints,
hdllistrecord intlist
[static]
 

Definition at line 361 of file langlist.c.

References error, langcoerceerror(), langpushlistval(), nil, opdisposelist(), opnewlist(), setintvalue(), and v.

Referenced by coercetolist().

Here is the call graph for this function:

boolean makelistvalue hdltreenode  htree,
tyvaluerecord vreturned
 

Definition at line 199 of file langlist.c.

References error, evaluatetree(), h, htree, langpushlistval(), nil, and opnewlist().

Referenced by callprotocolhandler(), coercetolist(), evaltree(), and stringtolist().

Here is the call graph for this function:

boolean makerecordvalue hdltreenode  htree,
boolean  flformal,
tyvaluerecord vreturned
 

Definition at line 233 of file langlist.c.

References bigstring, error, evaluatefield(), h, htree, key, langpushlistval(), nil, and opnewlist().

Referenced by callprotocolhandler(), coercetolist(), evaltree(), and stringtolist().

Here is the call graph for this function:

static boolean nofunctioncallsvisit hdltreenode  hnode,
void *  refcon
[static]
 

Definition at line 449 of file langlist.c.

References functionop.

Referenced by codecontainsfunctioncalls().

static boolean pullintegerlist hdllistrecord  intlist,
short  ctints,
void *  pints
[static]
 

Definition at line 402 of file langlist.c.

References coercevalue(), getnthlistval(), intvaluetype, langlongparamerror(), listcoerceerror, nil, and opcountlistitems().

Referenced by coercelistvalue().

Here is the call graph for this function:

boolean setnthlistval hdllistrecord  hlist,
long  n,
ptrstring  pkey,
tyvaluerecord val
 

Definition at line 66 of file langlist.c.

References HNoNode, langpackvalue(), oppushhandle(), and opsetlisthandle().

Referenced by coercelistcontents(), extOdbSetListValue(), and listassignvalue().

Here is the call graph for this function:

static boolean stringtolist tyvaluerecord val,
tyvaluetype  type
[static]
 

Definition at line 466 of file langlist.c.

References codecontainsfunctioncalls(), copyhandle(), ctscanchars, ctscanlines, disablelangerror(), disposevaluerecord(), enablelangerror(), evaluatetree(), fl, gethandlesize(), h, langcompiletext(), langdisposetree(), listop, makelistvalue(), makerecordvalue(), nil, and recordop.

Referenced by coercetolist().

Here is the call graph for this function:

static Point swappoint Point  pt  )  [static]
 

Definition at line 437 of file langlist.c.

References pt.

Referenced by coercelistvalue(), and coercetolist().


Generated on Sun Jun 4 11:50:56 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6