/civetweb-2.7.6/src/third_party/lua-5.2.4/src/ |
D | lapi.c | 55 static TValue *index2addr (lua_State *L, int idx) { in index2addr() argument 57 if (idx > 0) { in index2addr() 58 TValue *o = ci->func + idx; in index2addr() 59 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr() 63 else if (!ispseudo(idx)) { /* negative index */ in index2addr() 64 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr() 65 return L->top + idx; in index2addr() 67 else if (idx == LUA_REGISTRYINDEX) in index2addr() 70 idx = LUA_REGISTRYINDEX - idx; in index2addr() 71 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr() [all …]
|
D | lua.h | 144 LUA_API int (lua_absindex) (lua_State *L, int idx); 146 LUA_API void (lua_settop) (lua_State *L, int idx); 147 LUA_API void (lua_pushvalue) (lua_State *L, int idx); 148 LUA_API void (lua_remove) (lua_State *L, int idx); 149 LUA_API void (lua_insert) (lua_State *L, int idx); 150 LUA_API void (lua_replace) (lua_State *L, int idx); 161 LUA_API int (lua_isnumber) (lua_State *L, int idx); 162 LUA_API int (lua_isstring) (lua_State *L, int idx); 163 LUA_API int (lua_iscfunction) (lua_State *L, int idx); 164 LUA_API int (lua_isuserdata) (lua_State *L, int idx); [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/ |
D | lapi.c | 49 static TValue *index2adr (lua_State *L, int idx) { in index2adr() argument 50 if (idx > 0) { in index2adr() 51 TValue *o = L->base + (idx - 1); in index2adr() 52 api_check(L, idx <= L->ci->top - L->base); in index2adr() 56 else if (idx > LUA_REGISTRYINDEX) { in index2adr() 57 api_check(L, idx != 0 && -idx <= L->top - L->base); in index2adr() 58 return L->top + idx; in index2adr() 60 else switch (idx) { /* pseudo-indices */ in index2adr() 70 idx = LUA_GLOBALSINDEX - idx; in index2adr() 71 return (idx <= func->c.nupvalues) in index2adr() [all …]
|
D | lua.h | 121 LUA_API void (lua_settop) (lua_State *L, int idx); 122 LUA_API void (lua_pushvalue) (lua_State *L, int idx); 123 LUA_API void (lua_remove) (lua_State *L, int idx); 124 LUA_API void (lua_insert) (lua_State *L, int idx); 125 LUA_API void (lua_replace) (lua_State *L, int idx); 135 LUA_API int (lua_isnumber) (lua_State *L, int idx); 136 LUA_API int (lua_isstring) (lua_State *L, int idx); 137 LUA_API int (lua_iscfunction) (lua_State *L, int idx); 138 LUA_API int (lua_isuserdata) (lua_State *L, int idx); 139 LUA_API int (lua_type) (lua_State *L, int idx); [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/ |
D | lapi.c | 60 static TValue *index2addr (lua_State *L, int idx) { in index2addr() argument 62 if (idx > 0) { in index2addr() 63 TValue *o = ci->func + idx; in index2addr() 64 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr() 68 else if (!ispseudo(idx)) { /* negative index */ in index2addr() 69 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr() 70 return L->top + idx; in index2addr() 72 else if (idx == LUA_REGISTRYINDEX) in index2addr() 75 idx = LUA_REGISTRYINDEX - idx; in index2addr() 76 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr() [all …]
|
D | lua.h | 158 LUA_API int (lua_absindex) (lua_State *L, int idx); 160 LUA_API void (lua_settop) (lua_State *L, int idx); 161 LUA_API void (lua_pushvalue) (lua_State *L, int idx); 162 LUA_API void (lua_rotate) (lua_State *L, int idx, int n); 173 LUA_API int (lua_isnumber) (lua_State *L, int idx); 174 LUA_API int (lua_isstring) (lua_State *L, int idx); 175 LUA_API int (lua_iscfunction) (lua_State *L, int idx); 176 LUA_API int (lua_isinteger) (lua_State *L, int idx); 177 LUA_API int (lua_isuserdata) (lua_State *L, int idx); 178 LUA_API int (lua_type) (lua_State *L, int idx); [all …]
|
D | lauxlib.c | 461 static void *resizebox (lua_State *L, int idx, size_t newsize) { in resizebox() argument 464 UBox *box = (UBox *)lua_touserdata(L, idx); in resizebox() 467 resizebox(L, idx, 0); /* free buffer */ in resizebox() 798 LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { in luaL_len() argument 801 lua_len(L, idx); in luaL_len() 810 LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { in luaL_tolstring() argument 811 if (luaL_callmeta(L, idx, "__tostring")) { /* metafield? */ in luaL_tolstring() 816 switch (lua_type(L, idx)) { in luaL_tolstring() 818 if (lua_isinteger(L, idx)) in luaL_tolstring() 819 lua_pushfstring(L, "%I", (LUAI_UACINT)lua_tointeger(L, idx)); in luaL_tolstring() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/ |
D | duk_hthread_stacks.c | 105 duk_size_t idx; in duk_hthread_callstack_unwind() local 129 idx = thr->callstack_top; in duk_hthread_callstack_unwind() 130 while (idx > new_top) { in duk_hthread_callstack_unwind() 140 idx--; in duk_hthread_callstack_unwind() 141 DUK_ASSERT_DISABLE(idx >= 0); /* unsigned */ in duk_hthread_callstack_unwind() 142 DUK_ASSERT((duk_size_t) idx < thr->callstack_size); /* true, despite side effect resizes */ in duk_hthread_callstack_unwind() 144 act = thr->callstack + idx; in duk_hthread_callstack_unwind() 185 act = thr->callstack + idx; /* avoid side effects */ in duk_hthread_callstack_unwind() 198 heap->dbg_step_csindex == idx) { in duk_hthread_callstack_unwind() 229 act = thr->callstack + idx; /* avoid side effect issues */ in duk_hthread_callstack_unwind() [all …]
|
D | duk_api_internal.h | 179 * Both 'ctx' and 'idx' are evaluted multiple times, but only for asserts. 181 #define DUK_ASSERT_VALID_NEGIDX(ctx,idx) \ argument 182 (DUK_ASSERT_EXPR((idx) < 0), DUK_ASSERT_EXPR(duk_is_valid_index((ctx), (idx)))) 183 #define DUK_ASSERT_VALID_POSIDX(ctx,idx) \ argument 184 (DUK_ASSERT_EXPR((idx) >= 0), DUK_ASSERT_EXPR(duk_is_valid_index((ctx), (idx)))) 185 #define DUK_GET_TVAL_NEGIDX(ctx,idx) \ argument 186 (DUK_ASSERT_VALID_NEGIDX((ctx),(idx)), ((duk_hthread *) (ctx))->valstack_top + (idx)) 187 #define DUK_GET_TVAL_POSIDX(ctx,idx) \ argument 188 (DUK_ASSERT_VALID_POSIDX((ctx),(idx)), ((duk_hthread *) (ctx))->valstack_bottom + (idx)) 189 #define DUK_GET_HOBJECT_NEGIDX(ctx,idx) \ argument [all …]
|
D | duk_regexp_executor.c | 433 duk_uint32_t idx; in duk__match_regexp() local 437 idx = duk__bc_get_u32(re_ctx, &pc); in duk__match_regexp() 438 if (idx >= re_ctx->nsaved) { in duk__match_regexp() 439 /* idx is unsigned, < 0 check is not necessary */ in duk__match_regexp() 440 DUK_D(DUK_DPRINT("internal error, regexp save index insane: idx=%ld", (long) idx)); in duk__match_regexp() 443 old = re_ctx->saved[idx]; in duk__match_regexp() 444 re_ctx->saved[idx] = sp; in duk__match_regexp() 450 re_ctx->saved[idx] = old; in duk__match_regexp() 464 duk_uint32_t idx_end, idx; in duk__match_regexp() local 476 /* idx is unsigned, < 0 check is not necessary */ in duk__match_regexp() [all …]
|
D | duk_api_debug.c | 8 duk_idx_t idx; in duk_push_context_dump() local 19 for (idx = 0; idx < top; idx++) { in duk_push_context_dump() 20 duk_dup(ctx, idx); in duk_push_context_dump() 21 duk_put_prop_index(ctx, -2, idx); in duk_push_context_dump() 148 duk_idx_t idx; in duk_debugger_notify() local 165 for (idx = top - nvalues; idx < top; idx++) { in duk_debugger_notify() 166 duk_tval *tv = DUK_GET_TVAL_POSIDX(ctx, idx); in duk_debugger_notify()
|
D | duk_bi_array.c | 177 duk_uarridx_t idx, idx_last; in duk_bi_array_prototype_concat() local 198 idx = 0; in duk_bi_array_prototype_concat() 208 duk_xdef_prop_index_wec(ctx, -2, idx++); in duk_bi_array_prototype_concat() 209 idx_last = idx; in duk_bi_array_prototype_concat() 222 duk_xdef_prop_index_wec(ctx, -3, idx++); in duk_bi_array_prototype_concat() 223 idx_last = idx; in duk_bi_array_prototype_concat() 225 idx++; in duk_bi_array_prototype_concat() 232 idx_last = idx; in duk_bi_array_prototype_concat() 269 duk_uint32_t idx; in duk_bi_array_prototype_join_shared() local 304 idx = 0; in duk_bi_array_prototype_join_shared() [all …]
|
D | duk_hobject_enum.c | 493 duk_uint_fast32_t idx; in duk_hobject_enumerator_next() local 504 idx = (duk_uint_fast32_t) duk_require_uint(ctx, -1); in duk_hobject_enumerator_next() 506 DUK_DDD(DUK_DDDPRINT("enumeration: index is: %ld", (long) idx)); in duk_hobject_enumerator_next() 530 if (idx >= DUK_HOBJECT_GET_ENEXT(e)) { in duk_hobject_enumerator_next() 536 k = DUK_HOBJECT_E_GET_KEY(thr->heap, e, idx); in duk_hobject_enumerator_next() 538 DUK_ASSERT(!DUK_HOBJECT_E_SLOT_IS_ACCESSOR(thr->heap, e, idx)); in duk_hobject_enumerator_next() 539 DUK_ASSERT(!DUK_TVAL_IS_UNUSED(&DUK_HOBJECT_E_GET_VALUE(thr->heap, e, idx).v)); in duk_hobject_enumerator_next() 541 idx++; in duk_hobject_enumerator_next() 554 DUK_DDD(DUK_DDDPRINT("enumeration: updating next index to %ld", (long) idx)); in duk_hobject_enumerator_next() 556 duk_push_u32(ctx, (duk_uint32_t) idx); in duk_hobject_enumerator_next() [all …]
|
D | duk_js_executor.c | 2248 DUK_DD(DUK_DDPRINT("restarting execution, thr %p, act idx %ld, fun %p," 2458 duk_uint_fast_t idx; local 2470 idx = (duk_uint_fast_t) DUK_DEC_B(ins); 2472 duk_tval *tv_ind = DUK__REGP(idx); 2474 idx = (duk_uint_fast_t) DUK_TVAL_GET_NUMBER(tv_ind); 2480 if (DUK_UNLIKELY(idx + count * 2 > (duk_uint_fast_t) duk_get_top(ctx))) { 2492 duk_push_tval(ctx, DUK__REGP(idx)); 2494 duk_push_tval(ctx, DUK__REGP(idx + 1)); /* -> [... obj key value] */ 2498 idx += 2; 2511 duk_uint_fast_t idx; local [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/ |
D | duk_hthread_stacks.c | 105 duk_size_t idx; in duk_hthread_callstack_unwind() local 129 idx = thr->callstack_top; in duk_hthread_callstack_unwind() 130 while (idx > new_top) { in duk_hthread_callstack_unwind() 140 idx--; in duk_hthread_callstack_unwind() 141 DUK_ASSERT_DISABLE(idx >= 0); /* unsigned */ in duk_hthread_callstack_unwind() 142 DUK_ASSERT((duk_size_t) idx < thr->callstack_size); /* true, despite side effect resizes */ in duk_hthread_callstack_unwind() 144 act = thr->callstack + idx; in duk_hthread_callstack_unwind() 185 act = thr->callstack + idx; /* avoid side effects */ in duk_hthread_callstack_unwind() 198 heap->dbg_step_csindex == idx) { in duk_hthread_callstack_unwind() 229 act = thr->callstack + idx; /* avoid side effect issues */ in duk_hthread_callstack_unwind() [all …]
|
D | duk_api_internal.h | 179 * Both 'ctx' and 'idx' are evaluted multiple times, but only for asserts. 181 #define DUK_ASSERT_VALID_NEGIDX(ctx,idx) \ argument 182 (DUK_ASSERT_EXPR((idx) < 0), DUK_ASSERT_EXPR(duk_is_valid_index((ctx), (idx)))) 183 #define DUK_ASSERT_VALID_POSIDX(ctx,idx) \ argument 184 (DUK_ASSERT_EXPR((idx) >= 0), DUK_ASSERT_EXPR(duk_is_valid_index((ctx), (idx)))) 185 #define DUK_GET_TVAL_NEGIDX(ctx,idx) \ argument 186 (DUK_ASSERT_VALID_NEGIDX((ctx),(idx)), ((duk_hthread *) (ctx))->valstack_top + (idx)) 187 #define DUK_GET_TVAL_POSIDX(ctx,idx) \ argument 188 (DUK_ASSERT_VALID_POSIDX((ctx),(idx)), ((duk_hthread *) (ctx))->valstack_bottom + (idx)) 189 #define DUK_GET_HOBJECT_NEGIDX(ctx,idx) \ argument [all …]
|
D | duk_regexp_executor.c | 433 duk_uint32_t idx; in duk__match_regexp() local 437 idx = duk__bc_get_u32(re_ctx, &pc); in duk__match_regexp() 438 if (idx >= re_ctx->nsaved) { in duk__match_regexp() 439 /* idx is unsigned, < 0 check is not necessary */ in duk__match_regexp() 440 DUK_D(DUK_DPRINT("internal error, regexp save index insane: idx=%ld", (long) idx)); in duk__match_regexp() 443 old = re_ctx->saved[idx]; in duk__match_regexp() 444 re_ctx->saved[idx] = sp; in duk__match_regexp() 450 re_ctx->saved[idx] = old; in duk__match_regexp() 464 duk_uint32_t idx_end, idx; in duk__match_regexp() local 476 /* idx is unsigned, < 0 check is not necessary */ in duk__match_regexp() [all …]
|
D | duk_api_debug.c | 8 duk_idx_t idx; in duk_push_context_dump() local 19 for (idx = 0; idx < top; idx++) { in duk_push_context_dump() 20 duk_dup(ctx, idx); in duk_push_context_dump() 21 duk_put_prop_index(ctx, -2, idx); in duk_push_context_dump() 148 duk_idx_t idx; in duk_debugger_notify() local 165 for (idx = top - nvalues; idx < top; idx++) { in duk_debugger_notify() 166 duk_tval *tv = DUK_GET_TVAL_POSIDX(ctx, idx); in duk_debugger_notify()
|
D | duk_bi_array.c | 177 duk_uarridx_t idx, idx_last; in duk_bi_array_prototype_concat() local 198 idx = 0; in duk_bi_array_prototype_concat() 208 duk_xdef_prop_index_wec(ctx, -2, idx++); in duk_bi_array_prototype_concat() 209 idx_last = idx; in duk_bi_array_prototype_concat() 222 duk_xdef_prop_index_wec(ctx, -3, idx++); in duk_bi_array_prototype_concat() 223 idx_last = idx; in duk_bi_array_prototype_concat() 225 idx++; in duk_bi_array_prototype_concat() 232 idx_last = idx; in duk_bi_array_prototype_concat() 269 duk_uint32_t idx; in duk_bi_array_prototype_join_shared() local 304 idx = 0; in duk_bi_array_prototype_join_shared() [all …]
|
D | duk_hobject_enum.c | 493 duk_uint_fast32_t idx; in duk_hobject_enumerator_next() local 504 idx = (duk_uint_fast32_t) duk_require_uint(ctx, -1); in duk_hobject_enumerator_next() 506 DUK_DDD(DUK_DDDPRINT("enumeration: index is: %ld", (long) idx)); in duk_hobject_enumerator_next() 530 if (idx >= DUK_HOBJECT_GET_ENEXT(e)) { in duk_hobject_enumerator_next() 536 k = DUK_HOBJECT_E_GET_KEY(thr->heap, e, idx); in duk_hobject_enumerator_next() 538 DUK_ASSERT(!DUK_HOBJECT_E_SLOT_IS_ACCESSOR(thr->heap, e, idx)); in duk_hobject_enumerator_next() 539 DUK_ASSERT(!DUK_TVAL_IS_UNUSED(&DUK_HOBJECT_E_GET_VALUE(thr->heap, e, idx).v)); in duk_hobject_enumerator_next() 541 idx++; in duk_hobject_enumerator_next() 554 DUK_DDD(DUK_DDDPRINT("enumeration: updating next index to %ld", (long) idx)); in duk_hobject_enumerator_next() 556 duk_push_u32(ctx, (duk_uint32_t) idx); in duk_hobject_enumerator_next() [all …]
|
D | duk_js_executor.c | 2248 DUK_DD(DUK_DDPRINT("restarting execution, thr %p, act idx %ld, fun %p," 2458 duk_uint_fast_t idx; local 2470 idx = (duk_uint_fast_t) DUK_DEC_B(ins); 2472 duk_tval *tv_ind = DUK__REGP(idx); 2474 idx = (duk_uint_fast_t) DUK_TVAL_GET_NUMBER(tv_ind); 2480 if (DUK_UNLIKELY(idx + count * 2 > (duk_uint_fast_t) duk_get_top(ctx))) { 2492 duk_push_tval(ctx, DUK__REGP(idx)); 2494 duk_push_tval(ctx, DUK__REGP(idx + 1)); /* -> [... obj key value] */ 2498 idx += 2; 2511 duk_uint_fast_t idx; local [all …]
|
/civetweb-2.7.6/ |
D | .travis.yml | 178 idx=1 212 idx=2 247 idx=3 281 idx=4 315 idx=5 341 idx=6 366 idx=7 392 idx=8 431 idx=9 459 idx=10 [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/guide/ |
D | processlines.c | 10 char idx; in main() local 26 idx = 0; in main() 28 if (idx >= sizeof(line)) { in main() 35 line[idx++] = '\0'; in main() 47 idx = 0; in main() 51 line[idx++] = (char) ch; in main()
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/guide/ |
D | processlines.c | 10 char idx; in main() local 26 idx = 0; in main() 28 if (idx >= sizeof(line)) { in main() 35 line[idx++] = '\0'; in main() 47 idx = 0; in main() 51 line[idx++] = (char) ch; in main()
|
/civetweb-2.7.6/test/ |
D | websocket.xhtml | 22 function queryStringElem(name, idx) { 31 var idx = queryStringElem_Table[keyValuePair[0]].length+1; 32 queryStringElem_Table[keyValuePair[0]][idx] = keyValuePair[1] || ''; 36 idx = idx || 1; 38 return queryStringElem_Table[name][idx];
|