/civetweb-2.7.6/src/third_party/lua-5.1.5/src/ |
D | lgc.c | 34 #define makewhite(g,x) \ argument 35 ((x)->gch.marked = cast_byte(((x)->gch.marked & maskmarks) | luaC_white(g))) 52 #define markvalue(g,o) { checkconsistency(o); \ argument 53 if (iscollectable(o) && iswhite(gcvalue(o))) reallymarkobject(g,gcvalue(o)); } 55 #define markobject(g,t) { if (iswhite(obj2gco(t))) \ argument 56 reallymarkobject(g, obj2gco(t)); } 59 #define setthreshold(g) (g->GCthreshold = (g->estimate/100) * g->gcpause) argument 69 static void reallymarkobject (global_State *g, GCObject *o) { in reallymarkobject() argument 70 lua_assert(iswhite(o) && !isdead(g, o)); in reallymarkobject() 79 if (mt) markobject(g, mt); in reallymarkobject() [all …]
|
D | lstate.c | 37 global_State g; member 71 global_State *g = G(L); in f_luaopen() local 80 g->GCthreshold = 4*g->totalbytes; in f_luaopen() 84 static void preinit_state (lua_State *L, global_State *g) { in preinit_state() argument 85 G(L) = g; in preinit_state() 106 global_State *g = G(L); in close_state() local 109 lua_assert(g->rootgc == obj2gco(L)); in close_state() 110 lua_assert(g->strt.nuse == 0); in close_state() 111 luaM_freearray(L, G(L)->strt.hash, G(L)->strt.size, TString *); in close_state() 112 luaZ_freebuffer(L, &g->buff); in close_state() [all …]
|
D | lapi.c | 115 api_check(from, G(from) == G(to)); in lua_xmove() 133 old = G(L)->panic; in lua_atpanic() 134 G(L)->panic = panicf; in lua_atpanic() 524 return (G(L)->mainthread == L); in lua_pushthread() 601 mt = G(L)->mt[ttype(obj)]; in lua_getmetatable() 724 G(L)->mt[ttype(obj)] = mt; in lua_setmetatable() 901 global_State *g; in lua_gc() local 903 g = G(L); in lua_gc() 906 g->GCthreshold = MAX_LUMEM; in lua_gc() 910 g->GCthreshold = g->totalbytes; in lua_gc() [all …]
|
D | lstring.c | 26 if (G(L)->gcstate == GCSsweepstring) in luaS_resize() 29 tb = &G(L)->strt; in luaS_resize() 59 ts->tsv.marked = luaC_white(G(L)); in newlstr() 64 tb = &G(L)->strt; in newlstr() 82 for (o = G(L)->strt.hash[lmod(h, G(L)->strt.size)]; in luaS_newlstr() 88 if (isdead(G(L), o)) changewhite(o); in luaS_newlstr() 101 u->uv.marked = luaC_white(G(L)); /* is not finalized */ in luaS_newudata() 107 u->uv.next = G(L)->mainthread->next; in luaS_newudata() 108 G(L)->mainthread->next = obj2gco(u); in luaS_newudata()
|
D | lfunc.c | 54 global_State *g = G(L); in luaF_findupval() local 61 if (isdead(g, obj2gco(p))) /* is it dead? */ in luaF_findupval() 69 uv->marked = luaC_white(g); in luaF_findupval() 73 uv->u.l.prev = &g->uvhead; /* double link it in `uvhead' list */ in luaF_findupval() 74 uv->u.l.next = g->uvhead.u.l.next; in luaF_findupval() 76 g->uvhead.u.l.next = uv; in luaF_findupval() 98 global_State *g = G(L); in luaF_close() local 103 if (isdead(g, o)) in luaF_close()
|
D | lgc.h | 69 #define otherwhite(g) (g->currentwhite ^ WHITEBITS) argument 70 #define isdead(g,v) ((v)->gch.marked & otherwhite(g) & WHITEBITS) argument 77 #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) argument 82 if (G(L)->totalbytes >= G(L)->GCthreshold) \
|
D | lmem.c | 77 global_State *g = G(L); in luaM_realloc_() local 79 block = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_() 83 g->totalbytes = (g->totalbytes - osize) + nsize; in luaM_realloc_()
|
D | lobject.h | 111 #define checkliveness(g,obj) \ argument 113 ((ttype(obj) == (obj)->value.gc->gch.tt) && !isdead(g, (obj)->value.gc))) 131 checkliveness(G(L),i_o); } 136 checkliveness(G(L),i_o); } 141 checkliveness(G(L),i_o); } 146 checkliveness(G(L),i_o); } 151 checkliveness(G(L),i_o); } 156 checkliveness(G(L),i_o); } 164 checkliveness(G(L),o1); }
|
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/ |
D | lgc.c | 59 #define makewhite(g,x) \ argument 60 (gch(x)->marked = cast_byte((gch(x)->marked & maskcolors) | luaC_white(g))) 75 #define markvalue(g,o) { checkconsistency(o); \ argument 76 if (valiswhite(o)) reallymarkobject(g,gcvalue(o)); } 78 #define markobject(g,t) { if ((t) && iswhite(obj2gco(t))) \ argument 79 reallymarkobject(g, obj2gco(t)); } 81 static void reallymarkobject (global_State *g, GCObject *o); 121 static int iscleared (global_State *g, const TValue *o) { in iscleared() argument 124 markobject(g, rawtsvalue(o)); /* strings are `values', so are never weak */ in iscleared() 136 global_State *g = G(L); in luaC_barrier_() local [all …]
|
D | lstate.c | 72 global_State g; member 106 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() argument 107 g->totalbytes -= (debt - g->GCdebt); in luaE_setdebt() 108 g->GCdebt = debt; in luaE_setdebt() 165 static void init_registry (lua_State *L, global_State *g) { in init_registry() argument 169 sethvalue(L, &g->l_registry, registry); in init_registry() 184 global_State *g = G(L); in f_luaopen() local 187 init_registry(L, g); in f_luaopen() 192 g->memerrmsg = luaS_newliteral(L, MEMERRMSG); in f_luaopen() 193 luaS_fix(g->memerrmsg); /* it should never be collected */ in f_luaopen() [all …]
|
D | lgc.h | 24 ** is not being enforced (e.g., sweep phase). 47 #define issweepphase(g) \ argument 48 (GCSsweepstring <= (g)->gcstate && (g)->gcstate <= GCSsweep) 50 #define isgenerational(g) ((g)->gckind == KGC_GEN) argument 61 #define keepinvariant(g) (isgenerational(g) || g->gcstate <= GCSatomic) argument 68 #define keepinvariantout(g) \ argument 69 check_exp(g->gcstate == GCSpropagate || !isgenerational(g), \ 70 g->gcstate <= GCSatomic) 110 #define otherwhite(g) (g->currentwhite ^ WHITEBITS) argument 112 #define isdead(g,v) isdeadm(otherwhite(g), (v)->gch.marked) argument [all …]
|
D | lapi.c | 68 return &G(L)->l_registry; in index2addr() 117 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove() 130 old = G(L)->panic; in lua_atpanic() 131 G(L)->panic = panicf; in lua_atpanic() 140 else return G(L)->version; in lua_version() 598 return (G(L)->mainthread == L); in lua_pushthread() 609 Table *reg = hvalue(&G(L)->l_registry); in lua_getglobal() 700 mt = G(L)->mt[ttypenv(obj)]; in lua_getmetatable() 735 Table *reg = hvalue(&G(L)->l_registry); in lua_setglobal() 842 G(L)->mt[ttypenv(obj)] = mt; in lua_setmetatable() [all …]
|
D | lmem.c | 77 global_State *g = G(L); in luaM_realloc_() local 81 if (nsize > realosize && g->gcrunning) in luaM_realloc_() 84 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_() 88 if (g->gcrunning) { in luaM_realloc_() 90 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_() 96 g->GCdebt = (g->GCdebt + nsize) - realosize; in luaM_realloc_()
|
D | lfunc.c | 48 global_State *g = G(L); in luaF_findupval() local 57 if (isdead(g, o)) /* is it dead? */ in luaF_findupval() 66 uv->u.l.prev = &g->uvhead; /* double link it in `uvhead' list */ in luaF_findupval() 67 uv->u.l.next = g->uvhead.u.l.next; in luaF_findupval() 69 g->uvhead.u.l.next = uv; in luaF_findupval() 91 global_State *g = G(L); in luaF_close() local 96 if (isdead(g, o)) in luaF_close() 102 gch(o)->next = g->allgc; /* link upvalue into 'allgc' list */ in luaF_close() 103 g->allgc = o; in luaF_close() 104 luaC_checkupvalcolor(g, uv); in luaF_close()
|
D | lstate.h | 22 ** Lua keeps most objects linked in list g->allgc. The link uses field 25 ** Strings are kept in several lists headed by the array g->strt.hash. 29 ** double-linked list with all open upvalues (g->uvhead) so that it can 35 ** Objects with finalizers are kept in the list g->finobj. 37 ** The list g->tobefnz links all objects being finalized. 179 #define G(L) (L->l_G) macro 219 #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt) argument 221 LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
|
D | lstring.c | 66 stringtable *tb = &G(L)->strt; in luaS_resize() 119 stringtable *tb = &G(L)->strt; in newshrstr() 135 global_State *g = G(L); in internshrstr() local 136 unsigned int h = luaS_hash(str, l, g->seed); in internshrstr() 137 for (o = g->strt.hash[lmod(h, g->strt.size)]; in internshrstr() 144 if (isdead(G(L), o)) /* string is dead (but was not collected yet)? */ in internshrstr() 162 return createstrobj(L, str, l, LUA_TLNGSTR, G(L)->seed, NULL); in luaS_newlstr()
|
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/ |
D | lgc.c | 67 #define makewhite(g,x) \ argument 68 (x->marked = cast_byte((x->marked & maskcolors) | luaC_white(g))) 83 #define markvalue(g,o) { checkconsistency(o); \ argument 84 if (valiswhite(o)) reallymarkobject(g,gcvalue(o)); } 86 #define markobject(g,t) { if (iswhite(t)) reallymarkobject(g, obj2gco(t)); } argument 92 #define markobjectN(g,t) { if (t) markobject(g,t); } argument 94 static void reallymarkobject (global_State *g, GCObject *o); 139 static int iscleared (global_State *g, const TValue *o) { in iscleared() argument 142 markobject(g, tsvalue(o)); /* strings are 'values', so are never weak */ in iscleared() 156 global_State *g = G(L); in luaC_barrier_() local [all …]
|
D | lstate.c | 65 global_State g; member 98 void luaE_setdebt (global_State *g, l_mem debt) { in luaE_setdebt() argument 99 l_mem tb = gettotalbytes(g); in luaE_setdebt() 103 g->totalbytes = tb - debt; in luaE_setdebt() 104 g->GCdebt = debt; in luaE_setdebt() 184 static void init_registry (lua_State *L, global_State *g) { in init_registry() argument 188 sethvalue(L, &g->l_registry, registry); in init_registry() 201 ** ('g->version' != NULL flags that the state was completely build) 204 global_State *g = G(L); in f_luaopen() local 207 init_registry(L, g); in f_luaopen() [all …]
|
D | lstring.c | 73 stringtable *tb = &G(L)->strt; in luaS_resize() 103 void luaS_clearcache (global_State *g) { in luaS_clearcache() argument 107 if (iswhite(g->strcache[i][j])) /* will entry be collected? */ in luaS_clearcache() 108 g->strcache[i][j] = g->memerrmsg; /* replace it with something fixed */ in luaS_clearcache() 117 global_State *g = G(L); in luaS_init() local 121 g->memerrmsg = luaS_newliteral(L, MEMERRMSG); in luaS_init() 122 luaC_fix(L, obj2gco(g->memerrmsg)); /* it should never be collected */ in luaS_init() 125 g->strcache[i][j] = g->memerrmsg; in luaS_init() 148 TString *ts = createstrobj(L, l, LUA_TLNGSTR, G(L)->seed); in luaS_createlngstrobj() 155 stringtable *tb = &G(L)->strt; in luaS_remove() [all …]
|
D | lgc.h | 24 ** is not being enforced (e.g., sweep phase). 49 #define issweepphase(g) \ argument 50 (GCSswpallgc <= (g)->gcstate && (g)->gcstate <= GCSswpend) 61 #define keepinvariant(g) ((g)->gcstate <= GCSatomic) argument 94 #define otherwhite(g) ((g)->currentwhite ^ WHITEBITS) argument 96 #define isdead(g,v) isdeadm(otherwhite(g), (v)->marked) argument 101 #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) argument 111 { if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \
|
D | lapi.c | 73 return &G(L)->l_registry; in index2addr() 123 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove() 137 old = G(L)->panic; in lua_atpanic() 138 G(L)->panic = panicf; in lua_atpanic() 147 else return G(L)->version; in lua_version() 578 return (G(L)->mainthread == L); in lua_pushthread() 606 Table *reg = hvalue(&G(L)->l_registry); in lua_getglobal() 711 mt = G(L)->mt[ttnov(obj)]; in lua_getmetatable() 760 Table *reg = hvalue(&G(L)->l_registry); in lua_setglobal() 876 G(L)->mt[ttnov(obj)] = mt; in lua_setmetatable() [all …]
|
D | lmem.c | 79 global_State *g = G(L); in luaM_realloc_() local 83 if (nsize > realosize && g->gcrunning) in luaM_realloc_() 86 newblock = (*g->frealloc)(g->ud, block, osize, nsize); in luaM_realloc_() 89 if (g->version) { /* is state fully built? */ in luaM_realloc_() 91 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ in luaM_realloc_() 97 g->GCdebt = (g->GCdebt + nsize) - realosize; in luaM_realloc_()
|
/civetweb-2.7.6/examples/_obsolete/docroot/ |
D | jquery.js | 18 …}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g, 21 Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=… 28 …|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/… 37 …",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expa… variable 38 …G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G… 41 …rQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|sr… 48 …=null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, 52 …}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(… 56 fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.prop… 59 a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefa… [all …]
|
/civetweb-2.7.6/test/ajax/ |
D | jquery.js | 2 …g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function e(t){return nu… function
|
/civetweb-2.7.6/src/third_party/lua-5.1.5/test/ |
D | readonly.lua | 4 local g={} 5 local G=getfenv() 6 setmetatable(g,{__index=G,__newindex=f}) 7 setfenv(1,g) 10 rawset(g,"x",3)
|