C Function Prototypes
Home
Building
DHTML Scripting
Using Diaperglu
Documention Key
Script Commands Reference
C Library API Reference
Handy References
About
License
Contact
Forth Draft Standard
cbuffer.cpp
cerror.cpp
cglu.cpp
chierarchicallist.cpp
cinitwordlist.cpp
clstring.cpp
cmiscellaneous.cpp
assembly
cpux86.cpp
signalcatch
cwordlist.cpp
operating system api
dglumain.cpp
cbuffer.cpp functions
UINT64 dg_newbuffer (
Bufferhandle* pBHarrayhead,
UINT64 growby,
UINT64 maxsize,
const char** pError,
UINT64 forceoutofmemory)
void dg_freebuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
UINT64 dg_freeallbuffers (Bufferhandle* pBHarrayhead)
const char* dg_checkbuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
UINT64 dg_growbuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 length,
const char** pError,
UINT64 forceoutofmemory)
void dg_shrinkbuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 length,
const char** pError)
unsigned char* dg_getpbuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64** pplength)
void dg_clearbuffer (Bufferhandle* pBHarrayhead, UINT64 bufferid)
unsigned char* dg_getpbuffersegment (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset,
UINT64 length)
unsigned char* dg_getpbufferoffset (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset)
void dg_getbuffersegment (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset,
UINT64 length,
unsigned char* pdest)
void dg_putbuffersegment (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset,
UINT64 length,
unsigned char* psrc)
UINT64 dg_getbufferdword (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset)
void dg_putbufferdword (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset,
UINT64 data)
void dg_pushbufferdword (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 data)
void dg_pushbuffersegment (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 length,
unsigned char* psrc)
void dg_pickbuffersegment (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset,
UINT64 length)
void dg_popbuffersegment (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 length,
unsigned char* pdest)
unsigned char dg_getbufferbyte (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset)
void dg_putbufferbyte (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset,
unsigned char data)
unsigned char dg_popbufferbyte (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
void dg_pushbufferbyte (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
unsigned char data)
UINT64 dg_popbufferdword (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
void dg_insertinbuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset, // in bytes
UINT64 length)
void dg_deleteinbuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset, // in bytes
UINT64 length) // in bytes
UINT64 dg_getbufferlength (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
Bufferhandle* dg_getpbufferhandle (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
void dg_push0stringtobuffersegment (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
unsigned char* psrc)
void dg_pushdatastack (
Bufferhandle* pBHarrayhead,
UINT64 data)
// ( -- data )
UINT64 dg_popdatastack (Bufferhandle* pBHarrayhead)
// ( data -- )
UINT64 dg_newbufferset (
Bufferhandle* pBHarrayhead,
UINT64 growby,
UINT64 maxsize,
UINT64 numberofbuffers)
UINT64 dg_getuint64arrayelement (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 index)
void dg_putuint64arrayelement (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 index,
UINT64 x)
UINT64 dg_getuint64stackelement (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 index)
void dg_putUINT64stackelement (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 index,
UINT64 x)
UINT64 dg_stonewbuffer (
Bufferhandle* pBHarrayhead,
UINT64 growby,
UINT64 maxsize,
unsigned char* psrc,
UINT64 srclength)
Bufferhandle* dg_getpbufferhandlefast (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
void dg_makebuffersizeatleastx (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 x)
unsigned char* dg_getpnewbuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferlength)
const char* dg_parse (
Bufferhandle* pBHarrayhead,
UINT64* pstringlength,
unsigned char enddelimiter)
const char* dg_parsemultiline (
Bufferhandle* pBHarrayhead,
UINT64* pstringlength,
unsigned char enddelimiter)
unsigned char* dg_parseword (
Bufferhandle* pBHarrayhead,
UINT64* pwordlength)
unsigned char* dg_parsewords (
Bufferhandle* pBHarrayhead,
UINT64* pwordlength,
unsigned char enddelimiter,
UINT64* pfoundendflag,
UINT64 lineterminatorsareendflag)
unsigned char* dg_tocurrent (
Bufferhandle* pBHarrayhead,
UINT64 newcurrentwordlist)
void dg_tocurrent (
Bufferhandle* pBHarrayhead,
UINT64 newcurrentwordlist)
UINT64 dg_currentfrom (
Bufferhandle* pBHarrayhead)
UINT64 dg_ubufferalign (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 u)
cerror.cpp functions
void dg_initerrors (
Bufferhandle* pBHarrayhead,
unsigned int size,
const char** pError)
void dg_pusherror (
Bufferhandle* pBHarrayhead,
const char* error)
void dg_pushbuffererror (
Bufferhandle* pBHarrayhead,
unsigned int bufferid,
unsigned int offset)
const char* dg_geterror (
Bufferhandle* pBHarrayhead,
unsigned int errorindex)
void dg_getbuffererror (
Bufferhandle* pBHarrayhead,
unsigned int errorindex,
UINT64* poffset,
UINT64* pbufferid)
const char* dg_poperror (Bufferhandle* pBHarrayhead)
void dg_popbuffererror (
Bufferhandle* pBHarrayhead,
UINT64* perrmsgoffset,
UINT64* perrmsgbufid)
UINT64 dg_geterrorcount (Bufferhandle* pBHarrayhead)
UINT64 dg_checkerrorsonstack (Bufferhandle* pBHarrayhead)
void dg_clearerrors (Bufferhandle* pBHarrayhead)
void dg_droptoerrorcount (
Bufferhandle* pBHarrayhead,
UINT64 newerrorcount)
void dg_replaceerrors (
Bufferhandle* pBHarrayhead,
UINT64 olderrorbufferid,
UINT64 olderroroffset,
UINT64 newerrorbufferid,
UINT64 newerroroffset)
cglu.cpp functions
void dg_patchpnewbuffer (
Bufferhandle* pBHarrayhead,
UINT64 desthlistheaderid,
UINT64 destparentelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmydesthlistheader)
void dg_patchaddressusingdlsym (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 parentelementid,
UINT64 dylibhandle,
unsigned char* pbuffer,
UINT64 bufferlength)
void dg_patchaddressusingdlsymb (
Bufferhandle* pBHarrayhead,
UINT64 desthlistheaderid,
UINT64 destparentelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmydesthlistheader)
void dg_patchaddressusinghlist (
Bufferhandle* pBHarrayhead,
UINT64 desthlistheaderid,
UINT64 destparentelementid,
unsigned char* pdestbuffer,
UINT64 destbufferlength,
UINT64 srchlistheaderid,
UINT64 srcparentelementid,
unsigned char* psrcbuffer)
void dg_patchaddressusinghlistb (
Bufferhandle* pBHarrayhead,
UINT64 desthlistheaderid,
UINT64 destparentelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmydesthlistheader)
void dg_patchaddressusingoffset (
Bufferhandle* pBHarrayhead,
UINT64 desthlistheaderid, // id of hlist containing destination patch list
UINT64 destparentelementid, // parent element id of the destination patch list
unsigned char* pdestbuffer, // address of destination buffer to patch
UINT64 destbufferlength, // length of destination buffer
unsigned char* psrcbuffer) // pointer to source buffer (base address)
void dg_patchaddressusingoffsetb (
Bufferhandle* pBHarrayhead,
UINT64 desthlistheaderid,
UINT64 destparentelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmydesthlistheader)
void dg_loadfilelist (
Bufferhandle* pBHarrayhead,
UINT64 srchlistid,
UINT64 parentelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmysrchlistheader)
void dg_loadhlistfilelist (
Bufferhandle* pBHarrayhead,
UINT64 srchlistid,
UINT64 parentelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmysrchlistheader)
void dg_newbufferlist (
Bufferhandle* pBHarrayhead,
UINT64 srchlistid,
UINT64 parentelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmysrchlistheader)
void dg_loadsymbollist (
Bufferhandle* pBHarrayhead,
UINT64 symbollisthlistid,
UINT64 symbollistelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmysrchlistheader)
void dg_setpatchdestbufid (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pbuffername,
UINT64 buffernamelength,
Hlistheader* pmyhlistheader)
void dg_setpatchsrcbufid (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pbuffername,
UINT64 buffernamelength,
Hlistheader* pmyhlistheader)
void dg_setpatchsrclib (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* plibname,
UINT64 libnamelength,
Hlistheader* pmyhlistheader)
void dg_setpatchsrcsymbollist (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* psymbollistname,
UINT64 symbollistnamelength,
Hlistheader* pmyhlistheader)
void dg_setpatchdestsymbollist (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* psymbollistname,
UINT64 symbollistnamelength,
Hlistheader* pmyhlistheader)
UINT64 dg_callpatchsrclib (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pfunctionname,
UINT64 functionnamelength,
Hlistheader* pmyhlistheader)
void dg_callpatchsrclibtods (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pfunctionname,
UINT64 functionnamelength,
Hlistheader* pmyhlistheader)
UINT64 dg_callpatchsrcbufsymbol (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pfunctionname,
UINT64 functionnamelength,
Hlistheader* pmyhlistheader)
void dg_callpatchsrcbufsymboltods (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pfunctionname,
UINT64 functionnamelength,
Hlistheader* pmyhlistheader)
UINT64 dg_callpatchdestbufoffset (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pdestoffset,
UINT64 destoffsetlength,
Hlistheader* pmyhlistheader)
UINT64 dg_callpatchdestbufoffsttods (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pdestoffset,
UINT64 destoffsetlength,
Hlistheader* pmyhlistheader)
void dg_glueidhidtods (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pfunctionname,
UINT64 functionnamelength,
Hlistheader* pmyhlistheader)
void dg_gluUINT64valuetods (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pfunctionname,
UINT64 functionnamelength,
Hlistheader* pmyhlistheader)
void dg_gluvaluetoss (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pfunctionname,
UINT64 functionnamelength,
Hlistheader* pmyhlistheader)
void dg_glufuncnglu (
Bufferhandle* pBHarrayhead,
UINT64 srchlistid,
UINT64 parentelementid,
unsigned char* pparentvalue,
UINT64 parentvaluelength,
Hlistheader* pmysrchlistheader)
void dg_glu (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid)
void dg_nglu (
Bufferhandle* pBHarrayhead,
UINT64 hlistid)
chierarchicallist.cpp functions
void dg_gethlistheaderarrayheader (
Bufferhandle* pBHarrayhead,
Freeablelstringarrayheader* phlistheaderarrayheader,
UINT64 hlistheaderarrayheaderlength)
UINT64 dg_querycreatehlistheaderarray (
Bufferhandle* pBHarrayhead)
void dg_gethlistheader (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
Hlistheader* phlistheader,
UINT64 hlistheaderlength)
void dg_freehlistmemory (
Bufferhandle* pBHarrayhead,
struct Hlistheader* phlist)
void dg_allocatehlistmemory (
Bufferhandle* pBHarrayhead,
struct Hlistheader* phlist,
UINT64 hlistlength)
UINT64 dg_newhlist (
Bufferhandle* pBHarrayhead)
void dg_freehlist (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid)
void dg_linklasthlistchildelement (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementheaderid,
UINT64 parentelementheaderid)
void dg_unlinkhlistchildelement (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementheaderid)
UINT64 dg_newhlistelement (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 parentelementid,
unsigned char* pname,
UINT64 namelength,
unsigned char* pvalue,
UINT64 valuelength)
void dg_freehlistelement (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementheaderid)
UINT64 dg_gethlistlastchildofparent (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 parentelementid)
UINT64 dg_gethlistfirstchild (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 parentelementid)
void dg_prunehlistelement (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementheaderid)
UINT64 dg_gethlistnextsibling (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 childelementid)
UINT64 dg_gethlistprevioussibling (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 childelementid)
UINT64 dg_gethlistelementparent (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementid)
unsigned char* dg_getshlistelementnom (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementid,
UINT64* pnamelength)
unsigned char* dg_getshlistelementvalue (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementid,
UINT64* pvaluelength)
unsigned char* dg_sethlistelementvalue (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementid
unsigned char* pvalue,
UINT64 valuelength)
void dg_getshlistelement (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementid,
unsigned char** ppname,
UINT64* pnamelength,
unsigned char** ppvalue,
UINT64* pvaluelength)
INT64 dg_sortcomparehlistnom (
Bufferhandle* pBHarrayhead,
void* pcomparedata,
UINT64 comparedatalength,
UINT64 keyofmidrangevalue)
INT64 dg_dobinaryinsertsortstep (
Bufferhandle* pBHarrayhead,
unsigned char* psortedkeyslstring,
UINT64 sortedkeyslength,
INT64 (*pcompareroutine)(Bufferhandle*, void*, UINT64, UINT64),
void* pcomparedata,
UINT64 comparedatalength,
UINT64* pstartindex,
UINT64* pendindex,
UINT64* ptofindbeforerangeflag,
UINT64* ploopdoneflag)
UINT64 dg_findsortedhlistchildsub (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength,
UINT64 sortedkeyslstringlength,
unsigned char* psortedkeyslstring,
UINT64* pnamelstringoffsetbuffer,
unsigned char* pnamelstringstringbuffer,
UINT64* pindexofkeyaftermatch,
UINT64* pkey)
UINT64 dg_findsortedhlistchild (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength,
UINT64 hlistheaderid,
UINT64 parentelementid,
UINT64* pindexofkeyaftermatch,
UINT64* pkey)
const char* dg_getshlistelementnamene (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 elementid,
unsigned char** ppname,
UINT64* pnamelength)
void dg_changehlistelementparent (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
UINT64 newparentelementid)
UINT64 dg_getnumberofsortedchildren (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 parentelementid)
UINT64 dg_getidofsortedhlistchildn (
Bufferhandle* pBHarrayhead,
UINT64 hlistheaderid,
UINT64 parentelementid,
UINT64 sortkeyindex)
void dg_addnsamechartostring (
Bufferhandle* pBHarrayhead,
UINT64 n,
unsigned char c)
void dg_hlisttodglumlstring (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 rootelementid,
UINT64 indentationstepsize,
UINT64 currentindentationlevel)
UINT64 dg_newunsortedhlistelement (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
Hlistheader myhlistheader,
UINT64 parentelementid,
unsigned char* pname,
UINT64 namelength,
unsigned char* pvalue,
UINT64 valuelength,
UINT64 previouselementid,
UINT64 nextelementid)
void dg_callhlistchildren (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 parentelementid,
UINT64 maxnumberoffunctions,
void (**pfunctions)(Bufferhandle*, UINT64, UINT64, unsigned char*, UINT64, Hlistheader*))
void dg_callhlistchildrenbyn (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 parentelementid,
UINT64 fsortedkeyslstringlength,
unsigned char* pfsortedkeyslstring,
UINT64* pfnamelstringoffsetbuffer,
unsigned char* pfnamelstringstringbuffer,
void (**pfunctions)(Bufferhandle*, UINT64, UINT64, unsigned char*, UINT64, Hlistheader*))
UINT64 dg_packhlist (
Bufferhandle* pBHarrayhead,
UINT64 hlistid)
UINT64 dg_unpackhlist (
Bufferhandle* pBHarrayhead,
UINT64 packedbufferid)
unsigned char* dg_namestringtovaluestring (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pname,
UINT64 namelength,
UINT64* pvaluelength)
unsigned char* dg_namestringtovaluestringflag (
Bufferhandle* pBHarrayhead,
UINT64 hlistid,
UINT64 elementid,
unsigned char* pname,
UINT64 namelength,
UINT64* pvaluelength,
UINT64* pwherefoundflag)
cinitwordlist.cpp functions
void dg_initwordlists (Bufferhandle* pBHarrayhead)
clstring.cpp functions
UINT64 dg_getlstringstartoffset (
Bufferhandle *pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringid)
UINT64 dg_getlstringlength (
Bufferhandle *pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringid)
UINT64 dg_getnumberoflstringsonstack (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid)
unsigned char* dg_getplstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64* pstringlength)
void dg_getlstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64 maxlength,
unsigned char* pdest)
void dg_poplstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 maxlength,
unsigned char* pdest)
void dg_pushlstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 length,
unsigned char* psrc)
void dg_growlstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 length)
void dg_catlstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid)
void dg_stotoplstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 length,
unsigned char* psrc)
void dg_picklstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 n)
void dg_droplstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid)
void dg_dropnlstrings (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 n)
void dg_deletelstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid)
void dg_insertlstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64 length)
void dg_deleteinlstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64 offset,
UINT64 length)
void dg_insertinlstring (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64 offset,
UINT64 length)
void dg_catlstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid)
void dg_copystolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64 offset,
unsigned char* psrc,
UINT64 length)
void dg_copysfromlstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64 offset,
UINT64 length,
unsigned char* pdest)
void dg_setlengthlstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64 newlength)
void dg_replacelstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
unsigned char* psrc,
UINT64 length)
void dg_copylstringntoreplacelstringn (
Bufferhandle* pBHarrayhead,
UINT64 srcoffsetbufferid,
UINT64 srcstringbufferid,
UINT64 srcstringid,
UINT64 destoffsetbufferid,
UINT64 deststringbufferid,
UINT64 deststringid)
void dg_copytoinsertlstrntom (
Bufferhandle* pBHarrayhead,
UINT64 srcoffsetbufferidn,
UINT64 srcstringbufferidn,
UINT64 srcstringidn,
UINT64 srcoffsetn,
UINT64 destoffsetbufferidm,
UINT64 deststringbufferidm,
UINT64 deststringidm,
UINT64 destoffsetm,
UINT64 length)
void dg_makesurelstringnexists (
Bufferhandle* pBHarrayhead,
UINT64 lstringoffsetbufferid,
UINT64 lstringstringbufferid,
UINT64 n)
void dg_freefreeablelstringarray (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer)
UINT64 dg_newfreeablelstringarray (Bufferhandle* pBHarrayhead)
void dg_freefreeablelstring (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
UINT64 lstringindex)
UINT64 dg_newfreeablelstring (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer)
UINT64 dg_isfreeablelstringfree (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
UINT64 flstringid)
Freeablelstringarrayheader* dg_getsflstrheader (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
UINT64* pflstrheaderlength)
voiddg_copyflstrheadertos (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
Freeablelstringarrayheader* pflstrheader,
UINT64 flstrheaderlength)
voiddg_insertsintoflstrn (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
UINT64 flstringid,
UINT64 offset,
UINT64 length,
unsigned char* pdest)
voiddg_copysfromflstrn (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
UINT64 flstringid,
UINT64 offset,
unsigned char* psrc,
UINT64 length)
voiddg_copytoinsertflstrntom (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffern,
UINT64 flstringnid,
UINT64 offsetn,
UINT64 freeindexbufferm,
UINT64 flstringmid,
UINT64 offsetm,
UINT64 length)
voiddg_deleteinflstringn (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
UINT64 flstringid,
UINT64 offset,
UINT64 length)
UINT64dg_getlengthflstringn (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
UINT64 flstringid)
UINT64dg_newfreeablelstringonend (
Bufferhandle* pBHarrayhead,
UINT64 freeindexbuffer,
unsigned char* plstring,
UINT64 lstringlength))
INT64 dg_comparestolstringn (
Bufferhandle* pBHarrayhead,
unsigned char* ps,
UINT64 slength,
UINT64 lstringoffsetbufferid,
UINT64 lstringstringbufferid,
UINT64 n)
void dg_deleteUINT64inlstringn (
Bufferhandle* pBHarrayhead,
UINT64 lstringoffsetbufferid,
UINT64 lstringstringbufferid,
UINT64 lstringindex,
UINT64 UINT64toremove)
void dg_insertwithcfillinlstringn (
Bufferhandle* pBHarrayhead,
UINT64 lstringoffsetbufferid,
UINT64 lstringstringbufferid,
UINT64 lstringindex,
UINT64 offset,
UINT64 length,
unsigned char cvalue)
void dg_packlstring (
Bufferhandle* pBHarrayhead,
UINT64 lstringoffsetbufferid,
UINT64 lstringstringbufferid)
UINT64 dg_isbufferapackedlstring (
Bufferhandle* pBHarrayhead,
UINT64 lstringstringbufferid)
void dg_unpacklstring (
Bufferhandle* pBHarrayhead,
UINT64 lstringstringbufferid)
UINT64 dg_urlencodelstring (
UINT64 lstringoffsetbufferid,
UINT64 lstringstringbufferid)
void dg_urldecodelstring (
UINT64 lstringoffsetbufferid,
UINT64 lstringstringbufferid)
void dg_uleextendlstringntol (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64 newlength)
void dg_uaddlelstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb,
UINT64* pcarryout)
void dg_uadclelstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb,
UINT64* pcarryinout)
void dg_ulesbblstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb,
UINT64* pborrowinout)
void dg_lelshiftlstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64* pcarryout)
void dg_ulershiftlstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64* pcarryout)
void dg_slershiftlstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64* pcarryout)
void dg_lelshiftclstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64* pcarryinout)
void dg_lershiftclstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid,
UINT64* pcarryinout)
void dg_notlstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid)
void dg_reverselstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferid,
UINT64 stringbufferid,
UINT64 stringid)
void dg_uleandlstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb)
void dg_uleorlstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb)
void dg_ulexorlstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb)
void dg_ulenandlstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb)
void dg_ulenorlstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb)
void dg_ulexnorlstringntolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb)
void dg_mulu64bylstringnaddtolstringn (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 offsetbufferidb,
UINT64 stringbufferidb,
UINT64 stringidb,
UINT64 u)
void dg_divlstringnbyu64 (
Bufferhandle* pBHarrayhead,
UINT64 offsetbufferida,
UINT64 stringbufferida,
UINT64 stringida,
UINT64 u,
UINT64* premainder)
UINT64 dg_stonewstring (
unsigned char* pstring,
UINT64 stringlength)
UINT64 dg_stonew0string (
unsigned char* pstring,
UINT64 stringlength)
UINT64 dg_pzerostringtonewstring (
unsigned char* pzerostring)
cmiscellaneous.cpp functions
UINT64 dg_getbharrayheadsize ()
UINT64 dg_getnearesthighestmultiple (
UINT64 n,
UINT64 pagesize)
UINT64 dg_calcnearestpagesize (UINT64 n)
void dg_getlocalpath (Bufferhandle* pBHarrayhead)
void dg_pushenvtobuf (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
const char* penvname)
UINT64 dg_getevalstdinfileid (Bufferhandle* pBHarrayhead)
UINT64 dg_getevalfilenamefileid (
Bufferhandle* pBHarrayhead,
unsigned char* pbuf,
UINT64* pbuflength)
UINT64 dg_getevalargsfileid (Bufferhandle* pBHarrayhead)
UINT64 dg_getnoscriptfileid (Bufferhandle* pBHarrayhead)
UINT64 dg_getiisquerystringfileid (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_getapachequerystrfileid (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_getquerystringfileid (Bufferhandle* pBHarrayhead)
UINT64 dg_checkformatchafterslash (
unsigned char* pbufa,
UINT64 bufalength,
unsigned char* pbufb,
UINT64 bufblength)
UINT64 dg_getevaluatefileid (Bufferhandle* pBHarrayhead)
void dg_querygetpost (
Bufferhandle* pBHarrayhead,
UINT64 firsttimethrough)
void dg_closeevalfileid (
Bufferhandle* pBHarrayhead,
UINT64 fileid)
UINT64 dg_getline (
Bufferhandle* pBHarrayhead,
UINT64 fileid,
UINT64 bufferid,
const char* pforceerror)
void dg_captureerrorline (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
void dg_evaluatefileid (
Bufferhandle* pBHarrayhead,
UINT64 fileid,
UINT64* pfirsttimethrough)
void dg_sendnoscriptfilepage (Bufferhandle* pBHarrayhead)
void dg_sendfilenotfoundpage (
Bufferhandle* pBHarrayhead,
UINT64 olderrorcount)
void dg_showinputmode (
Bufferhandle* pBHarrayhead,
UINT64 fileid)
void dg_showerrorspage (
Bufferhandle* pBHarrayhead)
void dg_showinputmodepage (
Bufferhandle* pBHarrayhead,
UINT64 fileid)
void dg_sendgetenvvarerrorpage (Bufferhandle* pBHarrayhead)
void dg_doinputstuff (
Bufferhandle* pBHarrayhead,
UINT64* pfirsttimethrough)
void dg_evaluatebuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid)
void dg_argstoargsbuffer (
Bufferhandle* pBHarrayhead,
int argc,
char* argv[])
void dg_compilesegment (
Bufferhandle* pBHarrayhead,
const char* psrc,
UINT64 length)
void dg_compilecallcore (
Bufferhandle* pBHarrayhead,
UINT64 addr)
void dg_compilecallcorepreserveregs (
Bufferhandle* pBHarrayhead,
UINT64 addr)
void dg_compilepushdatastack (Bufferhandle* pBHarrayhead)
void dg_smslashrem (UINT64* pints)
void dg_fmslashmod (UINT64* pints)
const char* dg_checkbharrayhead (Bufferhandle* pBHarrayhead)
const char* dg_checkbharray (Bufferhandle* pBHarrayhead)
void dg_stonewstring (
Bufferhandle* pBHarrayhead,
unsigned char* pstring,
UINT64 stringlength)
void dg_pzerostringtonewstring (
Bufferhandle* pBHarrayhead,
unsigned char* pzerostring)
const char* dg_checkargs (
int argc, // assumes argc is at least one less than largest signed int
char* argv[])
unsigned char* dg_parseword (
Bufferhandle* pBHarrayhead,
UINT64* pwordlength)
unsigned char* dg_parsewords (
Bufferhandle* pBHarrayhead,
UINT64* pwordlength,
unsigned char enddelimiter,
UINT64* pfoundendflag)
FLOAT64 dg_f32tof64 (FLOAT32 f32)
FLOAT32 dg_f64tof32 (FLOAT64 f64)
INT64 dg_ftod (FLOAT32 f32)
INT64 dg_dftod (FLOAT64 f64)
FLOAT64 dg_dtodf (INT64 i64)
dg_compilecpux86.cpp functions
void dg_compilemovntorax (
Bufferhandle* pBHarrayhead,
UINT64 u)
void dg_compilemovntoeax (
Bufferhandle* pBHarrayhead,
UINT64 u)
void dg_compilesubn8fromrsp (
Bufferhandle* pBHarrayhead,
UINT64 n8)
void dg_compileaddn8torsp (
Bufferhandle* pBHarrayhead,
UINT64 n8)
void dg_compilepushn64toret (
Bufferhandle* pBHarrayhead,
UINT64 n64)
void dg_compileacopyofsscopyto (
Bufferhandle* pBHarrayhead,
unsigned char* psqstr,
UINT64 sqstrlen)
void dg_compilecopystonewstring (
Bufferhandle* pBHarrayhead,
const char* pstring,
UINT64 stringlength)
void dg_compilesubnfromrsp (Bufferhandle* pBHarrayhead)
void dg_compiledatalink (Bufferhandle* pBHarrayhead)
void dg_compilejumptoeax (Bufferhandle* pBHarrayhead)
void dg_compilereturn (Bufferhandle* pBHarrayhead)
void dg_compileclc (Bufferhandle* pBHarrayhead)
void dg_compilestc (Bufferhandle* pBHarrayhead)
void dg_compilecalloffset (
Bufferhandle* pBHarrayhead,
INT64 offset)
void dg_compilejmpoffset (
Bufferhandle* pBHarrayhead,
INT64 offset)
void dg_compilejmpbracketoffset (
Bufferhandle* pBHarrayhead,
INT64 offset)
void dg_compilecalloffsetinsamebuffer (
Bufferhandle* pBHarrayhead,
INT64 targetoffset)
void dg_compilejumptoaddress (
Bufferhandle* pBHarrayhead,
UINT64 addr)
void dg_compilecalladdress (
Bufferhandle* pBHarrayhead,
UINT64 addr)
void dg_forthdocompiletypecall (
Bufferhandle* pBHarrayhead)
void dg_compilecalladdresspreserveregs (
Bufferhandle* pBHarrayhead,
UINT64 addr)
unsigned char dg_packmodrslashm (
UINT64 mode,
UINT64 reg1orn,
UINT64 reg2ormem)
unsigned char dg_packsib (
UINT64 basereg,
UINT64 indexscalecode,
UINT64 indexreg)
void dg_compileinitlocals (Bufferhandle* pBHarrayhead)
void dg_compilepusholderrorcounttoret (Bufferhandle* pBHarrayhead)
void dg_compilequeryerror (Bufferhandle* pBHarrayhead)
void dg_compileexitlocals (Bufferhandle* pBHarrayhead)
void dg_compilealignretstack (
Bufferhandle* pBHarrayhead,
UINT64 numberofparameters)
void dg_forthcompilealignretforn (
Bufferhandle* pBHarrayhead)
void dg_compilealignretstackpreserveregs (
Bufferhandle* pBHarrayhead,
UINT64 numberofparameters)
void dg_forthcompilealignretfornpf (
Bufferhandle* pBHarrayhead)
void dg_showframe (Bufferhandle* pBHarrayhead)
void dg_compilepushparametertoret (
Bufferhandle* pBHarrayhead,
UINT64 parameterindex)
void dg_compilepushregtoret (
Bufferhandle* pBHarrayhead,
UINT64 reg)
void dg_compilepopregfromret (
Bufferhandle* pBHarrayhead,
UINT64 reg)
UINT64 dg_compilebranch (
Bufferhandle* pBHarrayhead,
UINT64 branchtype)
void dg_resolvecompiledbranch (
Bufferhandle* pBHarrayhead,
UINT64 afterbranchoffset,
UINT64 targetoffset)
void dg_resolvecompiled8bitbranch (
Bufferhandle* pBHarrayhead,
UINT64 afterbranchoffset,
UINT64 targetoffset)
void dg_compilecompare (
Bufferhandle* pBHarrayhead,
UINT64 n)
void dg_compileundoalignretstack (Bufferhandle* pBHarrayhead)
void dg_compiledropparametersfromret (
Bufferhandle* pBHarrayhead,
UINT64 n)
UINT64 dg_compilepushntoret (
Bufferhandle* pBHarrayhead,
UINT64 n)
void dg_forthcompilesafecallbuffer (Bufferhandle* pBHarrayhead)
void dg_initjumpbuffer (
Bufferhandle* pBHarrayhead,
char* jumpbufferstring)
void dg_forthshowcapturedregs (Bufferhandle* pBHarrayhead)
void dg_initSibformatter (
struct dg_Sibformatter* psf)
void dg_bumpdisplacementsizeifneeded (
struct dg_Sibformatter* psf)
void dg_setmod (
struct dg_Sibformatter* psf)
void dg_formatsib (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
void dg_formatmodrslashm (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
void dg_formatreg (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
void dg_calculatemodrslashm (
struct dg_Sibformatter* psf)
void dg_calculatesib (
struct dg_Sibformatter* psf)
void dg_getsizefromreg (
UINT64 reg)
void dg_pullmemusingsib (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
INT64 dg_getcallsubsframepreservedregoffset (
Bufferhandle* pBHarrayhead,
UINT64 regpreservedpos)
void dg_pulloneaddressingmode (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
void dg_pulloneaddressingmode (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
void dg_compiledisplacement (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
void dg_ccboffsettodisplacement (
Bufferhandle* pBHarrayhead,
UINT64 targetccboffset,
UINT64 opcodelength,
UINT64 immediatedatalength,
UINT64 beforeinstructionccboffset)
void dg_compilepsf (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
void dg_queryisrega (
UINT64 regtype)
void dg_gettargettype (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf)
void dg_determine2targettype (
Bufferhandle* pBHarrayhead,
dg_Sibformatter* psf1,
dg_Sibformatter* psf2)
void dg_compilen8tom8 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilen16tom16 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilen32tom32 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilen8tom32 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilen8tom16 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilentom (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compileopcodeplusropstr (
Bufferhandle* pBHarrayhead,
const char* popcodestring,
UINT64 opcodestringlength,
UINT64 reg)
void dg_compilemem8 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilereg8 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilerega8 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilen8 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilen16 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilen16signextended (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilen32 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilen32signextended (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilemem16 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilereg16 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilerega16 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilemem32 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilereg32 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilerega32 (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilentarget (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compileregatarget (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compileregtarget (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compilememtarget (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_compileonetarget (
Bufferhandle* pBHarrayhead,
struct Onetargetopcodestrings* popcodes,
dg_Sibformatter* ptargetsf)
void dg_fillonetargetmemonlyoptable (
Bufferhandle* pBHarrayhead,
Onetargetopcodestrings* popcodes,
UINT64 baseopcode,
UINT64 opcodeextension)
void dg_compilen8tor8 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilen16tor16 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilen32tor32 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilentor (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilen8toa8 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pmempsf)
void dg_compilen16toa16 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pmempsf)
void dg_compilen32toa32 (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pmempsf)
void dg_compilentoa (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pimmediatepsf,
dg_Sibformatter* pregpsf)
void dg_compilertom (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pregpsf,
dg_Sibformatter* pmempsf)
void dg_compiletwotargets (
Bufferhandle* pBHarrayhead,
Twotargetopcodestrings* popcodes,
dg_Sibformatter* pfirsttarget,
dg_Sibformatter* psecondtarget)
void dg_fill2targetmathoptbl (
Bufferhandle* pBHarrayhead,
struct Twotargetopcodestrings* popcodes,
UINT64 mathopindex)
void dg_fill2targetmovoptbl (
Bufferhandle* pBHarrayhead,
struct Twotargetopcodestrings* popcodes)
void dg_fill2targettestoptbl (
Bufferhandle* pBHarrayhead,
struct Twotargetopcodestrings* popcodes)
void dg_fill2targetmemonlyoptbl (
Bufferhandle* pBHarrayhead,
struct Twotargetopcodestrings* popcodes,
UINT64 memopcode)
void dg_fill2targetmembonlyoptbl (
Bufferhandle* pBHarrayhead,
struct Twotargetopcodestrings* popcodes,
UINT64 memopcode)
void dg_fill2targetmem32onlyoptbl (
Bufferhandle* pBHarrayhead,
struct Twotargetopcodestrings* popcodes,
UINT64 memopcode)
void dg_fill2targetm32bonlyoptbl (
Bufferhandle* pBHarrayhead,
struct Twotargetopcodestrings* popcodes,
UINT64 memopcode)
void dg_pullandcompiletwotargets (
Bufferhandle* pBHarrayhead,
struct Twotargetopcodestrings* popcodes)
void dg_forthadccomma (Bufferhandle* pBHarrayhead)
void dg_forthaddcomma (Bufferhandle* pBHarrayhead)
void dg_forthandcomma (Bufferhandle* pBHarrayhead)
void dg_forthcmpcomma (Bufferhandle* pBHarrayhead)
void dg_forthorcomma (Bufferhandle* pBHarrayhead)
void dg_forthsbbcomma (Bufferhandle* pBHarrayhead)
void dg_forthsubcomma (Bufferhandle* pBHarrayhead)
void dg_forthxorcomma (Bufferhandle* pBHarrayhead)
void dg_forthmovcomma (Bufferhandle* pBHarrayhead)
void dg_forthtestcomma (Bufferhandle* pBHarrayhead)
void dg_forthcmovcomma (Bufferhandle* pBHarrayhead)
void dg_forthnotcomma (Bufferhandle* pBHarrayhead)
void dg_forthnegcomma (Bufferhandle* pBHarrayhead)
void dg_forthmulcomma (Bufferhandle* pBHarrayhead)
void dg_forthdivcomma (Bufferhandle* pBHarrayhead)
void dg_forthidivcomma (Bufferhandle* pBHarrayhead)
void dg_forthbswapcomma (Bufferhandle* pBHarrayhead)
void dg_forthpushcomma (Bufferhandle* pBHarrayhead)
void dg_forthpopcomma (Bufferhandle* pBHarrayhead)
void dg_forthinccomma (Bufferhandle* pBHarrayhead)
void dg_forthdeccomma (Bufferhandle* pBHarrayhead)
UINT64 dg_getshiftopcodetype (dg_Sibformatter* pmymodesf)
void dg_pullandcompileshiftop (
Bufferhandle* pBHarrayhead,
UINT64 opcodeextension)
void dg_forthsetcomma (Bufferhandle* pBHarrayhead)
void dg_forthrclcomma (Bufferhandle* pBHarrayhead)
void dg_forthrcrcomma (Bufferhandle* pBHarrayhead)
void dg_forthrolcomma (Bufferhandle* pBHarrayhead)
void dg_forthrorcomma (Bufferhandle* pBHarrayhead)
void dg_forthshlcomma (Bufferhandle* pBHarrayhead)
void dg_forthshrcomma (Bufferhandle* pBHarrayhead)
void dg_forthsarcomma (Bufferhandle* pBHarrayhead)
void dg_forthhltcomma (Bufferhandle* pBHarrayhead)
void dg_forthnopcomma (Bufferhandle* pBHarrayhead)
void dg_forthaltooutdxcomma (Bufferhandle* pBHarrayhead)
void dg_fortheaxtooutdxcomma (Bufferhandle* pBHarrayhead)
void dg_forthindxtoalcomma (Bufferhandle* pBHarrayhead)
void dg_forthindxtoeaxcomma (Bufferhandle* pBHarrayhead)
void dg_forthretcomma (Bufferhandle* pBHarrayhead)
void dg_forthstccomma (Bufferhandle* pBHarrayhead)
void dg_forthsticomma (Bufferhandle* pBHarrayhead)
void dg_forthstdcomma (Bufferhandle* pBHarrayhead)
void dg_forthclccomma (Bufferhandle* pBHarrayhead)
void dg_forthcldcomma (Bufferhandle* pBHarrayhead)
void dg_forthclicomma (Bufferhandle* pBHarrayhead)
void dg_forthlahfcomma (Bufferhandle* pBHarrayhead)
void dg_forthsahfcomma (Bufferhandle* pBHarrayhead)
void dg_forthdaacomma (Bufferhandle* pBHarrayhead)
void dg_forthdascomma (Bufferhandle* pBHarrayhead)
void dg_forthcmccomma (Bufferhandle* pBHarrayhead)
void dg_forthaaacomma (Bufferhandle* pBHarrayhead)
void dg_forthaadcomma (Bufferhandle* pBHarrayhead)
void dg_forthaamcomma (Bufferhandle* pBHarrayhead)
void dg_forthaascomma (Bufferhandle* pBHarrayhead)
void dg_forthcpuidcomma (Bufferhandle* pBHarrayhead)
void dg_forthrepcomma (Bufferhandle* pBHarrayhead)
void dg_forthrepecomma (Bufferhandle* pBHarrayhead)
void dg_forthrepnecomma (Bufferhandle* pBHarrayhead)
void dg_forthlockcomma (Bufferhandle* pBHarrayhead)
void dg_forthmovsbcomma (Bufferhandle* pBHarrayhead)
void dg_forthmovsdcomma (Bufferhandle* pBHarrayhead)
void dg_forthmovswcomma (Bufferhandle* pBHarrayhead)
void dg_forthcmpsbcomma (Bufferhandle* pBHarrayhead)
void dg_forthcmpsdcomma (Bufferhandle* pBHarrayhead)
void dg_forthcmpswcomma (Bufferhandle* pBHarrayhead)
void dg_forthstosbcomma (Bufferhandle* pBHarrayhead)
void dg_forthstosdcomma (Bufferhandle* pBHarrayhead)
void dg_forthstoswcomma (Bufferhandle* pBHarrayhead)
void dg_forthlodsbcomma (Bufferhandle* pBHarrayhead)
void dg_forthlodsdcomma (Bufferhandle* pBHarrayhead)
void dg_forthlodswcomma (Bufferhandle* pBHarrayhead)
void dg_forthscasbcomma (Bufferhandle* pBHarrayhead)
void dg_forthscasdcomma (Bufferhandle* pBHarrayhead)
void dg_forthscaswcomma (Bufferhandle* pBHarrayhead)
void dg_forthint3comma (Bufferhandle* pBHarrayhead)
void dg_forthintocomma (Bufferhandle* pBHarrayhead)
void dg_forthinvdcomma (Bufferhandle* pBHarrayhead)
void dg_forthleavecomma (Bufferhandle* pBHarrayhead)
void dg_forthmonitorcomma (Bufferhandle* pBHarrayhead)
void dg_forthmwaitcomma (Bufferhandle* pBHarrayhead)
void dg_forthpausecomma (Bufferhandle* pBHarrayhead)
void dg_forthpopadcomma (Bufferhandle* pBHarrayhead)
void dg_forthpopfdcomma (Bufferhandle* pBHarrayhead)
void dg_forthpushadcomma (Bufferhandle* pBHarrayhead)
void dg_forthpushfdcomma (Bufferhandle* pBHarrayhead)
void dg_forthsysentercomma (Bufferhandle* pBHarrayhead)
void dg_forthsysexitcomma (Bufferhandle* pBHarrayhead)
void dg_forthiretdcomma (Bufferhandle* pBHarrayhead)
void dg_forthcbwcomma (Bufferhandle* pBHarrayhead)
void dg_forthcdqcomma (Bufferhandle* pBHarrayhead)
void dg_forthcwdcomma (Bufferhandle* pBHarrayhead)
void dg_forthcwdecomma (Bufferhandle* pBHarrayhead)
void dg_forthsfencecomma (Bufferhandle* pBHarrayhead)
void dg_forthintcomma (Bufferhandle* pBHarrayhead)
void dg_forthentercomma (Bufferhandle* pBHarrayhead)
void dg_forthboundcomma (Bufferhandle* pBHarrayhead)
void dg_forthleacomma (Bufferhandle* pBHarrayhead)
void dg_forthbsfcomma (Bufferhandle* pBHarrayhead)
void dg_forthbsrcomma (Bufferhandle* pBHarrayhead)
void dg_forthcmpxchgcomma (Bufferhandle* pBHarrayhead)
void dg_forthxchgcomma (Bufferhandle* pBHarrayhead)
void dg_forthcode (Bufferhandle* pBHarrayhead)
void dg_forthocode (Bufferhandle* pBHarrayhead)
void dg_forthendcode (Bufferhandle* pBHarrayhead)
void dg_forthbegincomma (Bufferhandle* pBHarrayhead)
void dg_forthuntilcomma (Bufferhandle* pBHarrayhead)
void dg_forthloopcomma (Bufferhandle* pBHarrayhead)
void dg_forthloopnzcomma (Bufferhandle* pBHarrayhead)
void dg_forthloopzscomma (Bufferhandle* pBHarrayhead)
void dg_forthloopwhilecomma (Bufferhandle* pBHarrayhead)
void dg_forthnzorloopwhilecomma (Bufferhandle* pBHarrayhead)
void dg_forthzsorloopwhilecomma (Bufferhandle* pBHarrayhead)
void dg_forthifcomma (Bufferhandle* pBHarrayhead)
void dg_forthelsecomma (Bufferhandle* pBHarrayhead)
void dg_forththencomma (Bufferhandle* pBHarrayhead)
void dg_forthwhilecomma (Bufferhandle* pBHarrayhead)
void dg_forthrepeatcomma (Bufferhandle* pBHarrayhead)
void dg_forthzeroimmediate (Bufferhandle* pBHarrayhead)
void dg_forthbracketr (Bufferhandle* pBHarrayhead)
void dg_forthbracketrplusd (Bufferhandle* pBHarrayhead)
void dg_forthbracketd (Bufferhandle* pBHarrayhead)
void dg_forthbracketrpsxrpd (Bufferhandle* pBHarrayhead)
void dg_forthdatasizebyte (Bufferhandle* pBHarrayhead)
void dg_forthdatasizeword (Bufferhandle* pBHarrayhead)
void dg_forthdatasizedword (Bufferhandle* pBHarrayhead)
void dg_forthx86wordlist (Bufferhandle* pBHarrayhead)
void dg_compilebitoprofr (
Bufferhandle* pBHarrayhead,
struct dg_Sibformatter* psourceregtarget,
struct dg_Sibformatter* pdestregtarget,
UINT64 baseopcode)
void dg_compilebitop (
Bufferhandle* pBHarrayhead,
struct dg_Sibformatter* pfirsttarget, // top on stack
struct dg_Sibformatter* psecondtarget, // second on stack
UINT64 rofmbaseopcode,
UINT64 nofmopcodeextension)
void dg_compilebitopnofr (
Bufferhandle* pBHarrayhead,
struct dg_Sibformatter* pfirsttarget, // top on stack
struct dg_Sibformatter* psecondtarget, // second on stack
UINT64 opcodeextension)
void dg_compilebitopnofm (
Bufferhandle* pBHarrayhead,
struct dg_Sibformatter* pfirsttarget, // top on stack
struct dg_Sibformatter* psecondtarget, // second on stack
UINT64 opcodeextension)
void dg_forthbtcomma (Bufferhandle* pBHarrayhead)
void dg_forthbtccomma (Bufferhandle* pBHarrayhead)
void dg_forthbtrcomma (Bufferhandle* pBHarrayhead)
void dg_forthbtscomma (Bufferhandle* pBHarrayhead)
void dg_forthshldcomma (Bufferhandle* pBHarrayhead)
void dg_forthshrdcomma (Bufferhandle* pBHarrayhead)
void dg_forthimulacomma (Bufferhandle* pBHarrayhead)
void dg_forthimulcomma (Bufferhandle* pBHarrayhead)
void dg_forthimulncomma (Bufferhandle* pBHarrayhead)
void dg_forthmovzxcomma (Bufferhandle* pBHarrayhead)
void dg_forthmovsxcomma (Bufferhandle* pBHarrayhead)
void dg_forthcallcomma (Bufferhandle* pBHarrayhead)
void dg_ntoeaxcomma (Bufferhandle* pBHarrayhead)
void dg_forthotormovcomma (Bufferhandle* pBHarrayhead)
void dg_forthbracketotormovcomma (Bufferhandle* pBHarrayhead)
void dg_forthopushcomma (Bufferhandle* pBHarrayhead)
void dg_forthbracketopushcomma (Bufferhandle* pBHarrayhead)
void dg_forthbracketopopcomma (Bufferhandle* pBHarrayhead)
void dg_forthstrtopstrpushcomma (Bufferhandle* pBHarrayhead)
cpux86gcc.cpp
void dg_forthcallprocaddress (Bufferhandle* pBHarrayhead)
void dg_forthcalldfpprocaddress (Bufferhandle* pBHarrayhead)
void dg_forthcallprocaddressretuint128 (Bufferhandle* pBHarrayhead)
// ( paramn paramn-1 paramn-2 ... param1 n procaddress -- returnvaluelo returnvaluehi )
signal catching functions
void dg_catchbadmemoryerror (
int signum,
siginfo_t* pinfo,
void* pcontext)
void dg_trycatchbadmemoryerror ()
void dg_endtrycatchbadmemoryerror ()
void dg_catchbadmemoryerrorwithfullframe (
int signum,
siginfo_t* pinfo,
void* pcontext)
UINT64 dg_fstat (
UINT64 fileid,
UINT64 pstat)
UINT64 dg_write (
UINT64 fileid,
UINT64 pbuf,
UINT64 length)
cpux86macosxgccasm.s functions
cpux86win64msvcasm.s functions
UINT64 dg_testasm (UINT64 i)
const char* dg_testasmimport ()
UINT64 dg_testalignment ()
FLOAT64 dg_testalignmentdf ()
dg_catchbadmemoryexit
// does return (dg_badmemoryerror)
dg_catchbadmemoryexitwithfullframe
// does return(dg_badmemoryerror)
const char* dg_putbyte (
unsigned char* paddr,
unsigned char c)
const char* dg_getbyte (
unsigned char* paddr,
unsigned char* pc)
const char* dg_putuint16 (
UINT64* paddr,
UINT16 u)
const char* dg_getuint16 (
UINT64* paddr,
UINT16* pn)
const char* dg_putuint32 (
UINT64* paddr,
UINT32 u)
const char* dg_getuint32 (
UINT64* paddr,
UINT32* pn)
const char* dg_putuint64 (
UINT64* paddr,
UINT64 u)
const char* dg_getuint64 (
UINT64* paddr,
UINT64* pn)
void* dg_getretstackpointer ()
void* dg_getframepointer ()
void* dg_getplocalvariablestackspacestart ()
void* dg_getplocalvariablestackspaceend ()
UINT64 dg_getlocalvariablestackspacelength ()
void dg_callcoreforthroutine (
Bufferhandle* pBHarrayhead,
UINT64 forthcoreroutineaddress)
void dg_forthregsfrom (Bufferhandle* pBHarrayhead)
// ( -- ebp esp edi esi edx ecx ebx eax eflags )
void dg_forthtoregs (Bufferhandle* pBHarrayhead)
// ( ebp esp edi esi edx ecx ebx eax eflags -- )
UINT64 dg_bswap (UINT64 u)
void dg_udmslashmod (UINT64* pints)
void dg_umslashmod (UINT64* pints)
INT64 dg_twoslash (INT64 n1)
UINT64 dg_lshift (
UINT64 x1,
UINT64 u)
INT64 dg_mstar (
INT64 n1,
INT64 n2)
UINT64 dg_rshift (
UINT64 x1,
UINT64 u)
UINT64 dg_umstar (
UINT64 n1,
UINT64 n2)
const char* dg_scanforbyte (
void* pbuf,
UINT64* plength,
UINT64 value)
const char* dg_scanforuint32 (
void* pbuf,
UINT64* plength,
UINT64 value);
const char* dg_scanforuint64 (
void* pbuf,
UINT64* plength,
UINT64 value);
const char* dg_scanfornotbytereverse (
void* pbuf,
UINT64* plength,
UINT64 value)
const char* dg_movebytes (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength);
const char* dg_movebytesforward (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength);
const char* dg_movebytesreverse (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength);
const char* dg_moveuint64s (
UINT64* psrc,
UINT64* pdest,
UINT64 stringlength);
const char* dg_comparebytes (
unsigned char* pstring1,
UINT64 string1length,
unsigned char* pstring2,
UINT64 string2length,
INT64* pflag);
unsigned char* dg_search (
unsigned char* caddr1, // target string to search
UINT64 u1, // length of target string
unsigned char* caddr2, // string to search for in target string
UINT64 u2, // length of string to search for
unsigned char** pcaddrout) // pointer to found string or pointer to null
void dg_savequitstate (UINT64* pquitstate)
void dg_restorequitstate (UINT64* pquitstate)
UINT64 dg_callprocaddress (
UINT64* pints,
UINT64 n,
UINT64* plength,
UINT64* address)
UINT64 dg_calldfprocaddress (
UINT64* pints,
UINT64 n,
UINT64* plength,
UINT64* address,
UINT64 nfloat)
const char* dg_fillwithbyte (
unsigned char* pbuf,
UINT64 length,
UINT64 cvalue)
const char* dg_readallbytes (
unsigned char* pbuf,
UINT64 length)
UINT64 dg_lobit (UINT64 u)
UINT64 dg_hibit (UINT64 u)
UINT64 dg_touleb128 (
UINT64 u,
UINT64* presult)
UINT64 dg_shrd (
UINT64* pud,
UINT64 shiftcount)
INT64 dg_ashrd (
INT64* pnd,
UINT64 shiftcount)
UINT64 dg_shld (
UINT64* pud,
UINT64 shiftcount)
UINT64 dg_gethctwolength (UINT64* pud)
const char* dg_hctwostore (
unsigned char* pdest,
UINT64* pud)
FLOAT64 dg_tentothex (UINT64 x)
FLOAT64 dg_i64tof64 (INT64 x)
UINT64 dg_timeslog2 (UINT64 x)
INT64 dg_f64toi64 (FLOAT64 f64)
FLOAT64 dg_roundf64tonearesteven (FLOAT64 f64)
FLOAT64 dg_roundf64tonegativeinfinity (FLOAT64 f64)
FLOAT64 dg_f64sqrt (FLOAT64 f64)
FLOAT64 dg_f64cos (FLOAT64 f64)
FLOAT64 dg_f64sin (FLOAT64 f64)
FLOAT64 dg_f64tan (FLOAT64 f64)
FLOAT64 dg_f64sincos (
FLOAT64 f64,
FLOAT64* psinresult)
FLOAT64 dg_f64fyl2x (
FLOAT64 x,
FLOAT64 y)
FLOAT64 dg_f64fyl2xp1 (
FLOAT64 x,
FLOAT64 y)
FLOAT64 dg_f64f2xm1 (FLOAT64 x)
FLOAT64 dg_truncatef64 (FLOAT64 x)
FLOAT64 dg_f64getfractional (FLOAT64 x)
FLOAT64 dg_f64logbase2of10 ()
FLOAT64 dg_f64logbase2ofe ()
FLOAT64 dg_f64fpatan (
FLOAT64 x,
FLOAT64 y)
FLOAT32 dg_f64tof32 (FLOAT64 x)
FLOAT64 dg_f32tof64 (FLOAT32 x)
UINT64 dg_mstarslash (
INT64* pnd1,
INT64 n1,
INT64 n2)
void dg_mplus (UINT64* pints)
UINT64 dg_dplus (UINT64* pints)
UINT64 dg_dminus (UINT64* pints)
UINT64 dg_dulessthan (UINT64* pints)
UINT64 dg_dugreaterequalthan (UINT64* pints)
UINT64 dg_dlessthan (UINT64* pints)
UINT64 dg_dgreaterequalthan (UINT64* pints)
UINT64 dg_dumin (UINT64* pints)
UINT64 dg_dumax (UINT64* pints)
UINT64 dg_dmin (UINT64* pints)
UINT64 dg_dmax (UINT64* pints)
UINT64 dg_dnegate (UINT64* pints)
UINT64 dg_dabs (UINT64* pints)
UINT64 dg_testasmretuint128 (UINT64 u)
UINT64 dg_random ()
const char* dg_addbytes (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength,
UINT64* pcarryout)
const char* dg_adcbytes (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength,
UINT64* pcarryinout)
const char* dg_sbbbytes (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength,
UINT64* pborrowinout)
const char* dg_shlbytes (
unsigned char* pdest,
UINT64 stringlength,
UINT64* pcarryout)
const char* dg_shrbytes (
unsigned char* pdest,
UINT64 stringlength,
UINT64* pcarryout)
const char* dg_sarbytes (
unsigned char* pdest,
UINT64 stringlength,
UINT64* pcarryout)
const char* dg_rclbytes (
unsigned char* pdest,
UINT64 stringlength,
UINT64* pcarryinout)
const char* dg_rcrbytes (
unsigned char* pdest,
UINT64 stringlength,
UINT64* pcarryinout)
const char* dg_notbytesname (
unsigned char* pdest,
UINT64 stringlength)
const char* dg_reversebytesname (
unsigned char* pdest,
UINT64 stringlength)
const char* dg_incbytesname (
unsigned char* pdest,
UINT64 stringlength)
const char* dg_decbytesname (
unsigned char* pdest,
UINT64 stringlength)
const char* dg_andbytesname (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength)
const char* dg_orbytesname (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength)
const char* dg_xorbytesname (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength)
const char* dg_nandbytesname (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength)
const char* dg_norbytesname (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength)
const char* dg_xnorbytesname (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength)
const char* dg_mulu64tou64s (
UINT64* pdest,
UINT64* psrc,
UINT64 u,
UINT64 srcstringlength,
UINT64* pcarryout)
const char* dg_divu64sbyu64 (
UINT64* pdest,
UINT64* premainder,
UINT64 u,
UINT64 destlengthinu64s);
INT64 dg_n8ton64 (
UINT64 x);
INT64 dg_n16ton64 (
UINT64 x);
INT64 dg_n32ton64 (
UINT64 x);
cwordlist.cpp functions
UINT64 dg_newwordlist (Bufferhandle* pBHarrayhead)
UINT64 dg_newword (
Bufferhandle* pBHarrayhead,
UINT64 compilebufid,
UINT64 compilebufoffset,
UINT64 databufid,
UINT64 databufoffset,
UINT64 namebufid,
UINT64 nameoffset,
UINT64 namelength)
UINT64 dg_newwordcopyname (
Bufferhandle* pBHarrayhead,
UINT64 compilebufid,
UINT64 compilebufoffset,
UINT64 databufid,
UINT64 databufoffset,
UINT64 namebufid,
UINT64 nameoffset,
UINT64 namelength)
UINT64 dg_new0stringnamecoreword (
Bufferhandle* pBHarrayhead,
UINT64 compilebufoffset,
UINT64 databufoffset,
unsigned char* pname)
UINT64 dg_new0stringcorenameword (
Bufferhandle* pBHarrayhead,
UINT64 compilebufid,
UINT64 compilebufoffset,
UINT64 databufid,
UINT64 databufoffset,
unsigned char* pname)
Definitionheader* dg_getpdefinition (
Bufferhandle* pBHarrayhead,
UINT64 definitionid)
void dg_linkdefinition (
Bufferhandle* pBHarrayhead,
UINT64 vocabularyid,
UINT64 definitionid)
UINT64 dg_createovariablebufdef (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_createocompilebufdef (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_createsubthreaddef (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_createvariabledef (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_createdconstantdef (
Bufferhandle* pBHarrayhead,
UINT64 databufoffset,
UINT64 databufid,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_createconstantdef (
Bufferhandle* pBHarrayhead,
UINT64 dataid,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_getlatestdefinition (
Bufferhandle* pBHarrayhead,
UINT64 vocabularyid)
UINT64 dg_getnextdefinition (
Bufferhandle* pBHarrayhead,
UINT64 currentdefinition)
void dg_executedefinition (
Bufferhandle* pBHarrayhead,
UINT64 definitionid)
UINT64 dg_finddefinwordlist (
Bufferhandle* pBHarrayhead,
UINT64 vocabularyid,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_finddefinsearchorder (
Bufferhandle* pBHarrayhead,
unsigned char* pname,
UINT64 namelength)
void dg_changelatestcompileroutine (
Bufferhandle* pBHarrayhead,
UINT64 compilebufid,
UINT64 compilebufoffset)
void dg_newpresortedwordlist (
Bufferhandle* pBHarrayhead,
struct Premadeword *pmypresortedwordlist,
UINT64 mypresortedwordlistlength)
UINT64 dg_copyandrenamewordid (
Bufferhandle* pBHarrayhead,
UINT64 definitionid,
unsigned char* pname,
UINT64 namelength)
UINT64 dg_findcopyandrenameword (
unsigned char* poldname,
UINT64 oldnamelength,
unsigned char* pnewname,
UINT64 newnamelength)
void dg_emptywordlist (
Bufferhandle* pBHarrayhead,
UINT64 parentelementid);
UINT64 dg_createbrackettoorderconstantdef (
Bufferhandle* pBHarrayhead,
UINT64 wordlistid,
unsigned char* pname,
UINT64 namelength)
operating system api functions
void dg_initpbharrayhead (Bufferhandle* pBHarrayhead)
UINT64 dg_getpagesize ()
UINT64 dg_getmicrosecondssince1970Jan01 ()
UINT64 dg_gettruesize ()
UINT64 dg_isdelimiter (char c)
UINT64 dg_islineterminator (char c)
unsigned char dg_digittochar (UINT64 d)
UINT64 dg_chartodigit (unsigned char c)
UINT64 dg_chartodigitlowertoo (unsigned char c)
UINT64 dg_pchartonumber (
unsigned char* pnumber,
UINT64 length,
UINT64 base,
UINT64* flag)
INT64 dg_pchartonumberskipperiod (
UINT8* pnumber,
UINT64 length,
UINT64 base,
UINT64* pindex,
UINT64* pdigitsafterperiod)
INT64 dg_pchartobase10numberandexponent (
UINT8* pnumber,
UINT64 length,
INT64* pexponent,
UINT64* pflag)
FLOAT64 dg_u64times10totheu64tof64 (
INT64 number,
INT64 exponent)
FLOAT64 dg_pchartof64 (
UINT8* pnumber,
UINT64 length,
UINT64* pflag)
UINT64 dg_hexdectonumber (
unsigned char* pnumber,
UINT64 length,
UINT64* flag)
const char* dg_malloc (
void** ppbuffer,
UINT64 size,
const char* pforceerror)
const char* dg_realloc (
void** ppbuffer,
UINT64 oldsize,
UINT64 newsize,
const char* pforceerror)
const char* dg_free (
void* pbuffer,
UINT64 size,
const char* forceerrorflag)
const char* dg_readfile (
Bufferhandle* pBHarrayhead,
UINT64 fileid,
unsigned char* pbuf,
UINT64 length,
UINT64 timeout,
UINT64* pnumread,
const char* forceerrorflag)
const char* dg_writefile (
Bufferhandle* pBHarrayhead,
UINT64 fileid,
unsigned char* pbuf,
UINT64 length,
const char* forceerrorflag)
const char* dg_writestdoutraw (
Bufferhandle* pBHarrayhead,
unsigned char* pbuf,
UINT64 length)
const char* dg_closefile (
UINT64 fileid,
const char* forceerrorflag)
const char* dg_getfiletype (
Bufferhandle* pBHarrayhead,
UINT64 fileid,
const char** pfiletype,
const char* forceerrorflag)
const char* dg_gethstdin (
Bufferhandle* pBHarrayhead,
UINT64* pfileid,
const char* forceerrorflag)
const char* dg_gethstdout (
Bufferhandle* pBHarrayhead,
UINT64* pfileid,
const char* forceerrorflag)
const char* dg_gethstderror (
Bufferhandle* pBHarrayhead,
UINT64* pfileid,
const char* forceerrorflag)
const char* dg_getfilelength (
Bufferhandle* pBHarrayhead,
UINT64 fileid,
UINT64* pfilelength, // number ready for non disk files
const char* forceerrorflag)
INT64 dg_getch ()
const char* dg_freelibrary (
UINT64 libraryhandle,
const char* forceerrorflag)
const char* dg_loadlibrary (
const char* libraryname,
UINT64* plibraryhandle,
const char* forceerrorflag)
const char* dg_openfileforread (
const char* filename,
UINT64* pfileid,
const char* forceerrorflag)
const char* dg_openfileforwritenew (
const char* filename,
UINT64* pfileid,
const char* forceerrorflag)
void dg_printzerostring (
Bufferhandle* pBHarrayhead,
unsigned char* addr)
void dg_writestdout (
Bufferhandle* pBHarrayhead,
unsigned char* pbuf,
UINT64 length)
void dg_writefileuint64todec (
Bufferhandle* pBHarrayhead,
UINT64 fileid,
UINT64 i)
void dg_writestdoutuinttodec (
Bufferhandle* pBHarrayhead,
UINT64 i)
void dg_writestdoutuint64tohex (
Bufferhandle* pBHarrayhead,
UINT64 i)
void dg_writestdoutuint8tohex (
Bufferhandle* pBHarrayhead,
unsigned char i)
void dg_hexdumpsegment (
Bufferhandle* pBHarrayhead,
unsigned char* pstring,
UINT64 length)
UINT64 dg_isnegative (UINT64 x) // could call this dg_zeroless
const char* dg_movebytesskipdestination (
unsigned char* psrc,
unsigned char* pdest,
UINT64 stringlength)
UINT64 dg_getsvalue (
unsigned char* pbuf,
UINT64 buflength,
UINT64* pfirstvaluestartoffset,
UINT64* pfirstvaluelength)
const char* dg_getsenvnamevalue (
int argc,
char* argv[],
const char* pnametofind,
UINT64 nametofindlength,
char** ppfoundname,
UINT64* pfoundnamelength,
char** ppfoundvalue,
UINT64* pfoundvaluelength)
UINT64 dg_getuleb128size (UINT64 u)
UINT64 dg_getlengthwithuleb128length (UINT64 currentlength)
const char* dg_getenvironmentvariable (
Bufferhandle* pBHarrayhead,
const char* pvarname,
unsigned char* pbuf,
UINT64 buflength,
UINT64* pvaluelength,
const char* forceerrorflag)
const char* dg_runfileandwait (
Bufferhandle* pBHarrayhead,
unsigned char* pfilename,
char *const argv[],
char *const envp[],
const char* forceerrorflag)
void dg_forthfixpathstring (Bufferhandle* pBHarrayhead)
void dg_forthloadlibrarystringsub (Bufferhandle* pBHarrayhead)
// ( libraryname$ -$- libraryname$ )
// ( -openlibraryhandlestack- libraryhandle )
void dg_forthloadlibrarystring (Bufferhandle* pBHarrayhead)
// ( filename$ -$- )
// ( -- wordlistid )
void dg_forthopenlibrarystring (Bufferhandle* pBHarrayhead)
// ( filename$ -$- )
// ( -- wordlistid libraryhandle )
void dg_forthfindlibrarysymbol (Bufferhandle* pBHarrayhead)
void dg_callbuffer (
Bufferhandle* pBHarrayhead,
UINT64 bufferid,
UINT64 offset)
void dg_makedototobuf (
Bufferhandle* pBHarrayhead,
unsigned char* pcode,
UINT64 codelength,
UINT64 exportsymbollisthlistid,
UINT64 exportsymbollistparentelementid,
UINT64 importsymbollisthlistid,
UINT64 importsymbollistparentelementid,
UINT64 destbuf)
void dg_forthrunfileandwait (Bufferhandle* pBHarrayhead)
dglumain.cpp functions
const char* dg_initbuffers (Bufferhandle* pBHarrayhead)
void dg_inithlists (Bufferhandle* pBHarrayhead)
void dg_initvariables (Bufferhandle* pBHarrayhead)
void dg_cleanup (Bufferhandle* pBHarrayhead)
UINT64 dg_gettruesize ()
Bufferhandle* dg_initwithoutwordlists (
int argc,
char* argv[])
Bufferhandle* dg_init (
int argc,
char* argv[])
voiddg_main (
int argc,
char* argv[])
intmain (
int argc,
char* argv[])