Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 65) sorted by relevance

123

/civetweb-2.7.6/src/third_party/duktape-1.5.2/config/
Dgenconfig.py265 ret = Snippet([], [], [])
267 ret.lines += s.lines
269 ret.provides[k] = True
271 ret.requires[k] = True
272 return ret
466 ret = []
473 ret += sn.lines
482 return '\n'.join(ret)
485 ret = []
492 ret.append(line)
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/config/
Dgenconfig.py265 ret = Snippet([], [], [])
267 ret.lines += s.lines
269 ret.provides[k] = True
271 ret.requires[k] = True
272 return ret
466 ret = []
473 ret += sn.lines
482 return '\n'.join(ret)
485 ret = []
492 ret.append(line)
[all …]
/civetweb-2.7.6/unittest/
Dpublic_func.c48 int ret, len; in START_TEST() local
56 ret = sscanf(ver, "%u.%u", &major, &minor); in START_TEST()
57 ck_assert_int_eq(ret, 2); in START_TEST()
112 ret = mg_get_system_info(buf, len + 1); in START_TEST()
113 ck_assert_int_eq(len, ret); in START_TEST()
114 ret = (int)strlen(buf); in START_TEST()
115 ck_assert_int_eq(len, ret); in START_TEST()
124 ret = mg_get_context_info(ctx, buf, len + 100); in START_TEST()
125 ck_assert_int_gt(ret, 0); in START_TEST()
127 ck_assert_int_eq(len, ret); in START_TEST()
[all …]
Dprivate.c431 int ret = 0; in alloc_printf() local
436 ret = alloc_vprintf(buf, *buf, size, fmt, ap); in alloc_printf()
439 return ret; in alloc_printf()
448 int ret = 0; in alloc_printf2() local
453 ret = alloc_vprintf2(buf, fmt, ap); in alloc_printf2()
456 return ret; in alloc_printf2()
620 int i, ret; in START_TEST() local
629 ret = parse_port_string(&vec, &so, &ip_family); in START_TEST()
631 if ((ret != testdata[i].valid) in START_TEST()
639 ret, in START_TEST()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/cmdline/
Dduk_cmdline_ajduk.c119 AJ_Status ret; in ajsheap_init() local
142 ret = AJS_HeapInit((void **) heap_array, /* heap */ in ajsheap_init()
147 fprintf(stderr, "AJS_HeapInit() -> %ld\n", (long) ret); in ajsheap_init()
235 void *ret = AJS_Alloc(udata, size); in ajsheap_alloc_wrapped() local
236 if (size > 0 && ret == NULL) { in ajsheap_alloc_wrapped()
238 } else if (ret == NULL) { in ajsheap_alloc_wrapped()
241 ajsheap_write_alloc_log("A %p %ld\n", ret, (long) size); in ajsheap_alloc_wrapped()
243 return ret; in ajsheap_alloc_wrapped()
247 void *ret = AJS_Realloc(udata, ptr, size); in ajsheap_realloc_wrapped() local
248 if (size > 0 && ret == NULL) { in ajsheap_realloc_wrapped()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/cmdline/
Dduk_cmdline_ajduk.c119 AJ_Status ret; in ajsheap_init() local
142 ret = AJS_HeapInit((void **) heap_array, /* heap */ in ajsheap_init()
147 fprintf(stderr, "AJS_HeapInit() -> %ld\n", (long) ret); in ajsheap_init()
235 void *ret = AJS_Alloc(udata, size); in ajsheap_alloc_wrapped() local
236 if (size > 0 && ret == NULL) { in ajsheap_alloc_wrapped()
238 } else if (ret == NULL) { in ajsheap_alloc_wrapped()
241 ajsheap_write_alloc_log("A %p %ld\n", ret, (long) size); in ajsheap_alloc_wrapped()
243 return ret; in ajsheap_alloc_wrapped()
247 void *ret = AJS_Realloc(udata, ptr, size); in ajsheap_realloc_wrapped() local
248 if (size > 0 && ret == NULL) { in ajsheap_realloc_wrapped()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/alloc-logging/
Dduk_alloc_logging.c55 void *ret; in duk_alloc_logging() local
70 ret = (void *) (hdr + 1); in duk_alloc_logging()
71 write_log("A %p %ld\n", ret, (long) size); in duk_alloc_logging()
72 return ret; in duk_alloc_logging()
79 void *ret; in duk_realloc_logging() local
104 ret = (void *) (hdr + 1); in duk_realloc_logging()
105 write_log("R %p %ld %p %ld\n", ptr, (long) old_size, ret, (long) size); in duk_realloc_logging()
106 return ret; in duk_realloc_logging()
119 ret = (void *) (hdr + 1); in duk_realloc_logging()
120 write_log("R NULL 0 %p %ld\n", ret, (long) size); in duk_realloc_logging()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/alloc-logging/
Dduk_alloc_logging.c55 void *ret; in duk_alloc_logging() local
70 ret = (void *) (hdr + 1); in duk_alloc_logging()
71 write_log("A %p %ld\n", ret, (long) size); in duk_alloc_logging()
72 return ret; in duk_alloc_logging()
79 void *ret; in duk_realloc_logging() local
104 ret = (void *) (hdr + 1); in duk_realloc_logging()
105 write_log("R %p %ld %p %ld\n", ptr, (long) old_size, ret, (long) size); in duk_realloc_logging()
106 return ret; in duk_realloc_logging()
119 ret = (void *) (hdr + 1); in duk_realloc_logging()
120 write_log("R NULL 0 %p %ld\n", ret, (long) size); in duk_realloc_logging()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/debug-trans-socket/
Dduk_trans_socket_windows.c215 int ret; in duk_trans_socket_read_cb() local
249 ret = recv(client_sock, (void *) buffer, (int) length, 0); in duk_trans_socket_read_cb()
250 if (ret < 0) { in duk_trans_socket_read_cb()
252 __FILE__, ret); in duk_trans_socket_read_cb()
255 } else if (ret == 0) { in duk_trans_socket_read_cb()
260 } else if (ret > (int) length) { in duk_trans_socket_read_cb()
262 __FILE__, (long) ret, (long) length); in duk_trans_socket_read_cb()
267 return (duk_size_t) ret; in duk_trans_socket_read_cb()
279 int ret; in duk_trans_socket_write_cb() local
313 ret = send(client_sock, (const void *) buffer, (int) length, 0); in duk_trans_socket_write_cb()
[all …]
Dduk_trans_socket_unix.c139 ssize_t ret; in duk_trans_socket_read_cb() local
173 ret = read(client_sock, (void *) buffer, (size_t) length); in duk_trans_socket_read_cb()
174 if (ret < 0) { in duk_trans_socket_read_cb()
179 } else if (ret == 0) { in duk_trans_socket_read_cb()
184 } else if (ret > (ssize_t) length) { in duk_trans_socket_read_cb()
186 __FILE__, (long) ret, (long) length); in duk_trans_socket_read_cb()
191 return (duk_size_t) ret; in duk_trans_socket_read_cb()
203 ssize_t ret; in duk_trans_socket_write_cb() local
237 ret = write(client_sock, (const void *) buffer, (size_t) length); in duk_trans_socket_write_cb()
238 if (ret <= 0 || ret > (ssize_t) length) { in duk_trans_socket_write_cb()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/debug-trans-socket/
Dduk_trans_socket_windows.c215 int ret; in duk_trans_socket_read_cb() local
249 ret = recv(client_sock, (void *) buffer, (int) length, 0); in duk_trans_socket_read_cb()
250 if (ret < 0) { in duk_trans_socket_read_cb()
252 __FILE__, ret); in duk_trans_socket_read_cb()
255 } else if (ret == 0) { in duk_trans_socket_read_cb()
260 } else if (ret > (int) length) { in duk_trans_socket_read_cb()
262 __FILE__, (long) ret, (long) length); in duk_trans_socket_read_cb()
267 return (duk_size_t) ret; in duk_trans_socket_read_cb()
279 int ret; in duk_trans_socket_write_cb() local
313 ret = send(client_sock, (const void *) buffer, (int) length, 0); in duk_trans_socket_write_cb()
[all …]
Dduk_trans_socket_unix.c139 ssize_t ret; in duk_trans_socket_read_cb() local
173 ret = read(client_sock, (void *) buffer, (size_t) length); in duk_trans_socket_read_cb()
174 if (ret < 0) { in duk_trans_socket_read_cb()
179 } else if (ret == 0) { in duk_trans_socket_read_cb()
184 } else if (ret > (ssize_t) length) { in duk_trans_socket_read_cb()
186 __FILE__, (long) ret, (long) length); in duk_trans_socket_read_cb()
191 return (duk_size_t) ret; in duk_trans_socket_read_cb()
203 ssize_t ret; in duk_trans_socket_write_cb() local
237 ret = write(client_sock, (const void *) buffer, (size_t) length); in duk_trans_socket_write_cb()
238 if (ret <= 0 || ret > (ssize_t) length) { in duk_trans_socket_write_cb()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_api_stack.c436 duk_idx_t ret; in duk_get_top_index() local
440 ret = ((duk_idx_t) (thr->valstack_top - thr->valstack_bottom)) - 1; in duk_get_top_index()
441 if (DUK_UNLIKELY(ret < 0)) { in duk_get_top_index()
448 return ret; in duk_get_top_index()
453 duk_idx_t ret; in duk_require_top_index() local
457 ret = ((duk_idx_t) (thr->valstack_top - thr->valstack_bottom)) - 1; in duk_require_top_index()
458 if (DUK_UNLIKELY(ret < 0)) { in duk_require_top_index()
462 return ret; in duk_require_top_index()
1093 duk_bool_t ret = 0; /* default: false */ in duk_get_boolean() local
1100 ret = DUK_TVAL_GET_BOOLEAN(tv); in duk_get_boolean()
[all …]
Dduk_bi_array.c70 duk_uint32_t ret = duk__push_this_obj_len_u32(ctx); in duk__push_this_obj_len_u32_limited() local
71 if (DUK_UNLIKELY(ret >= 0x80000000UL)) { in duk__push_this_obj_len_u32_limited()
74 return ret; in duk__push_this_obj_len_u32_limited()
427 duk_small_int_t ret; in duk__array_sort_compare() local
464 ret = -1; in duk__array_sort_compare()
469 ret = 1; in duk__array_sort_compare()
472 ret = 0; in duk__array_sort_compare()
481 ret = 0; in duk__array_sort_compare()
484 ret = 1; in duk__array_sort_compare()
489 ret = -1; in duk__array_sort_compare()
[all …]
Dduk_hthread_misc.c65 duk_uint_fast32_t ret; in duk_hthread_get_act_prev_pc() local
73 ret = (duk_uint_fast32_t) (act->curr_pc - bcode); in duk_hthread_get_act_prev_pc()
74 if (ret > 0) { in duk_hthread_get_act_prev_pc()
75 ret--; in duk_hthread_get_act_prev_pc()
77 return ret; in duk_hthread_get_act_prev_pc()
Dduk_api_codec.c376 const char *ret; in duk_base64_encode() local
401 ret = duk_to_string(ctx, -1); in duk_base64_encode()
403 return ret; in duk_base64_encode()
459 const char *ret; in duk_hex_encode() local
505 ret = duk_to_string(ctx, -1); in duk_hex_encode()
507 return ret; in duk_hex_encode()
598 const char *ret; in duk_json_encode() local
613 ret = duk_get_string(ctx, index); in duk_json_encode()
617 return ret; in duk_json_encode()
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_api_stack.c436 duk_idx_t ret; in duk_get_top_index() local
440 ret = ((duk_idx_t) (thr->valstack_top - thr->valstack_bottom)) - 1; in duk_get_top_index()
441 if (DUK_UNLIKELY(ret < 0)) { in duk_get_top_index()
448 return ret; in duk_get_top_index()
453 duk_idx_t ret; in duk_require_top_index() local
457 ret = ((duk_idx_t) (thr->valstack_top - thr->valstack_bottom)) - 1; in duk_require_top_index()
458 if (DUK_UNLIKELY(ret < 0)) { in duk_require_top_index()
462 return ret; in duk_require_top_index()
1097 duk_bool_t ret = 0; /* default: false */ in duk_get_boolean() local
1104 ret = DUK_TVAL_GET_BOOLEAN(tv); in duk_get_boolean()
[all …]
Dduk_bi_array.c70 duk_uint32_t ret = duk__push_this_obj_len_u32(ctx); in duk__push_this_obj_len_u32_limited() local
71 if (DUK_UNLIKELY(ret >= 0x80000000UL)) { in duk__push_this_obj_len_u32_limited()
74 return ret; in duk__push_this_obj_len_u32_limited()
427 duk_small_int_t ret; in duk__array_sort_compare() local
464 ret = -1; in duk__array_sort_compare()
469 ret = 1; in duk__array_sort_compare()
472 ret = 0; in duk__array_sort_compare()
481 ret = 0; in duk__array_sort_compare()
484 ret = 1; in duk__array_sort_compare()
489 ret = -1; in duk__array_sort_compare()
[all …]
Dduk_hthread_misc.c65 duk_uint_fast32_t ret; in duk_hthread_get_act_prev_pc() local
73 ret = (duk_uint_fast32_t) (act->curr_pc - bcode); in duk_hthread_get_act_prev_pc()
74 if (ret > 0) { in duk_hthread_get_act_prev_pc()
75 ret--; in duk_hthread_get_act_prev_pc()
77 return ret; in duk_hthread_get_act_prev_pc()
Dduk_api_codec.c376 const char *ret; in duk_base64_encode() local
401 ret = duk_to_string(ctx, -1); in duk_base64_encode()
403 return ret; in duk_base64_encode()
459 const char *ret; in duk_hex_encode() local
505 ret = duk_to_string(ctx, -1); in duk_hex_encode()
507 return ret; in duk_hex_encode()
598 const char *ret; in duk_json_encode() local
613 ret = duk_get_string(ctx, index); in duk_json_encode()
617 return ret; in duk_json_encode()
/civetweb-2.7.6/src/
Dwolfssl_extras.inl32 const int ret = (int)x->derCert->length; local
34 if (out && (ret > 0)) {
36 *out = mg_malloc(ret);
39 memcpy(*out, x->derCert->buffer, ret);
43 return ret;
57 int ret; local
63 ret = EVP_DigestInit_ex(ctx, type, impl)
68 return ret;
Dmod_lua_shared.inl70 double ret; local
77 ret = lua_tonumber(L_shared, -1);
80 ret += value;
82 ret = value;
87 lua_pushnumber(L_shared, ret);
94 return ret;
105 double ret = shared_locked_add(sym, symlen, num, 1); local
106 lua_pushnumber(L, ret);
117 double ret = shared_locked_add(sym, symlen, +1.0, 1); local
118 lua_pushnumber(L, ret);
[all …]
Dmod_duktape.inl113 duk_double_t ret; local
133 ret = mg_write(conn, val, len);
135 duk_push_number(duk_ctx, ret);
169 const char *ret; local
187 ret = conn->dom_ctx->config[optidx];
189 ret = NULL;
191 if (ret) {
192 duk_push_string(duk_ctx, ret);
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/jxpretty/
Djxpretty.c12 size_t ret; in do_jxpretty() local
22 ret = fread(buf, 1, sizeof(buf), f); in do_jxpretty()
24 fprintf(stderr, "Read: %ld\n", (long) ret); in do_jxpretty()
27 if (ret == 0) { in do_jxpretty()
32 duk_push_lstring(ctx, (const char *) buf, ret); in do_jxpretty()
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/jxpretty/
Djxpretty.c12 size_t ret; in do_jxpretty() local
22 ret = fread(buf, 1, sizeof(buf), f); in do_jxpretty()
24 fprintf(stderr, "Read: %ld\n", (long) ret); in do_jxpretty()
27 if (ret == 0) { in do_jxpretty()
32 duk_push_lstring(ctx, (const char *) buf, ret); in do_jxpretty()

123