/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/ |
D | duk_util_bufwriter.c | 101 DUK_INTERNAL void duk_bw_write_raw_slice(duk_hthread *thr, duk_bufwriter_ctx *bw, duk_size_t src_of… in duk_bw_write_raw_slice() argument 105 DUK_ASSERT(bw != NULL); in duk_bw_write_raw_slice() 106 DUK_ASSERT(src_off <= DUK_BW_GET_SIZE(thr, bw)); in duk_bw_write_raw_slice() 107 DUK_ASSERT(len <= DUK_BW_GET_SIZE(thr, bw)); in duk_bw_write_raw_slice() 108 DUK_ASSERT(src_off + len <= DUK_BW_GET_SIZE(thr, bw)); in duk_bw_write_raw_slice() 111 p_base = bw->p_base; in duk_bw_write_raw_slice() 112 DUK_MEMCPY((void *) bw->p, in duk_bw_write_raw_slice() 115 bw->p += len; in duk_bw_write_raw_slice() 118 DUK_INTERNAL void duk_bw_write_ensure_slice(duk_hthread *thr, duk_bufwriter_ctx *bw, duk_size_t src… in duk_bw_write_ensure_slice() argument 120 DUK_ASSERT(bw != NULL); in duk_bw_write_ensure_slice() [all …]
|
D | duk_util.h | 342 #define DUK_BW_WRITE_RAW_SLICE(thr,bw,dst_off,dst_len) \ argument 343 duk_bw_write_raw_slice((thr), (bw), (dst_off), (dst_len)) 346 #define DUK_BW_INSERT_RAW_BYTES(thr,bw,dst_off,buf,len) \ argument 347 duk_bw_insert_raw_bytes((thr), (bw), (dst_off), (buf), (len)) 352 #define DUK_BW_INSERT_RAW_SLICE(thr,bw,dst_off,src_off,len) \ argument 353 duk_bw_insert_raw_slice((thr), (bw), (dst_off), (src_off), (len)) 359 #define DUK_BW_INSERT_RAW_AREA(thr,bw,off,len) \ argument 360 duk_bw_insert_raw_area((thr), (bw), (off), (len)) 363 #define DUK_BW_REMOVE_RAW_SLICE(thr,bw,off,len) \ argument 364 duk_bw_remove_raw_slice((thr), (bw), (off), (len)) [all …]
|
D | duk_unicode_support.c | 809 duk_bufwriter_ctx *bw, in duk__slow_case_conversion() argument 878 if (bw != NULL) { in duk__slow_case_conversion() 881 DUK_BW_WRITE_RAW_XUTF8(thr, bw, (duk_ucodepoint_t) tmp_cp); in duk__slow_case_conversion() 897 if (bw != NULL) { in duk__slow_case_conversion() 898 DUK_BW_WRITE_RAW_XUTF8(thr, bw, (duk_ucodepoint_t) cp); in duk__slow_case_conversion() 915 duk_bufwriter_ctx *bw, in duk__case_transform_helper() argument 940 if (bw != NULL) { in duk__case_transform_helper() 941 DUK_BW_WRITE_RAW_U8(thr, bw, (duk_uint8_t) cp); in duk__case_transform_helper() 984 return duk__slow_case_conversion(thr, bw, cp, &bd_ctx); in duk__case_transform_helper() 987 if (bw != NULL) { in duk__case_transform_helper() [all …]
|
D | duk_bi_string.c | 52 duk_bufwriter_ctx *bw; in duk_bi_string_constructor_from_char_code() local 64 bw = &bw_alloc; in duk_bi_string_constructor_from_char_code() 65 DUK_BW_INIT_PUSHBUF(thr, bw, n); /* initial estimate for ASCII only codepoints */ in duk_bi_string_constructor_from_char_code() 80 DUK_BW_WRITE_ENSURE_XUTF8(thr, bw, cp); in duk_bi_string_constructor_from_char_code() 83 DUK_BW_WRITE_ENSURE_CESU8(thr, bw, cp); in duk_bi_string_constructor_from_char_code() 87 DUK_BW_COMPACT(thr, bw); in duk_bi_string_constructor_from_char_code() 434 duk_bufwriter_ctx *bw; local 452 bw = &bw_alloc; 453 …DUK_BW_INIT_PUSHBUF(thr, bw, DUK_HSTRING_GET_BYTELEN(h_input)); /* input size is good output star… 624 DUK_BW_WRITE_ENSURE_BYTES(thr, bw, DUK_HSTRING_GET_DATA(h_input) + prev_match_end_boff, tmp_sz); [all …]
|
D | duk_bi_global.c | 92 duk_bufwriter_ctx bw; member 129 …DUK_BW_INIT_PUSHBUF(thr, &tfm_ctx->bw, DUK_HSTRING_GET_BYTELEN(tfm_ctx->h_str)); /* initial size … in duk__transform_helper() 140 DUK_BW_COMPACT(thr, &tfm_ctx->bw); in duk__transform_helper() 157 DUK_BW_ENSURE(tfm_ctx->thr, &tfm_ctx->bw, 3 * DUK_UNICODE_MAX_XUTF8_LENGTH); in duk__transform_callback_encode_uri() 162 DUK_BW_WRITE_RAW_U8(tfm_ctx->thr, &tfm_ctx->bw, (duk_uint8_t) cp); in duk__transform_callback_encode_uri() 196 &tfm_ctx->bw, in duk__transform_callback_encode_uri() 219 &tfm_ctx->bw, in duk__transform_callback_decode_uri() 244 &tfm_ctx->bw, in duk__transform_callback_decode_uri() 249 DUK_BW_WRITE_RAW_U8(tfm_ctx->thr, &tfm_ctx->bw, (duk_uint8_t) t); in duk__transform_callback_decode_uri() 332 DUK_BW_WRITE_RAW_XUTF8(tfm_ctx->thr, &tfm_ctx->bw, ((cp >> 10) + 0xd800L)); in duk__transform_callback_decode_uri() [all …]
|
D | duk_regexp_compiler.c | 33 DUK_BW_GET_SIZE(re_ctx->thr, &re_ctx->bw) 90 DUK_BW_INSERT_ENSURE_BYTES(re_ctx->thr, &re_ctx->bw, offset, buf, len); in duk__insert_u32() 99 DUK_BW_WRITE_ENSURE_BYTES(re_ctx->thr, &re_ctx->bw, buf, len); in duk__append_u32() 123 DUK_BW_INSERT_ENSURE_SLICE(re_ctx->thr, &re_ctx->bw, offset, data_offset, data_length); in duk__insert_slice() 127 DUK_BW_WRITE_ENSURE_SLICE(re_ctx->thr, &re_ctx->bw, data_offset, data_length); in duk__append_slice() 131 DUK_BW_REMOVE_ENSURE_SLICE(re_ctx->thr, &re_ctx->bw, data_offset, data_length); in duk__remove_slice() 839 duk_bufwriter_ctx *bw; in duk__create_escaped_source() local 855 bw = &bw_alloc; in duk__create_escaped_source() 856 DUK_BW_INIT_PUSHBUF(thr, bw, n); in duk__create_escaped_source() 857 q = DUK_BW_GET_PTR(thr, bw); in duk__create_escaped_source() [all …]
|
D | duk_bi_json.c | 380 duk_bufwriter_ctx *bw; in duk__dec_string() local 390 bw = &bw_alloc; in duk__dec_string() 391 DUK_BW_INIT_PUSHBUF(js_ctx->thr, bw, DUK__JSON_DECSTR_BUFSIZE); in duk__dec_string() 392 q = DUK_BW_GET_PTR(js_ctx->thr, bw); in duk__dec_string() 409 q = DUK_BW_ENSURE_RAW(js_ctx->thr, bw, safe + DUK_UNICODE_MAX_XUTF8_LENGTH, q); in duk__dec_string() 451 q = DUK_BW_ENSURE_RAW(js_ctx->thr, bw, DUK_UNICODE_MAX_XUTF8_LENGTH, q); in duk__dec_string() 470 DUK_BW_SETPTR_AND_COMPACT(js_ctx->thr, bw, q); in duk__dec_string() 1054 DUK_BW_WRITE_ENSURE_U8(js_ctx->thr, &js_ctx->bw, ch); 1058 DUK_BW_WRITE_ENSURE_U8_2(js_ctx->thr, &js_ctx->bw, ch1, ch2); 1062 DUK_BW_WRITE_ENSURE_HSTRING(js_ctx->thr, &js_ctx->bw, h); [all …]
|
D | duk_api_string.c | 153 duk_bufwriter_ctx *bw; in duk_map_string() local 164 bw = &bw_alloc; in duk_map_string() 165 DUK_BW_INIT_PUSHBUF(thr, bw, DUK_HSTRING_GET_BYTELEN(h_input)); /* reasonable output estimate */ in duk_map_string() 182 DUK_BW_WRITE_ENSURE_XUTF8(thr, bw, cp); in duk_map_string() 185 DUK_BW_COMPACT(thr, bw); in duk_map_string()
|
D | duk_json.h | 26 duk_bufwriter_ctx bw; /* output bufwriter */ member
|
D | duk_regexp.h | 65 duk_bufwriter_ctx bw; member
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/ |
D | duk_util_bufwriter.c | 101 DUK_INTERNAL void duk_bw_write_raw_slice(duk_hthread *thr, duk_bufwriter_ctx *bw, duk_size_t src_of… in duk_bw_write_raw_slice() argument 105 DUK_ASSERT(bw != NULL); in duk_bw_write_raw_slice() 106 DUK_ASSERT(src_off <= DUK_BW_GET_SIZE(thr, bw)); in duk_bw_write_raw_slice() 107 DUK_ASSERT(len <= DUK_BW_GET_SIZE(thr, bw)); in duk_bw_write_raw_slice() 108 DUK_ASSERT(src_off + len <= DUK_BW_GET_SIZE(thr, bw)); in duk_bw_write_raw_slice() 111 p_base = bw->p_base; in duk_bw_write_raw_slice() 112 DUK_MEMCPY((void *) bw->p, in duk_bw_write_raw_slice() 115 bw->p += len; in duk_bw_write_raw_slice() 118 DUK_INTERNAL void duk_bw_write_ensure_slice(duk_hthread *thr, duk_bufwriter_ctx *bw, duk_size_t src… in duk_bw_write_ensure_slice() argument 120 DUK_ASSERT(bw != NULL); in duk_bw_write_ensure_slice() [all …]
|
D | duk_util.h | 342 #define DUK_BW_WRITE_RAW_SLICE(thr,bw,dst_off,dst_len) \ argument 343 duk_bw_write_raw_slice((thr), (bw), (dst_off), (dst_len)) 346 #define DUK_BW_INSERT_RAW_BYTES(thr,bw,dst_off,buf,len) \ argument 347 duk_bw_insert_raw_bytes((thr), (bw), (dst_off), (buf), (len)) 352 #define DUK_BW_INSERT_RAW_SLICE(thr,bw,dst_off,src_off,len) \ argument 353 duk_bw_insert_raw_slice((thr), (bw), (dst_off), (src_off), (len)) 359 #define DUK_BW_INSERT_RAW_AREA(thr,bw,off,len) \ argument 360 duk_bw_insert_raw_area((thr), (bw), (off), (len)) 363 #define DUK_BW_REMOVE_RAW_SLICE(thr,bw,off,len) \ argument 364 duk_bw_remove_raw_slice((thr), (bw), (off), (len)) [all …]
|
D | duk_unicode_support.c | 809 duk_bufwriter_ctx *bw, in duk__slow_case_conversion() argument 878 if (bw != NULL) { in duk__slow_case_conversion() 881 DUK_BW_WRITE_RAW_XUTF8(thr, bw, (duk_ucodepoint_t) tmp_cp); in duk__slow_case_conversion() 897 if (bw != NULL) { in duk__slow_case_conversion() 898 DUK_BW_WRITE_RAW_XUTF8(thr, bw, (duk_ucodepoint_t) cp); in duk__slow_case_conversion() 915 duk_bufwriter_ctx *bw, in duk__case_transform_helper() argument 940 if (bw != NULL) { in duk__case_transform_helper() 941 DUK_BW_WRITE_RAW_U8(thr, bw, (duk_uint8_t) cp); in duk__case_transform_helper() 984 return duk__slow_case_conversion(thr, bw, cp, &bd_ctx); in duk__case_transform_helper() 987 if (bw != NULL) { in duk__case_transform_helper() [all …]
|
D | duk_bi_string.c | 52 duk_bufwriter_ctx *bw; in duk_bi_string_constructor_from_char_code() local 64 bw = &bw_alloc; in duk_bi_string_constructor_from_char_code() 65 DUK_BW_INIT_PUSHBUF(thr, bw, n); /* initial estimate for ASCII only codepoints */ in duk_bi_string_constructor_from_char_code() 80 DUK_BW_WRITE_ENSURE_XUTF8(thr, bw, cp); in duk_bi_string_constructor_from_char_code() 83 DUK_BW_WRITE_ENSURE_CESU8(thr, bw, cp); in duk_bi_string_constructor_from_char_code() 87 DUK_BW_COMPACT(thr, bw); in duk_bi_string_constructor_from_char_code() 434 duk_bufwriter_ctx *bw; local 452 bw = &bw_alloc; 453 …DUK_BW_INIT_PUSHBUF(thr, bw, DUK_HSTRING_GET_BYTELEN(h_input)); /* input size is good output star… 624 DUK_BW_WRITE_ENSURE_BYTES(thr, bw, DUK_HSTRING_GET_DATA(h_input) + prev_match_end_boff, tmp_sz); [all …]
|
D | duk_bi_global.c | 92 duk_bufwriter_ctx bw; member 129 …DUK_BW_INIT_PUSHBUF(thr, &tfm_ctx->bw, DUK_HSTRING_GET_BYTELEN(tfm_ctx->h_str)); /* initial size … in duk__transform_helper() 140 DUK_BW_COMPACT(thr, &tfm_ctx->bw); in duk__transform_helper() 157 DUK_BW_ENSURE(tfm_ctx->thr, &tfm_ctx->bw, 3 * DUK_UNICODE_MAX_XUTF8_LENGTH); in duk__transform_callback_encode_uri() 162 DUK_BW_WRITE_RAW_U8(tfm_ctx->thr, &tfm_ctx->bw, (duk_uint8_t) cp); in duk__transform_callback_encode_uri() 196 &tfm_ctx->bw, in duk__transform_callback_encode_uri() 219 &tfm_ctx->bw, in duk__transform_callback_decode_uri() 244 &tfm_ctx->bw, in duk__transform_callback_decode_uri() 249 DUK_BW_WRITE_RAW_U8(tfm_ctx->thr, &tfm_ctx->bw, (duk_uint8_t) t); in duk__transform_callback_decode_uri() 332 DUK_BW_WRITE_RAW_XUTF8(tfm_ctx->thr, &tfm_ctx->bw, ((cp >> 10) + 0xd800L)); in duk__transform_callback_decode_uri() [all …]
|
D | duk_regexp_compiler.c | 33 DUK_BW_GET_SIZE(re_ctx->thr, &re_ctx->bw) 90 DUK_BW_INSERT_ENSURE_BYTES(re_ctx->thr, &re_ctx->bw, offset, buf, len); in duk__insert_u32() 99 DUK_BW_WRITE_ENSURE_BYTES(re_ctx->thr, &re_ctx->bw, buf, len); in duk__append_u32() 123 DUK_BW_INSERT_ENSURE_SLICE(re_ctx->thr, &re_ctx->bw, offset, data_offset, data_length); in duk__insert_slice() 127 DUK_BW_WRITE_ENSURE_SLICE(re_ctx->thr, &re_ctx->bw, data_offset, data_length); in duk__append_slice() 131 DUK_BW_REMOVE_ENSURE_SLICE(re_ctx->thr, &re_ctx->bw, data_offset, data_length); in duk__remove_slice() 839 duk_bufwriter_ctx *bw; in duk__create_escaped_source() local 855 bw = &bw_alloc; in duk__create_escaped_source() 856 DUK_BW_INIT_PUSHBUF(thr, bw, n); in duk__create_escaped_source() 857 q = DUK_BW_GET_PTR(thr, bw); in duk__create_escaped_source() [all …]
|
D | duk_bi_json.c | 380 duk_bufwriter_ctx *bw; in duk__dec_string() local 390 bw = &bw_alloc; in duk__dec_string() 391 DUK_BW_INIT_PUSHBUF(js_ctx->thr, bw, DUK__JSON_DECSTR_BUFSIZE); in duk__dec_string() 392 q = DUK_BW_GET_PTR(js_ctx->thr, bw); in duk__dec_string() 409 q = DUK_BW_ENSURE_RAW(js_ctx->thr, bw, safe + DUK_UNICODE_MAX_XUTF8_LENGTH, q); in duk__dec_string() 451 q = DUK_BW_ENSURE_RAW(js_ctx->thr, bw, DUK_UNICODE_MAX_XUTF8_LENGTH, q); in duk__dec_string() 470 DUK_BW_SETPTR_AND_COMPACT(js_ctx->thr, bw, q); in duk__dec_string() 1054 DUK_BW_WRITE_ENSURE_U8(js_ctx->thr, &js_ctx->bw, ch); 1058 DUK_BW_WRITE_ENSURE_U8_2(js_ctx->thr, &js_ctx->bw, ch1, ch2); 1062 DUK_BW_WRITE_ENSURE_HSTRING(js_ctx->thr, &js_ctx->bw, h); [all …]
|
D | duk_api_string.c | 153 duk_bufwriter_ctx *bw; in duk_map_string() local 164 bw = &bw_alloc; in duk_map_string() 165 DUK_BW_INIT_PUSHBUF(thr, bw, DUK_HSTRING_GET_BYTELEN(h_input)); /* reasonable output estimate */ in duk_map_string() 182 DUK_BW_WRITE_ENSURE_XUTF8(thr, bw, cp); in duk_map_string() 185 DUK_BW_COMPACT(thr, bw); in duk_map_string()
|
D | duk_json.h | 26 duk_bufwriter_ctx bw; /* output bufwriter */ member
|
D | duk_regexp.h | 65 duk_bufwriter_ctx bw; member
|
D | duk_lexer.c | 520 DUK_BW_INIT_WITHBUF(lex_ctx->thr, &lex_ctx->bw, lex_ctx->buf); in duk__initbuffer() 542 DUK_BW_WRITE_ENSURE_CESU8(lex_ctx->thr, &lex_ctx->bw, (duk_ucodepoint_t) x); in duk__appendbuffer() 555 DUK_BW_PUSH_AS_STRING(lex_ctx->thr, &lex_ctx->bw); in duk__internbuffer()
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-noline/ |
D | duktape.c | 2065 #define DUK_BW_WRITE_RAW_SLICE(thr,bw,dst_off,dst_len) \ argument 2066 duk_bw_write_raw_slice((thr), (bw), (dst_off), (dst_len)) 2069 #define DUK_BW_INSERT_RAW_BYTES(thr,bw,dst_off,buf,len) \ argument 2070 duk_bw_insert_raw_bytes((thr), (bw), (dst_off), (buf), (len)) 2075 #define DUK_BW_INSERT_RAW_SLICE(thr,bw,dst_off,src_off,len) \ argument 2076 duk_bw_insert_raw_slice((thr), (bw), (dst_off), (src_off), (len)) 2082 #define DUK_BW_INSERT_RAW_AREA(thr,bw,off,len) \ argument 2083 duk_bw_insert_raw_area((thr), (bw), (off), (len)) 2086 #define DUK_BW_REMOVE_RAW_SLICE(thr,bw,off,len) \ argument 2087 duk_bw_remove_raw_slice((thr), (bw), (off), (len)) [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src/ |
D | duktape.c | 2074 #define DUK_BW_WRITE_RAW_SLICE(thr,bw,dst_off,dst_len) \ argument 2075 duk_bw_write_raw_slice((thr), (bw), (dst_off), (dst_len)) 2078 #define DUK_BW_INSERT_RAW_BYTES(thr,bw,dst_off,buf,len) \ argument 2079 duk_bw_insert_raw_bytes((thr), (bw), (dst_off), (buf), (len)) 2084 #define DUK_BW_INSERT_RAW_SLICE(thr,bw,dst_off,src_off,len) \ argument 2085 duk_bw_insert_raw_slice((thr), (bw), (dst_off), (src_off), (len)) 2091 #define DUK_BW_INSERT_RAW_AREA(thr,bw,off,len) \ argument 2092 duk_bw_insert_raw_area((thr), (bw), (off), (len)) 2095 #define DUK_BW_REMOVE_RAW_SLICE(thr,bw,off,len) \ argument 2096 duk_bw_remove_raw_slice((thr), (bw), (off), (len)) [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src/ |
D | duktape.c | 2074 #define DUK_BW_WRITE_RAW_SLICE(thr,bw,dst_off,dst_len) \ argument 2075 duk_bw_write_raw_slice((thr), (bw), (dst_off), (dst_len)) 2078 #define DUK_BW_INSERT_RAW_BYTES(thr,bw,dst_off,buf,len) \ argument 2079 duk_bw_insert_raw_bytes((thr), (bw), (dst_off), (buf), (len)) 2084 #define DUK_BW_INSERT_RAW_SLICE(thr,bw,dst_off,src_off,len) \ argument 2085 duk_bw_insert_raw_slice((thr), (bw), (dst_off), (src_off), (len)) 2091 #define DUK_BW_INSERT_RAW_AREA(thr,bw,off,len) \ argument 2092 duk_bw_insert_raw_area((thr), (bw), (off), (len)) 2095 #define DUK_BW_REMOVE_RAW_SLICE(thr,bw,off,len) \ argument 2096 duk_bw_remove_raw_slice((thr), (bw), (off), (len)) [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-noline/ |
D | duktape.c | 2065 #define DUK_BW_WRITE_RAW_SLICE(thr,bw,dst_off,dst_len) \ argument 2066 duk_bw_write_raw_slice((thr), (bw), (dst_off), (dst_len)) 2069 #define DUK_BW_INSERT_RAW_BYTES(thr,bw,dst_off,buf,len) \ argument 2070 duk_bw_insert_raw_bytes((thr), (bw), (dst_off), (buf), (len)) 2075 #define DUK_BW_INSERT_RAW_SLICE(thr,bw,dst_off,src_off,len) \ argument 2076 duk_bw_insert_raw_slice((thr), (bw), (dst_off), (src_off), (len)) 2082 #define DUK_BW_INSERT_RAW_AREA(thr,bw,off,len) \ argument 2083 duk_bw_insert_raw_area((thr), (bw), (off), (len)) 2086 #define DUK_BW_REMOVE_RAW_SLICE(thr,bw,off,len) \ argument 2087 duk_bw_remove_raw_slice((thr), (bw), (off), (len)) [all …]
|