Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 78) sorted by relevance

1234

/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_hobject_props.c76 DUK_LOCAL_DECL duk_bool_t duk__check_arguments_map_for_get(duk_hthread *thr, duk_hobject *obj, duk_…
77 DUK_LOCAL_DECL void duk__check_arguments_map_for_put(duk_hthread *thr, duk_hobject *obj, duk_hstrin…
78 DUK_LOCAL_DECL void duk__check_arguments_map_for_delete(duk_hthread *thr, duk_hobject *obj, duk_hst…
80 DUK_LOCAL_DECL duk_bool_t duk__handle_put_array_length_smaller(duk_hthread *thr, duk_hobject *obj, …
81 DUK_LOCAL_DECL duk_bool_t duk__handle_put_array_length(duk_hthread *thr, duk_hobject *obj);
83 DUK_LOCAL_DECL duk_bool_t duk__get_propdesc(duk_hthread *thr, duk_hobject *obj, duk_hstring *key, d…
84 DUK_LOCAL_DECL duk_bool_t duk__get_own_propdesc_raw(duk_hthread *thr, duk_hobject *obj, duk_hstring…
85 DUK_LOCAL duk_uint32_t duk__get_old_array_length(duk_hthread *thr, duk_hobject *obj, duk_propdesc *…
215 DUK_LOCAL duk_uint32_t duk__count_used_e_keys(duk_hthread *thr, duk_hobject *obj) { in duk__count_used_e_keys() argument
220 DUK_ASSERT(obj != NULL); in duk__count_used_e_keys()
[all …]
Dduk_api_object.c267 duk_hobject *obj; in duk_xdef_prop() local
272 obj = duk_require_hobject(ctx, obj_index); in duk_xdef_prop()
273 DUK_ASSERT(obj != NULL); in duk_xdef_prop()
278 duk_hobject_define_property_internal(thr, obj, key, desc_flags); in duk_xdef_prop()
285 duk_hobject *obj; in duk_xdef_prop_index() local
289 obj = duk_require_hobject(ctx, obj_index); in duk_xdef_prop_index()
290 DUK_ASSERT(obj != NULL); in duk_xdef_prop_index()
292 duk_hobject_define_property_internal_arridx(thr, obj, arr_index, desc_flags); in duk_xdef_prop_index()
298 duk_hobject *obj; in duk_xdef_prop_stridx() local
305 obj = duk_require_hobject(ctx, obj_index); in duk_xdef_prop_stridx()
[all …]
Dduk_hobject_finalizer.c55 DUK_INTERNAL void duk_hobject_run_finalizer(duk_hthread *thr, duk_hobject *obj) { in duk_hobject_run_finalizer() argument
62 DUK_DDD(DUK_DDDPRINT("running object finalizer for object: %p", (void *) obj)); in duk_hobject_run_finalizer()
66 DUK_ASSERT(obj != NULL); in duk_hobject_run_finalizer()
78 DUK_ASSERT(!DUK_HEAPHDR_HAS_READONLY((duk_heaphdr *) obj)); in duk_hobject_run_finalizer()
79 if (DUK_HEAPHDR_HAS_FINALIZED((duk_heaphdr *) obj)) { in duk_hobject_run_finalizer()
80 DUK_D(DUK_DPRINT("object already finalized, avoid running finalizer twice: %!O", obj)); in duk_hobject_run_finalizer()
83 …DUK_HEAPHDR_SET_FINALIZED((duk_heaphdr *) obj); /* ensure never re-entered until rescue cycle com… in duk_hobject_run_finalizer()
84 if (DUK_HOBJECT_HAS_EXOTIC_PROXYOBJ(obj)) { in duk_hobject_run_finalizer()
96 duk_push_hobject(ctx, obj); /* this also increases refcount by one */ in duk_hobject_run_finalizer()
105 (void *) obj, (duk_tval *) duk_get_tval(ctx, -1))); in duk_hobject_run_finalizer()
Dduk_hobject_alloc.c11 DUK_LOCAL void duk__init_object_parts(duk_heap *heap, duk_hobject *obj, duk_uint_t hobject_flags) { in duk__init_object_parts() argument
13 DUK_HOBJECT_SET_PROPS(heap, obj, NULL); in duk__init_object_parts()
17 obj->hdr.h_flags = hobject_flags; in duk__init_object_parts()
18 DUK_HEAPHDR_SET_TYPE(&obj->hdr, DUK_HTYPE_OBJECT); /* also goes into flags */ in duk__init_object_parts()
22 DUK_HEAPHDR_SET_NEXT(heap, &obj->hdr, NULL); in duk__init_object_parts()
24 DUK_HEAPHDR_SET_PREV(heap, &obj->hdr, NULL); in duk__init_object_parts()
27 DUK_ASSERT_HEAPHDR_LINKS(heap, &obj->hdr); in duk__init_object_parts()
28 DUK_HEAP_INSERT_INTO_HEAP_ALLOCATED(heap, &obj->hdr); in duk__init_object_parts()
79 duk__init_object_parts(heap, &res->obj, hobject_flags); in duk_hcompiledfunction_alloc()
103 duk__init_object_parts(heap, &res->obj, hobject_flags); in duk_hnativefunction_alloc()
[all …]
Dduk_bi_object.c200 duk_hobject *obj; in duk_bi_object_constructor_define_property() local
221 obj = duk_require_hobject_or_lfunc_coerce(ctx, 0); in duk_bi_object_constructor_define_property()
226 DUK_ASSERT(obj != NULL); in duk_bi_object_constructor_define_property()
251 obj, in duk_bi_object_constructor_define_property()
265 duk_push_hobject(ctx, obj); in duk_bi_object_constructor_define_property()
272 duk_hobject *obj; in duk_bi_object_constructor_define_properties() local
278 obj = duk_require_hobject_or_lfunc_coerce(ctx, 0); /* target */ in duk_bi_object_constructor_define_properties()
279 DUK_ASSERT(obj != NULL); in duk_bi_object_constructor_define_properties()
336 obj, in duk_bi_object_constructor_define_properties()
428 duk_hobject *obj; in duk_bi_object_constructor_keys_shared() local
[all …]
Dduk_debug_heap.c47 DUK_LOCAL void duk__dump_indented(duk_heaphdr *obj, int index) {
48 DUK_UNREF(obj);
55 (void *) obj,
56 (const char *) duk__get_heap_type_string(obj),
57 (unsigned long) DUK_HEAPHDR_GET_FLAGS(obj),
58 (long) DUK_HEAPHDR_GET_REFCOUNT(obj),
59 (duk_heaphdr *) obj));
63 (void *) obj,
64 (const char *) duk__get_heap_type_string(obj),
65 (unsigned long) DUK_HEAPHDR_GET_FLAGS(obj),
[all …]
Dduk_js_var.c137 duk_push_hobject(ctx, &fun_temp->obj); /* -> [ ... closure template ] */ in duk_js_push_closure()
172 DUK_HOBJECT_SET_PROTOTYPE_UPDREF(thr, &fun_clos->obj, thr->builtins[DUK_BIDX_FUNCTION_PROTOTYPE]); in duk_js_push_closure()
181 DUK_ASSERT(DUK_HOBJECT_HAS_EXTENSIBLE(&fun_clos->obj)); in duk_js_push_closure()
182 …DUK_HOBJECT_SET_CONSTRUCTABLE(&fun_clos->obj); /* Note: not set in template (has no "prototype") … in duk_js_push_closure()
183 DUK_ASSERT(DUK_HOBJECT_HAS_CONSTRUCTABLE(&fun_clos->obj)); in duk_js_push_closure()
184 DUK_ASSERT(!DUK_HOBJECT_HAS_BOUND(&fun_clos->obj)); in duk_js_push_closure()
185 DUK_ASSERT(DUK_HOBJECT_HAS_COMPILEDFUNCTION(&fun_clos->obj)); in duk_js_push_closure()
186 DUK_ASSERT(!DUK_HOBJECT_HAS_NATIVEFUNCTION(&fun_clos->obj)); in duk_js_push_closure()
187 DUK_ASSERT(!DUK_HOBJECT_HAS_THREAD(&fun_clos->obj)); in duk_js_push_closure()
189 if (DUK_HOBJECT_HAS_STRICT(&fun_temp->obj)) { in duk_js_push_closure()
[all …]
Dduk_error_augment.c448 …ck, const char *c_filename, duk_int_t c_line, duk_small_int_t noblame_fileline, duk_hobject *obj) { in duk__err_augment_builtin_create() argument
457 DUK_ASSERT(obj != NULL); in duk__err_augment_builtin_create()
459 DUK_UNREF(obj); /* unreferenced w/o tracebacks */ in duk__err_augment_builtin_create()
469 if (duk_hobject_hasprop_raw(thr, obj, DUK_HTHREAD_STRING_INT_TRACEDATA(thr))) { in duk__err_augment_builtin_create()
507 duk_hobject *obj; in duk_err_augment_error_create() local
527 obj = duk_get_hobject(ctx, -1); in duk_err_augment_error_create()
528 if (!obj) { in duk_err_augment_error_create()
532 …if (!duk_hobject_prototype_chain_contains(thr, obj, thr->builtins[DUK_BIDX_ERROR_PROTOTYPE], 1 /*i… in duk_err_augment_error_create()
540 if (DUK_HOBJECT_HAS_EXTENSIBLE(obj)) { in duk_err_augment_error_create()
542 duk__err_augment_builtin_create(thr, thr_callstack, c_filename, c_line, noblame_fileline, obj); in duk_err_augment_error_create()
Dduk_hobject.h840 DUK_INTERNAL_DECL void duk_hobject_find_existing_entry(duk_heap *heap, duk_hobject *obj, duk_hstrin…
841 …tval *duk_hobject_find_existing_entry_tval_ptr(duk_heap *heap, duk_hobject *obj, duk_hstring *key);
842 …object_find_existing_entry_tval_ptr_and_attrs(duk_heap *heap, duk_hobject *obj, duk_hstring *key, …
843 …*duk_hobject_find_existing_array_entry_tval_ptr(duk_heap *heap, duk_hobject *obj, duk_uarridx_t i);
844 DUK_INTERNAL_DECL duk_bool_t duk_hobject_get_own_propdesc(duk_hthread *thr, duk_hobject *obj, duk_h…
849 #define duk_hobject_get_internal_value_tval_ptr(heap,obj) \ argument
850 duk_hobject_find_existing_entry_tval_ptr((heap), (obj), DUK_HEAP_STRING_INT_VALUE((heap)))
861 DUK_INTERNAL_DECL duk_bool_t duk_hobject_delprop_raw(duk_hthread *thr, duk_hobject *obj, duk_hstrin…
862 DUK_INTERNAL_DECL duk_bool_t duk_hobject_hasprop_raw(duk_hthread *thr, duk_hobject *obj, duk_hstrin…
863 DUK_INTERNAL_DECL void duk_hobject_define_property_internal(duk_hthread *thr, duk_hobject *obj, duk…
[all …]
Dduk_heap_refcount.c188 DUK_LOCAL void duk__refcount_run_torture_finalizer(duk_hthread *thr, duk_hobject *obj) { in duk__refcount_run_torture_finalizer() argument
193 DUK_ASSERT(obj != NULL); in duk__refcount_run_torture_finalizer()
199 if (DUK_HOBJECT_HAS_NATIVEFUNCTION(obj)) { in duk__refcount_run_torture_finalizer()
200 if (((duk_hnativefunction *) obj)->func == duk__refcount_fake_finalizer) { in duk__refcount_run_torture_finalizer()
219 duk_push_hobject(ctx, obj); in duk__refcount_run_torture_finalizer()
262 duk_hobject *obj; in duk__refzero_free_pending() local
270 obj = (duk_hobject *) h1; in duk__refzero_free_pending()
284 duk__refcount_run_torture_finalizer(thr, obj); /* must never longjmp */ in duk__refzero_free_pending()
308 if (duk_hobject_hasprop_raw(thr, obj, DUK_HTHREAD_STRING_INT_FINALIZER(thr))) { in duk__refzero_free_pending()
314 duk_hobject_run_finalizer(thr, obj); /* must never longjmp */ in duk__refzero_free_pending()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_hobject_props.c76 DUK_LOCAL_DECL duk_bool_t duk__check_arguments_map_for_get(duk_hthread *thr, duk_hobject *obj, duk_…
77 DUK_LOCAL_DECL void duk__check_arguments_map_for_put(duk_hthread *thr, duk_hobject *obj, duk_hstrin…
78 DUK_LOCAL_DECL void duk__check_arguments_map_for_delete(duk_hthread *thr, duk_hobject *obj, duk_hst…
80 DUK_LOCAL_DECL duk_bool_t duk__handle_put_array_length_smaller(duk_hthread *thr, duk_hobject *obj, …
81 DUK_LOCAL_DECL duk_bool_t duk__handle_put_array_length(duk_hthread *thr, duk_hobject *obj);
83 DUK_LOCAL_DECL duk_bool_t duk__get_propdesc(duk_hthread *thr, duk_hobject *obj, duk_hstring *key, d…
84 DUK_LOCAL_DECL duk_bool_t duk__get_own_propdesc_raw(duk_hthread *thr, duk_hobject *obj, duk_hstring…
85 DUK_LOCAL duk_uint32_t duk__get_old_array_length(duk_hthread *thr, duk_hobject *obj, duk_propdesc *…
215 DUK_LOCAL duk_uint32_t duk__count_used_e_keys(duk_hthread *thr, duk_hobject *obj) { in duk__count_used_e_keys() argument
220 DUK_ASSERT(obj != NULL); in duk__count_used_e_keys()
[all …]
Dduk_api_object.c267 duk_hobject *obj; in duk_xdef_prop() local
272 obj = duk_require_hobject(ctx, obj_index); in duk_xdef_prop()
273 DUK_ASSERT(obj != NULL); in duk_xdef_prop()
278 duk_hobject_define_property_internal(thr, obj, key, desc_flags); in duk_xdef_prop()
285 duk_hobject *obj; in duk_xdef_prop_index() local
289 obj = duk_require_hobject(ctx, obj_index); in duk_xdef_prop_index()
290 DUK_ASSERT(obj != NULL); in duk_xdef_prop_index()
292 duk_hobject_define_property_internal_arridx(thr, obj, arr_index, desc_flags); in duk_xdef_prop_index()
298 duk_hobject *obj; in duk_xdef_prop_stridx() local
305 obj = duk_require_hobject(ctx, obj_index); in duk_xdef_prop_stridx()
[all …]
Dduk_hobject_finalizer.c55 DUK_INTERNAL void duk_hobject_run_finalizer(duk_hthread *thr, duk_hobject *obj) { in duk_hobject_run_finalizer() argument
62 DUK_DDD(DUK_DDDPRINT("running object finalizer for object: %p", (void *) obj)); in duk_hobject_run_finalizer()
66 DUK_ASSERT(obj != NULL); in duk_hobject_run_finalizer()
78 DUK_ASSERT(!DUK_HEAPHDR_HAS_READONLY((duk_heaphdr *) obj)); in duk_hobject_run_finalizer()
79 if (DUK_HEAPHDR_HAS_FINALIZED((duk_heaphdr *) obj)) { in duk_hobject_run_finalizer()
80 DUK_D(DUK_DPRINT("object already finalized, avoid running finalizer twice: %!O", obj)); in duk_hobject_run_finalizer()
83 …DUK_HEAPHDR_SET_FINALIZED((duk_heaphdr *) obj); /* ensure never re-entered until rescue cycle com… in duk_hobject_run_finalizer()
84 if (DUK_HOBJECT_HAS_EXOTIC_PROXYOBJ(obj)) { in duk_hobject_run_finalizer()
96 duk_push_hobject(ctx, obj); /* this also increases refcount by one */ in duk_hobject_run_finalizer()
105 (void *) obj, (duk_tval *) duk_get_tval(ctx, -1))); in duk_hobject_run_finalizer()
Dduk_hobject_alloc.c11 DUK_LOCAL void duk__init_object_parts(duk_heap *heap, duk_hobject *obj, duk_uint_t hobject_flags) { in duk__init_object_parts() argument
13 DUK_HOBJECT_SET_PROPS(heap, obj, NULL); in duk__init_object_parts()
17 obj->hdr.h_flags = hobject_flags; in duk__init_object_parts()
18 DUK_HEAPHDR_SET_TYPE(&obj->hdr, DUK_HTYPE_OBJECT); /* also goes into flags */ in duk__init_object_parts()
22 DUK_HEAPHDR_SET_NEXT(heap, &obj->hdr, NULL); in duk__init_object_parts()
24 DUK_HEAPHDR_SET_PREV(heap, &obj->hdr, NULL); in duk__init_object_parts()
27 DUK_ASSERT_HEAPHDR_LINKS(heap, &obj->hdr); in duk__init_object_parts()
28 DUK_HEAP_INSERT_INTO_HEAP_ALLOCATED(heap, &obj->hdr); in duk__init_object_parts()
79 duk__init_object_parts(heap, &res->obj, hobject_flags); in duk_hcompiledfunction_alloc()
103 duk__init_object_parts(heap, &res->obj, hobject_flags); in duk_hnativefunction_alloc()
[all …]
Dduk_bi_object.c200 duk_hobject *obj; in duk_bi_object_constructor_define_property() local
221 obj = duk_require_hobject_or_lfunc_coerce(ctx, 0); in duk_bi_object_constructor_define_property()
226 DUK_ASSERT(obj != NULL); in duk_bi_object_constructor_define_property()
251 obj, in duk_bi_object_constructor_define_property()
265 duk_push_hobject(ctx, obj); in duk_bi_object_constructor_define_property()
272 duk_hobject *obj; in duk_bi_object_constructor_define_properties() local
278 obj = duk_require_hobject_or_lfunc_coerce(ctx, 0); /* target */ in duk_bi_object_constructor_define_properties()
279 DUK_ASSERT(obj != NULL); in duk_bi_object_constructor_define_properties()
336 obj, in duk_bi_object_constructor_define_properties()
428 duk_hobject *obj; in duk_bi_object_constructor_keys_shared() local
[all …]
Dduk_debug_heap.c47 DUK_LOCAL void duk__dump_indented(duk_heaphdr *obj, int index) {
48 DUK_UNREF(obj);
55 (void *) obj,
56 (const char *) duk__get_heap_type_string(obj),
57 (unsigned long) DUK_HEAPHDR_GET_FLAGS(obj),
58 (long) DUK_HEAPHDR_GET_REFCOUNT(obj),
59 (duk_heaphdr *) obj));
63 (void *) obj,
64 (const char *) duk__get_heap_type_string(obj),
65 (unsigned long) DUK_HEAPHDR_GET_FLAGS(obj),
[all …]
Dduk_js_var.c137 duk_push_hobject(ctx, &fun_temp->obj); /* -> [ ... closure template ] */ in duk_js_push_closure()
172 DUK_HOBJECT_SET_PROTOTYPE_UPDREF(thr, &fun_clos->obj, thr->builtins[DUK_BIDX_FUNCTION_PROTOTYPE]); in duk_js_push_closure()
181 DUK_ASSERT(DUK_HOBJECT_HAS_EXTENSIBLE(&fun_clos->obj)); in duk_js_push_closure()
182 …DUK_HOBJECT_SET_CONSTRUCTABLE(&fun_clos->obj); /* Note: not set in template (has no "prototype") … in duk_js_push_closure()
183 DUK_ASSERT(DUK_HOBJECT_HAS_CONSTRUCTABLE(&fun_clos->obj)); in duk_js_push_closure()
184 DUK_ASSERT(!DUK_HOBJECT_HAS_BOUND(&fun_clos->obj)); in duk_js_push_closure()
185 DUK_ASSERT(DUK_HOBJECT_HAS_COMPILEDFUNCTION(&fun_clos->obj)); in duk_js_push_closure()
186 DUK_ASSERT(!DUK_HOBJECT_HAS_NATIVEFUNCTION(&fun_clos->obj)); in duk_js_push_closure()
187 DUK_ASSERT(!DUK_HOBJECT_HAS_THREAD(&fun_clos->obj)); in duk_js_push_closure()
189 if (DUK_HOBJECT_HAS_STRICT(&fun_temp->obj)) { in duk_js_push_closure()
[all …]
Dduk_error_augment.c448 …ck, const char *c_filename, duk_int_t c_line, duk_small_int_t noblame_fileline, duk_hobject *obj) { in duk__err_augment_builtin_create() argument
457 DUK_ASSERT(obj != NULL); in duk__err_augment_builtin_create()
459 DUK_UNREF(obj); /* unreferenced w/o tracebacks */ in duk__err_augment_builtin_create()
469 if (duk_hobject_hasprop_raw(thr, obj, DUK_HTHREAD_STRING_INT_TRACEDATA(thr))) { in duk__err_augment_builtin_create()
507 duk_hobject *obj; in duk_err_augment_error_create() local
527 obj = duk_get_hobject(ctx, -1); in duk_err_augment_error_create()
528 if (!obj) { in duk_err_augment_error_create()
532 …if (!duk_hobject_prototype_chain_contains(thr, obj, thr->builtins[DUK_BIDX_ERROR_PROTOTYPE], 1 /*i… in duk_err_augment_error_create()
540 if (DUK_HOBJECT_HAS_EXTENSIBLE(obj)) { in duk_err_augment_error_create()
542 duk__err_augment_builtin_create(thr, thr_callstack, c_filename, c_line, noblame_fileline, obj); in duk_err_augment_error_create()
Dduk_hobject.h840 DUK_INTERNAL_DECL void duk_hobject_find_existing_entry(duk_heap *heap, duk_hobject *obj, duk_hstrin…
841 …tval *duk_hobject_find_existing_entry_tval_ptr(duk_heap *heap, duk_hobject *obj, duk_hstring *key);
842 …object_find_existing_entry_tval_ptr_and_attrs(duk_heap *heap, duk_hobject *obj, duk_hstring *key, …
843 …*duk_hobject_find_existing_array_entry_tval_ptr(duk_heap *heap, duk_hobject *obj, duk_uarridx_t i);
844 DUK_INTERNAL_DECL duk_bool_t duk_hobject_get_own_propdesc(duk_hthread *thr, duk_hobject *obj, duk_h…
849 #define duk_hobject_get_internal_value_tval_ptr(heap,obj) \ argument
850 duk_hobject_find_existing_entry_tval_ptr((heap), (obj), DUK_HEAP_STRING_INT_VALUE((heap)))
861 DUK_INTERNAL_DECL duk_bool_t duk_hobject_delprop_raw(duk_hthread *thr, duk_hobject *obj, duk_hstrin…
862 DUK_INTERNAL_DECL duk_bool_t duk_hobject_hasprop_raw(duk_hthread *thr, duk_hobject *obj, duk_hstrin…
863 DUK_INTERNAL_DECL void duk_hobject_define_property_internal(duk_hthread *thr, duk_hobject *obj, duk…
[all …]
Dduk_heap_refcount.c188 DUK_LOCAL void duk__refcount_run_torture_finalizer(duk_hthread *thr, duk_hobject *obj) { in duk__refcount_run_torture_finalizer() argument
193 DUK_ASSERT(obj != NULL); in duk__refcount_run_torture_finalizer()
199 if (DUK_HOBJECT_HAS_NATIVEFUNCTION(obj)) { in duk__refcount_run_torture_finalizer()
200 if (((duk_hnativefunction *) obj)->func == duk__refcount_fake_finalizer) { in duk__refcount_run_torture_finalizer()
219 duk_push_hobject(ctx, obj); in duk__refcount_run_torture_finalizer()
262 duk_hobject *obj; in duk__refzero_free_pending() local
270 obj = (duk_hobject *) h1; in duk__refzero_free_pending()
284 duk__refcount_run_torture_finalizer(thr, obj); /* must never longjmp */ in duk__refzero_free_pending()
308 if (duk_hobject_hasprop_raw(thr, obj, DUK_HTHREAD_STRING_INT_FINALIZER(thr))) { in duk__refzero_free_pending()
314 duk_hobject_run_finalizer(thr, obj); /* must never longjmp */ in duk__refzero_free_pending()
[all …]
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/
Dlobject.h108 #define checkconsistency(obj) \ argument
109 lua_assert(!iscollectable(obj) || (ttype(obj) == (obj)->value.gc->gch.tt))
111 #define checkliveness(g,obj) \ argument
112 lua_assert(!iscollectable(obj) || \
113 ((ttype(obj) == (obj)->value.gc->gch.tt) && !isdead(g, (obj)->value.gc)))
117 #define setnilvalue(obj) ((obj)->tt=LUA_TNIL) argument
119 #define setnvalue(obj,x) \ argument
120 { TValue *i_o=(obj); i_o->value.n=(x); i_o->tt=LUA_TNUMBER; }
122 #define setpvalue(obj,x) \ argument
123 { TValue *i_o=(obj); i_o->value.p=(x); i_o->tt=LUA_TLIGHTUSERDATA; }
[all …]
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/
Dlobject.h188 #define righttt(obj) (ttype(obj) == gcvalue(obj)->tt) argument
190 #define checkliveness(L,obj) \ argument
191 lua_longassert(!iscollectable(obj) || \
192 (righttt(obj) && (L == NULL || !isdead(G(L),gcvalue(obj)))))
198 #define setfltvalue(obj,x) \ argument
199 { TValue *io=(obj); val_(io).n=(x); settt_(io, LUA_TNUMFLT); }
201 #define chgfltvalue(obj,x) \ argument
202 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); }
204 #define setivalue(obj,x) \ argument
205 { TValue *io=(obj); val_(io).i=(x); settt_(io, LUA_TNUMINT); }
[all …]
/civetweb-2.7.6/src/third_party/lua-5.1.5/etc/
Dluavs.bat13 del lua.obj luac.obj
14 %MYLINK% /DLL /out:lua51.dll l*.obj
18 %MYLINK% /out:lua.exe lua.obj lua51.lib
22 del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^
23 loslib.obj ltablib.obj lstrlib.obj loadlib.obj
24 %MYLINK% /out:luac.exe *.obj
27 del *.obj *.manifest
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/
Dlobject.h177 #define righttt(obj) (ttype(obj) == gcvalue(obj)->gch.tt) argument
179 #define checkliveness(g,obj) \ argument
180 lua_longassert(!iscollectable(obj) || \
181 (righttt(obj) && !isdead(g,gcvalue(obj))))
187 #define setnvalue(obj,x) \ argument
188 { TValue *io=(obj); num_(io)=(x); settt_(io, LUA_TNUMBER); }
190 #define setnilvalue(obj) settt_(obj, LUA_TNIL) argument
192 #define setfvalue(obj,x) \ argument
193 { TValue *io=(obj); val_(io).f=(x); settt_(io, LUA_TLCF); }
195 #define setpvalue(obj,x) \ argument
[all …]
/civetweb-2.7.6/examples/rest/
Drest.c60 cJSON *obj = cJSON_CreateObject(); in ExampleGET() local
62 if (!obj) { in ExampleGET()
69 cJSON_AddStringToObject(obj, "version", CIVETWEB_VERSION); in ExampleGET()
70 cJSON_AddNumberToObject(obj, "request", ++request); in ExampleGET()
71 SendJSON(conn, obj); in ExampleGET()
72 cJSON_Delete(obj); in ExampleGET()
96 cJSON *obj, *elem; in ExamplePUT() local
105 obj = cJSON_Parse(buffer); in ExamplePUT()
106 if (obj == NULL) { in ExamplePUT()
111 elem = cJSON_GetObjectItemCaseSensitive(obj, "request"); in ExamplePUT()
[all …]

1234