/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/debug-trans-dvalue/ |
D | duk_trans_dvalue.c | 201 unsigned char *p; in duk_dvalue_make_tag_data() local 208 p = (unsigned char *) malloc(len + 1); in duk_dvalue_make_tag_data() 209 if (!p) { in duk_dvalue_make_tag_data() 213 memcpy((void *) p, (const void *) buf, len); in duk_dvalue_make_tag_data() 214 p[len] = (unsigned char) 0; in duk_dvalue_make_tag_data() 216 dv->buf = p; in duk_dvalue_make_tag_data() 232 static void duk__trans_dvalue_double_byteswap(duk_trans_dvalue_ctx *ctx, volatile unsigned char *p)… in duk__trans_dvalue_double_byteswap() argument 241 t = p[0]; p[0] = p[7]; p[7] = t; in duk__trans_dvalue_double_byteswap() 242 t = p[1]; p[1] = p[6]; p[6] = t; in duk__trans_dvalue_double_byteswap() 243 t = p[2]; p[2] = p[5]; p[5] = t; in duk__trans_dvalue_double_byteswap() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/debug-trans-dvalue/ |
D | duk_trans_dvalue.c | 201 unsigned char *p; in duk_dvalue_make_tag_data() local 208 p = (unsigned char *) malloc(len + 1); in duk_dvalue_make_tag_data() 209 if (!p) { in duk_dvalue_make_tag_data() 213 memcpy((void *) p, (const void *) buf, len); in duk_dvalue_make_tag_data() 214 p[len] = (unsigned char) 0; in duk_dvalue_make_tag_data() 216 dv->buf = p; in duk_dvalue_make_tag_data() 232 static void duk__trans_dvalue_double_byteswap(duk_trans_dvalue_ctx *ctx, volatile unsigned char *p)… in duk__trans_dvalue_double_byteswap() argument 241 t = p[0]; p[0] = p[7]; p[7] = t; in duk__trans_dvalue_double_byteswap() 242 t = p[1]; p[1] = p[6]; p[6] = t; in duk__trans_dvalue_double_byteswap() 243 t = p[2]; p[2] = p[5]; p[5] = t; in duk__trans_dvalue_double_byteswap() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/ |
D | duk_api_bytecode.c | 27 DUK_LOCAL duk_uint8_t *duk__load_string_raw(duk_context *ctx, duk_uint8_t *p) { in duk__load_string_raw() argument 30 len = DUK_RAW_READ_U32_BE(p); in duk__load_string_raw() 31 duk_push_lstring(ctx, (const char *) p, len); in duk__load_string_raw() 32 p += len; in duk__load_string_raw() 33 return p; in duk__load_string_raw() 36 DUK_LOCAL duk_uint8_t *duk__load_buffer_raw(duk_context *ctx, duk_uint8_t *p) { in duk__load_buffer_raw() argument 40 len = DUK_RAW_READ_U32_BE(p); in duk__load_buffer_raw() 43 DUK_MEMCPY((void *) buf, (const void *) p, (size_t) len); in duk__load_buffer_raw() 44 p += len; in duk__load_buffer_raw() 45 return p; in duk__load_buffer_raw() [all …]
|
D | duk_util.h | 118 duk_uint8_t *p; member 142 (duk_size_t) ((bw_ctx)->p - (bw_ctx)->p_base)); \ 153 ((bw_ctx)->p != NULL && \ 157 (bw_ctx)->p >= (bw_ctx)->p_base && \ 158 (bw_ctx)->p <= (bw_ctx)->p_limit))) 166 ((bw_ctx)->p) 168 (bw_ctx)->p = (ptr); \ 171 (bw_ctx)->p += (delta); \ 178 ((duk_size_t) ((bw_ctx)->p - (bw_ctx)->p_base)) 180 DUK_ASSERT((duk_size_t) (sz) <= (duk_size_t) ((bw_ctx)->p - (bw_ctx)->p_base)); \ [all …]
|
D | duk_util_bufwriter.c | 12 duk_uint8_t *p; in duk__bw_update_ptrs() local 18 p = (duk_uint8_t *) DUK_HBUFFER_DYNAMIC_GET_DATA_PTR(thr->heap, bw_ctx->buf); in duk__bw_update_ptrs() 19 …DUK_ASSERT(p != NULL || (DUK_HBUFFER_DYNAMIC_GET_SIZE(bw_ctx->buf) == 0 && curr_offset == 0 && new… in duk__bw_update_ptrs() 20 bw_ctx->p = p + curr_offset; in duk__bw_update_ptrs() 21 bw_ctx->p_base = p; in duk__bw_update_ptrs() 22 bw_ctx->p_limit = p + new_length; in duk__bw_update_ptrs() 63 curr_off = (duk_size_t) (bw_ctx->p - bw_ctx->p_base); in duk_bw_resize() 85 return bw_ctx->p; in duk_bw_resize() 96 len = (duk_size_t) (bw_ctx->p - bw_ctx->p_base); in duk_bw_compact() 112 DUK_MEMCPY((void *) bw->p, in duk_bw_write_raw_slice() [all …]
|
D | duk_bi_json.c | 55 DUK_LOCAL_DECL void duk__emit_cstring(duk_json_enc_ctx *js_ctx, const char *p); 207 (long) (js_ctx->p - js_ctx->p_start)); in duk__dec_syntax_error() 211 const duk_uint8_t *p; in duk__dec_eat_white() local 214 p = js_ctx->p; in duk__dec_eat_white() 216 DUK_ASSERT(p <= js_ctx->p_end); in duk__dec_eat_white() 217 t = *p; in duk__dec_eat_white() 235 p++; in duk__dec_eat_white() 237 js_ctx->p = p; in duk__dec_eat_white() 241 DUK_ASSERT(js_ctx->p <= js_ctx->p_end); in duk__dec_peek() 242 return *js_ctx->p; in duk__dec_peek() [all …]
|
D | duk_api_string.c | 128 const duk_uint8_t *p, *p_start, *p_end; in duk_decode_string() local 138 p = p_start; in duk_decode_string() 141 if (p >= p_end) { in duk_decode_string() 144 cp = (int) duk_unicode_decode_xutf8_checked(thr, &p, p_start, p_end); in duk_decode_string() 154 const duk_uint8_t *p, *p_start, *p_end; in duk_map_string() local 169 p = p_start; in duk_map_string() 176 if (p >= p_end) { in duk_map_string() 179 cp = (int) duk_unicode_decode_xutf8_checked(thr, &p, p_start, p_end); in duk_map_string() 240 const duk_uint8_t *p, *p_start, *p_end, *p_tmp1, *p_tmp2; /* pointers for scanning */ in duk_trim() local 253 p = p_start; in duk_trim() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/ |
D | duk_api_bytecode.c | 27 DUK_LOCAL duk_uint8_t *duk__load_string_raw(duk_context *ctx, duk_uint8_t *p) { in duk__load_string_raw() argument 30 len = DUK_RAW_READ_U32_BE(p); in duk__load_string_raw() 31 duk_push_lstring(ctx, (const char *) p, len); in duk__load_string_raw() 32 p += len; in duk__load_string_raw() 33 return p; in duk__load_string_raw() 36 DUK_LOCAL duk_uint8_t *duk__load_buffer_raw(duk_context *ctx, duk_uint8_t *p) { in duk__load_buffer_raw() argument 40 len = DUK_RAW_READ_U32_BE(p); in duk__load_buffer_raw() 43 DUK_MEMCPY((void *) buf, (const void *) p, (size_t) len); in duk__load_buffer_raw() 44 p += len; in duk__load_buffer_raw() 45 return p; in duk__load_buffer_raw() [all …]
|
D | duk_util.h | 118 duk_uint8_t *p; member 142 (duk_size_t) ((bw_ctx)->p - (bw_ctx)->p_base)); \ 153 ((bw_ctx)->p != NULL && \ 157 (bw_ctx)->p >= (bw_ctx)->p_base && \ 158 (bw_ctx)->p <= (bw_ctx)->p_limit))) 166 ((bw_ctx)->p) 168 (bw_ctx)->p = (ptr); \ 171 (bw_ctx)->p += (delta); \ 178 ((duk_size_t) ((bw_ctx)->p - (bw_ctx)->p_base)) 180 DUK_ASSERT((duk_size_t) (sz) <= (duk_size_t) ((bw_ctx)->p - (bw_ctx)->p_base)); \ [all …]
|
D | duk_util_bufwriter.c | 12 duk_uint8_t *p; in duk__bw_update_ptrs() local 18 p = (duk_uint8_t *) DUK_HBUFFER_DYNAMIC_GET_DATA_PTR(thr->heap, bw_ctx->buf); in duk__bw_update_ptrs() 19 …DUK_ASSERT(p != NULL || (DUK_HBUFFER_DYNAMIC_GET_SIZE(bw_ctx->buf) == 0 && curr_offset == 0 && new… in duk__bw_update_ptrs() 20 bw_ctx->p = p + curr_offset; in duk__bw_update_ptrs() 21 bw_ctx->p_base = p; in duk__bw_update_ptrs() 22 bw_ctx->p_limit = p + new_length; in duk__bw_update_ptrs() 63 curr_off = (duk_size_t) (bw_ctx->p - bw_ctx->p_base); in duk_bw_resize() 85 return bw_ctx->p; in duk_bw_resize() 96 len = (duk_size_t) (bw_ctx->p - bw_ctx->p_base); in duk_bw_compact() 112 DUK_MEMCPY((void *) bw->p, in duk_bw_write_raw_slice() [all …]
|
D | duk_bi_json.c | 55 DUK_LOCAL_DECL void duk__emit_cstring(duk_json_enc_ctx *js_ctx, const char *p); 207 (long) (js_ctx->p - js_ctx->p_start)); in duk__dec_syntax_error() 211 const duk_uint8_t *p; in duk__dec_eat_white() local 214 p = js_ctx->p; in duk__dec_eat_white() 216 DUK_ASSERT(p <= js_ctx->p_end); in duk__dec_eat_white() 217 t = *p; in duk__dec_eat_white() 235 p++; in duk__dec_eat_white() 237 js_ctx->p = p; in duk__dec_eat_white() 241 DUK_ASSERT(js_ctx->p <= js_ctx->p_end); in duk__dec_peek() 242 return *js_ctx->p; in duk__dec_peek() [all …]
|
D | duk_api_string.c | 128 const duk_uint8_t *p, *p_start, *p_end; in duk_decode_string() local 138 p = p_start; in duk_decode_string() 141 if (p >= p_end) { in duk_decode_string() 144 cp = (int) duk_unicode_decode_xutf8_checked(thr, &p, p_start, p_end); in duk_decode_string() 154 const duk_uint8_t *p, *p_start, *p_end; in duk_map_string() local 169 p = p_start; in duk_map_string() 176 if (p >= p_end) { in duk_map_string() 179 cp = (int) duk_unicode_decode_xutf8_checked(thr, &p, p_start, p_end); in duk_map_string() 240 const duk_uint8_t *p, *p_start, *p_end, *p_tmp1, *p_tmp2; /* pointers for scanning */ in duk_trim() local 253 p = p_start; in duk_trim() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/alloc-torture/ |
D | duk_alloc_torture.c | 40 unsigned char *p; in check_red_zone() local 47 p = (unsigned char *) hdr + sizeof(alloc_hdr); in check_red_zone() 49 if (p[i] != RED_ZONE_BYTE) { in check_red_zone() 60 p = (unsigned char *) hdr + sizeof(alloc_hdr) + RED_ZONE_SIZE + size; in check_red_zone() 62 if (p[i] != RED_ZONE_BYTE) { in check_red_zone() 74 unsigned char *p; in duk_alloc_torture() local 82 p = (unsigned char *) malloc(size + sizeof(alloc_hdr) + 2 * RED_ZONE_SIZE); in duk_alloc_torture() 83 if (!p) { in duk_alloc_torture() 87 ((alloc_hdr *) (void *) p)->u.sz = size; in duk_alloc_torture() 88 p += sizeof(alloc_hdr); in duk_alloc_torture() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/alloc-torture/ |
D | duk_alloc_torture.c | 40 unsigned char *p; in check_red_zone() local 47 p = (unsigned char *) hdr + sizeof(alloc_hdr); in check_red_zone() 49 if (p[i] != RED_ZONE_BYTE) { in check_red_zone() 60 p = (unsigned char *) hdr + sizeof(alloc_hdr) + RED_ZONE_SIZE + size; in check_red_zone() 62 if (p[i] != RED_ZONE_BYTE) { in check_red_zone() 74 unsigned char *p; in duk_alloc_torture() local 82 p = (unsigned char *) malloc(size + sizeof(alloc_hdr) + 2 * RED_ZONE_SIZE); in duk_alloc_torture() 83 if (!p) { in duk_alloc_torture() 87 ((alloc_hdr *) (void *) p)->u.sz = size; in duk_alloc_torture() 88 p += sizeof(alloc_hdr); in duk_alloc_torture() [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/ |
D | lstrlib.c | 71 char *p = luaL_buffinitsize(L, &b, l); in str_reverse() local 73 p[i] = s[l - i - 1]; in str_reverse() 84 char *p = luaL_buffinitsize(L, &b, l); in str_lower() local 86 p[i] = tolower(uchar(s[i])); in str_lower() 97 char *p = luaL_buffinitsize(L, &b, l); in str_upper() local 99 p[i] = toupper(uchar(s[i])); in str_upper() 119 char *p = luaL_buffinitsize(L, &b, totallen); in str_rep() local 121 memcpy(p, s, l * sizeof(char)); p += l; in str_rep() 123 memcpy(p, sep, lsep * sizeof(char)); p += lsep; in str_rep() 126 memcpy(p, s, l * sizeof(char)); /* last copy (not followed by separator) */ in str_rep() [all …]
|
D | liolib.c | 127 #define isclosed(p) ((p)->closef == NULL) argument 131 LStream *p; in io_type() local 133 p = (LStream *)luaL_testudata(L, 1, LUA_FILEHANDLE); in io_type() 134 if (p == NULL) in io_type() 136 else if (isclosed(p)) in io_type() 145 LStream *p = tolstream(L); in f_tostring() local 146 if (isclosed(p)) in f_tostring() 149 lua_pushfstring(L, "file (%p)", p->f); in f_tostring() 155 LStream *p = tolstream(L); in tofile() local 156 if (isclosed(p)) in tofile() [all …]
|
D | ldebug.c | 41 return pcRel(ci->u.l.savedpc, ci_func(ci)->p); in currentpc() 46 return getfuncline(ci_func(ci)->p, currentpc(ci)); in currentline() 110 static const char *upvalname (Proto *p, int uv) { in upvalname() argument 111 TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name); in upvalname() 118 int nparams = clLvalue(ci->func)->p->numparams; in findvararg() 137 name = luaF_getlocalname(ci_func(ci)->p, n, currentpc(ci)); in findlocal() 162 name = luaF_getlocalname(clLvalue(L->top - 1)->p, n, 0); in lua_getlocal() 201 Proto *p = cl->l.p; in funcinfo() local 202 ar->source = p->source ? getstr(p->source) : "=?"; in funcinfo() 203 ar->linedefined = p->linedefined; in funcinfo() [all …]
|
D | ldo.c | 257 static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { in adjust_varargs() argument 259 int nfixargs = p->numparams; in adjust_varargs() 263 luaD_checkstack(L, p->maxstacksize); /* check again for new 'base' */ in adjust_varargs() 276 StkId p; in tryfuncTM() local 281 for (p = L->top; p > func; p--) setobjs2s(L, p, p-1); in tryfuncTM() 327 Proto *p = clLvalue(func)->p; in luaD_precall() local 329 luaD_checkstack(L, p->maxstacksize); in luaD_precall() 330 for (; n < p->numparams; n++) in luaD_precall() 332 if (!p->is_vararg) { in luaD_precall() 337 base = adjust_varargs(L, p, n); in luaD_precall() [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/ |
D | lstrlib.c | 202 static const char *classend (MatchState *ms, const char *p) { in classend() argument 203 switch (*p++) { in classend() 205 if (*p == '\0') in classend() 207 return p+1; in classend() 210 if (*p == '^') p++; in classend() 212 if (*p == '\0') in classend() 214 if (*(p++) == L_ESC && *p != '\0') in classend() 215 p++; /* skip escapes (e.g. `%]') */ in classend() 216 } while (*p != ']'); in classend() 217 return p+1; in classend() [all …]
|
/civetweb-2.7.6/src/third_party/ |
D | sqlite3.c | 1802 int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p); 7274 const sqlite3_module *p, /* Methods for the module */ 7280 const sqlite3_module *p, /* Methods for the module */ 8798 SQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage); 8799 SQLITE_API int sqlite3_backup_finish(sqlite3_backup *p); 8800 SQLITE_API int sqlite3_backup_remaining(sqlite3_backup *p); 8801 SQLITE_API int sqlite3_backup_pagecount(sqlite3_backup *p); 10889 sqlite3_changeset_iter *p /* Handle describing change and conflict */ 11090 sqlite3_changeset_iter *p /* Handle describing change and conflict */ 13215 SQLITE_PRIVATE int sqlite3BtreeSetPageSize(Btree *p, int nPagesize, int nReserve, int eFix); [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/ |
D | lstrlib.c | 88 char *p = luaL_buffinitsize(L, &b, l); in str_reverse() local 90 p[i] = s[l - i - 1]; in str_reverse() 101 char *p = luaL_buffinitsize(L, &b, l); in str_lower() local 103 p[i] = tolower(uchar(s[i])); in str_lower() 114 char *p = luaL_buffinitsize(L, &b, l); in str_upper() local 116 p[i] = toupper(uchar(s[i])); in str_upper() 133 char *p = luaL_buffinitsize(L, &b, totallen); in str_rep() local 135 memcpy(p, s, l * sizeof(char)); p += l; in str_rep() 137 memcpy(p, sep, lsep * sizeof(char)); in str_rep() 138 p += lsep; in str_rep() [all …]
|
D | liolib.c | 147 #define isclosed(p) ((p)->closef == NULL) argument 151 LStream *p; in io_type() local 153 p = (LStream *)luaL_testudata(L, 1, LUA_FILEHANDLE); in io_type() 154 if (p == NULL) in io_type() 156 else if (isclosed(p)) in io_type() 165 LStream *p = tolstream(L); in f_tostring() local 166 if (isclosed(p)) in f_tostring() 169 lua_pushfstring(L, "file (%p)", p->f); in f_tostring() 175 LStream *p = tolstream(L); in tofile() local 176 if (isclosed(p)) in tofile() [all …]
|
D | ldebug.c | 47 return pcRel(ci->u.l.savedpc, ci_func(ci)->p); in currentpc() 52 return getfuncline(ci_func(ci)->p, currentpc(ci)); in currentline() 127 static const char *upvalname (Proto *p, int uv) { in upvalname() argument 128 TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name); in upvalname() 135 int nparams = clLvalue(ci->func)->p->numparams; in findvararg() 154 name = luaF_getlocalname(ci_func(ci)->p, n, currentpc(ci)); in findlocal() 179 name = luaF_getlocalname(clLvalue(L->top - 1)->p, n, 0); in lua_getlocal() 219 Proto *p = cl->l.p; in funcinfo() local 220 ar->source = p->source ? getstr(p->source) : "=?"; in funcinfo() 221 ar->linedefined = p->linedefined; in funcinfo() [all …]
|
D | ldo.c | 293 static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { in adjust_varargs() argument 295 int nfixargs = p->numparams; in adjust_varargs() 317 StkId p; in tryfuncTM() local 321 for (p = L->top; p > func; p--) in tryfuncTM() 322 setobjs2s(L, p, p-1); in tryfuncTM() 399 #define checkstackp(L,n,p) \ argument 401 ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \ 403 p = restorestack(L, t__)) /* 'pos' part: restore 'p' */ 442 Proto *p = clLvalue(func)->p; in luaD_precall() local 444 int fsize = p->maxstacksize; /* frame size */ in luaD_precall() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/cmdline/ |
D | duk_cmdline_ajduk.c | 43 const void *p; in ajduk__lose_const() member 46 u.p = ptr; in ajduk__lose_const() 50 static void safe_print_chars(const char *p, duk_size_t len, int until_nul) { in safe_print_chars() argument 55 unsigned char x = (unsigned char) p[i]; in safe_print_chars() 285 duk_uint16_t ajsheap_enc16(void *ud, void *p) { in ajsheap_enc16() argument 290 if (p >= duk__romptr_low && p <= duk__romptr_high) { in ajsheap_enc16() 299 if (*ptrs == p) { in ajsheap_enc16() 302 fprintf(stderr, "ajsheap_enc16: rom pointer: %p -> 0x%04lx\n", (void *) p, (long) ret); in ajsheap_enc16() 315 …derr, "ajsheap_enc16: rom pointer: %p could not be compressed, should never happen\n", (void *) p); in ajsheap_enc16() 341 if (p == NULL) { in ajsheap_enc16() [all …]
|