Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Data Structures | |
struct | duk_activation |
struct | duk_catcher |
struct | duk_hthread |
Macros | |
#define | DUK_VALSTACK_GROW_STEP 128 /* roughly 1 kiB */ |
#define | DUK_VALSTACK_SHRINK_THRESHOLD 256 /* roughly 2 kiB */ |
#define | DUK_VALSTACK_SHRINK_SPARE 64 /* roughly 0.5 kiB */ |
#define | DUK_VALSTACK_INITIAL_SIZE 128 /* roughly 1.0 kiB -> but rounds up to DUK_VALSTACK_GROW_STEP in practice */ |
#define | DUK_VALSTACK_INTERNAL_EXTRA |
#define | DUK_VALSTACK_API_ENTRY_MINIMUM DUK_API_ENTRY_STACK |
#define | DUK_VALSTACK_DEFAULT_MAX 1000000L |
#define | DUK_CALLSTACK_GROW_STEP 8 /* roughly 256 bytes */ |
#define | DUK_CALLSTACK_SHRINK_THRESHOLD 16 /* roughly 512 bytes */ |
#define | DUK_CALLSTACK_SHRINK_SPARE 8 /* roughly 256 bytes */ |
#define | DUK_CALLSTACK_INITIAL_SIZE 8 |
#define | DUK_CALLSTACK_DEFAULT_MAX 10000L |
#define | DUK_CATCHSTACK_GROW_STEP 4 /* roughly 64 bytes */ |
#define | DUK_CATCHSTACK_SHRINK_THRESHOLD 8 /* roughly 128 bytes */ |
#define | DUK_CATCHSTACK_SHRINK_SPARE 4 /* roughly 64 bytes */ |
#define | DUK_CATCHSTACK_INITIAL_SIZE 4 |
#define | DUK_CATCHSTACK_DEFAULT_MAX 10000L |
#define | DUK_ACT_FLAG_STRICT (1 << 0) /* function executes in strict mode */ |
#define | DUK_ACT_FLAG_TAILCALLED (1 << 1) /* activation has tail called one or more times */ |
#define | DUK_ACT_FLAG_CONSTRUCT (1 << 2) /* function executes as a constructor (called via "new") */ |
#define | DUK_ACT_FLAG_PREVENT_YIELD (1 << 3) /* activation prevents yield (native call or "new") */ |
#define | DUK_ACT_FLAG_DIRECT_EVAL (1 << 4) /* activation is a direct eval call */ |
#define | DUK_ACT_FLAG_BREAKPOINT_ACTIVE (1 << 5) /* activation has active breakpoint(s) */ |
#define | DUK_ACT_GET_FUNC(act) ((act)->func) |
#define | DUK_TB_FLAG_NOBLAME_FILELINE (1 << 0) /* don't report __FILE__ / __LINE__ as fileName/lineNumber */ |
#define | DUK_CAT_TYPE_MASK 0x0000000fUL |
#define | DUK_CAT_TYPE_BITS 4 |
#define | DUK_CAT_LABEL_MASK 0xffffff00UL |
#define | DUK_CAT_LABEL_BITS 24 |
#define | DUK_CAT_LABEL_SHIFT 8 |
#define | DUK_CAT_FLAG_CATCH_ENABLED (1 << 4) /* catch part will catch */ |
#define | DUK_CAT_FLAG_FINALLY_ENABLED (1 << 5) /* finally part will catch */ |
#define | DUK_CAT_FLAG_CATCH_BINDING_ENABLED (1 << 6) /* request to create catch binding */ |
#define | DUK_CAT_FLAG_LEXENV_ACTIVE (1 << 7) /* catch or with binding is currently active */ |
#define | DUK_CAT_TYPE_UNKNOWN 0 |
#define | DUK_CAT_TYPE_TCF 1 |
#define | DUK_CAT_TYPE_LABEL 2 |
#define | DUK_CAT_GET_TYPE(c) ((c)->flags & DUK_CAT_TYPE_MASK) |
#define | DUK_CAT_GET_LABEL(c) (((c)->flags & DUK_CAT_LABEL_MASK) >> DUK_CAT_LABEL_SHIFT) |
#define | DUK_CAT_HAS_CATCH_ENABLED(c) ((c)->flags & DUK_CAT_FLAG_CATCH_ENABLED) |
#define | DUK_CAT_HAS_FINALLY_ENABLED(c) ((c)->flags & DUK_CAT_FLAG_FINALLY_ENABLED) |
#define | DUK_CAT_HAS_CATCH_BINDING_ENABLED(c) ((c)->flags & DUK_CAT_FLAG_CATCH_BINDING_ENABLED) |
#define | DUK_CAT_HAS_LEXENV_ACTIVE(c) ((c)->flags & DUK_CAT_FLAG_LEXENV_ACTIVE) |
#define | DUK_CAT_SET_CATCH_ENABLED(c) |
#define | DUK_CAT_SET_FINALLY_ENABLED(c) |
#define | DUK_CAT_SET_CATCH_BINDING_ENABLED(c) |
#define | DUK_CAT_SET_LEXENV_ACTIVE(c) |
#define | DUK_CAT_CLEAR_CATCH_ENABLED(c) |
#define | DUK_CAT_CLEAR_FINALLY_ENABLED(c) |
#define | DUK_CAT_CLEAR_CATCH_BINDING_ENABLED(c) |
#define | DUK_CAT_CLEAR_LEXENV_ACTIVE(c) |
#define | DUK_HTHREAD_GET_STRING(thr, idx) ((thr)->strs[(idx)]) |
#define | DUK_HTHREAD_GET_CURRENT_ACTIVATION(thr) (&(thr)->callstack[(thr)->callstack_top - 1]) |
#define | DUK_HTHREAD_STATE_INACTIVE 1 /* thread not currently running */ |
#define | DUK_HTHREAD_STATE_RUNNING 2 /* thread currently running (only one at a time) */ |
#define | DUK_HTHREAD_STATE_RESUMED 3 /* thread resumed another thread (active but not running) */ |
#define | DUK_HTHREAD_STATE_YIELDED 4 /* thread has yielded */ |
#define | DUK_HTHREAD_STATE_TERMINATED 5 /* thread has terminated */ |
#define | DUK_ASSERT_CTX_VSSIZE(ctx) |
#define | DUK_ASSERT_CTX_VALID(ctx) |
#define DUK_ACT_FLAG_BREAKPOINT_ACTIVE (1 << 5) /* activation has active breakpoint(s) */ |
Definition at line 53 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_ACT_FLAG_CONSTRUCT (1 << 2) /* function executes as a constructor (called via "new") */ |
Definition at line 50 of file duktape-1.5.2/src-separate/duk_hthread.h.
Definition at line 52 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_ACT_FLAG_PREVENT_YIELD (1 << 3) /* activation prevents yield (native call or "new") */ |
Definition at line 51 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_ACT_FLAG_STRICT (1 << 0) /* function executes in strict mode */ |
Definition at line 48 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_ACT_FLAG_TAILCALLED (1 << 1) /* activation has tail called one or more times */ |
Definition at line 49 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_ACT_GET_FUNC | ( | act | ) | ((act)->func) |
Definition at line 55 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_ASSERT_CTX_VALID | ( | ctx | ) |
Definition at line 167 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_ASSERT_CTX_VSSIZE | ( | ctx | ) |
Definition at line 163 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_DEFAULT_MAX 10000L |
Definition at line 36 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_GROW_STEP 8 /* roughly 256 bytes */ |
Definition at line 32 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_INITIAL_SIZE 8 |
Definition at line 35 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_SHRINK_SPARE 8 /* roughly 256 bytes */ |
Definition at line 34 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CALLSTACK_SHRINK_THRESHOLD 16 /* roughly 512 bytes */ |
Definition at line 33 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_CLEAR_CATCH_BINDING_ENABLED | ( | c | ) |
Definition at line 110 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_CLEAR_CATCH_ENABLED | ( | c | ) |
Definition at line 104 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_CLEAR_FINALLY_ENABLED | ( | c | ) |
Definition at line 107 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_CLEAR_LEXENV_ACTIVE | ( | c | ) |
Definition at line 113 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_FLAG_CATCH_BINDING_ENABLED (1 << 6) /* request to create catch binding */ |
Definition at line 76 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_FLAG_CATCH_ENABLED (1 << 4) /* catch part will catch */ |
Definition at line 74 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_FLAG_FINALLY_ENABLED (1 << 5) /* finally part will catch */ |
Definition at line 75 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_FLAG_LEXENV_ACTIVE (1 << 7) /* catch or with binding is currently active */ |
Definition at line 77 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_GET_LABEL | ( | c | ) | (((c)->flags & DUK_CAT_LABEL_MASK) >> DUK_CAT_LABEL_SHIFT) |
Definition at line 84 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_GET_TYPE | ( | c | ) | ((c)->flags & DUK_CAT_TYPE_MASK) |
Definition at line 83 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_HAS_CATCH_BINDING_ENABLED | ( | c | ) | ((c)->flags & DUK_CAT_FLAG_CATCH_BINDING_ENABLED) |
Definition at line 88 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_HAS_CATCH_ENABLED | ( | c | ) | ((c)->flags & DUK_CAT_FLAG_CATCH_ENABLED) |
Definition at line 86 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_HAS_FINALLY_ENABLED | ( | c | ) | ((c)->flags & DUK_CAT_FLAG_FINALLY_ENABLED) |
Definition at line 87 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_HAS_LEXENV_ACTIVE | ( | c | ) | ((c)->flags & DUK_CAT_FLAG_LEXENV_ACTIVE) |
Definition at line 89 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_LABEL_BITS 24 |
Definition at line 71 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_LABEL_MASK 0xffffff00UL |
Definition at line 70 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_LABEL_SHIFT 8 |
Definition at line 72 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_SET_CATCH_BINDING_ENABLED | ( | c | ) |
Definition at line 97 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_SET_CATCH_ENABLED | ( | c | ) |
Definition at line 91 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_SET_FINALLY_ENABLED | ( | c | ) |
Definition at line 94 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_SET_LEXENV_ACTIVE | ( | c | ) |
Definition at line 100 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_BITS 4 |
Definition at line 69 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_LABEL 2 |
Definition at line 81 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_MASK 0x0000000fUL |
Definition at line 68 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_TCF 1 |
Definition at line 80 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CAT_TYPE_UNKNOWN 0 |
Definition at line 79 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_DEFAULT_MAX 10000L |
Definition at line 42 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_GROW_STEP 4 /* roughly 64 bytes */ |
Definition at line 38 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_INITIAL_SIZE 4 |
Definition at line 41 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_SHRINK_SPARE 4 /* roughly 64 bytes */ |
Definition at line 40 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_CATCHSTACK_SHRINK_THRESHOLD 8 /* roughly 128 bytes */ |
Definition at line 39 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_HTHREAD_GET_CURRENT_ACTIVATION | ( | thr | ) | (&(thr)->callstack[(thr)->callstack_top - 1]) |
Definition at line 134 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_HTHREAD_GET_STRING | ( | thr, | |
idx ) ((thr)->strs[(idx)]) |
Definition at line 129 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_INACTIVE 1 /* thread not currently running */ |
Definition at line 137 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_RESUMED 3 /* thread resumed another thread (active but not running) */ |
Definition at line 139 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_RUNNING 2 /* thread currently running (only one at a time) */ |
Definition at line 138 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_TERMINATED 5 /* thread has terminated */ |
Definition at line 141 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_HTHREAD_STATE_YIELDED 4 /* thread has yielded */ |
Definition at line 140 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_TB_FLAG_NOBLAME_FILELINE (1 << 0) /* don't report __FILE__ / __LINE__ as fileName/lineNumber */ |
Definition at line 61 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_VALSTACK_API_ENTRY_MINIMUM DUK_API_ENTRY_STACK |
Definition at line 20 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_VALSTACK_DEFAULT_MAX 1000000L |
Definition at line 30 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_VALSTACK_GROW_STEP 128 /* roughly 1 kiB */ |
Definition at line 15 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_VALSTACK_INITIAL_SIZE 128 /* roughly 1.0 kiB -> but rounds up to DUK_VALSTACK_GROW_STEP in practice */ |
Definition at line 18 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_VALSTACK_INTERNAL_EXTRA |
Definition at line 19 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_VALSTACK_SHRINK_SPARE 64 /* roughly 0.5 kiB */ |
Definition at line 17 of file duktape-1.5.2/src-separate/duk_hthread.h.
#define DUK_VALSTACK_SHRINK_THRESHOLD 256 /* roughly 2 kiB */ |
Definition at line 16 of file duktape-1.5.2/src-separate/duk_hthread.h.
DUK_INTERNAL_DECL void duk_hthread_callstack_grow | ( | duk_hthread * | thr | ) |
Definition at line 54177 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_callstack_shrink_check | ( | duk_hthread * | thr | ) |
Definition at line 54217 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_callstack_unwind | ( | duk_hthread * | thr, |
duk_size_t | new_top ) |
Definition at line 54255 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_catchstack_grow | ( | duk_hthread * | thr | ) |
Definition at line 54482 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_catchstack_shrink_check | ( | duk_hthread * | thr | ) |
Definition at line 54522 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_catchstack_unwind | ( | duk_hthread * | thr, |
duk_size_t | new_top ) |
Definition at line 54560 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_copy_builtin_objects | ( | duk_hthread * | thr_from, |
duk_hthread * | thr_to ) |
Definition at line 54036 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_create_builtin_objects | ( | duk_hthread * | thr | ) |
Definition at line 53417 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL duk_uint_fast32_t duk_hthread_get_act_prev_pc | ( | duk_hthread * | thr, |
duk_activation * | act ) |
Definition at line 54106 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void * duk_hthread_get_callstack_ptr | ( | duk_heap * | heap, |
void * | ud ) |
Definition at line 53197 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void * duk_hthread_get_catchstack_ptr | ( | duk_heap * | heap, |
void * | ud ) |
Definition at line 53203 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL duk_activation * duk_hthread_get_current_activation | ( | duk_hthread * | thr | ) |
Definition at line 54079 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void * duk_hthread_get_valstack_ptr | ( | duk_heap * | heap, |
void * | ud ) |
Definition at line 53191 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL duk_bool_t duk_hthread_init_stacks | ( | duk_heap * | heap, |
duk_hthread * | thr ) |
Definition at line 53125 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_sync_and_null_currpc | ( | duk_hthread * | thr | ) |
Definition at line 54139 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_sync_currpc | ( | duk_hthread * | thr | ) |
Definition at line 54126 of file duktape-1.5.2/src-noline/duktape.c.
DUK_INTERNAL_DECL void duk_hthread_terminate | ( | duk_hthread * | thr | ) |
Definition at line 54050 of file duktape-1.5.2/src-noline/duktape.c.