/dports/sysutils/cfengine317/cfengine-3.17.0/libntech/tests/unit/ |
H A D | stack_test.c | 61 Stack *new_stack = StackCopy(stack); in test_copy() local 63 assert(new_stack != NULL); in test_copy() 82 StackPush(new_stack, xstrdup("1")); in test_copy() 83 StackPush(new_stack, xstrdup("2")); in test_copy() 84 StackPush(new_stack, xstrdup("3")); in test_copy() 85 StackPush(new_stack, xstrdup("4")); in test_copy() 86 StackPush(new_stack, xstrdup("5")); in test_copy() 91 new_str1 = StackPop(new_stack); in test_copy() 92 new_str2 = StackPop(new_stack); in test_copy() 93 new_str3 = StackPop(new_stack); in test_copy() [all …]
|
H A D | threaded_stack_test.c | 52 assert(new_stack != NULL); in test_copy() 71 ThreadedStackPush(new_stack, xstrdup("1")); in test_copy() 72 ThreadedStackPush(new_stack, xstrdup("2")); in test_copy() 73 ThreadedStackPush(new_stack, xstrdup("3")); in test_copy() 74 ThreadedStackPush(new_stack, xstrdup("4")); in test_copy() 75 ThreadedStackPush(new_stack, xstrdup("5")); in test_copy() 80 new_str1 = ThreadedStackPop(new_stack); in test_copy() 81 new_str2 = ThreadedStackPop(new_stack); in test_copy() 82 new_str3 = ThreadedStackPop(new_stack); in test_copy() 83 char *new_str4 = ThreadedStackPop(new_stack); in test_copy() [all …]
|
/dports/sysutils/cfengine/cfengine-3.19.0/libntech/tests/unit/ |
H A D | threaded_stack_test.c | 52 assert(new_stack != NULL); in test_copy() 71 ThreadedStackPush(new_stack, xstrdup("1")); in test_copy() 72 ThreadedStackPush(new_stack, xstrdup("2")); in test_copy() 73 ThreadedStackPush(new_stack, xstrdup("3")); in test_copy() 74 ThreadedStackPush(new_stack, xstrdup("4")); in test_copy() 75 ThreadedStackPush(new_stack, xstrdup("5")); in test_copy() 80 new_str1 = ThreadedStackPop(new_stack); in test_copy() 81 new_str2 = ThreadedStackPop(new_stack); in test_copy() 82 new_str3 = ThreadedStackPop(new_stack); in test_copy() 83 char *new_str4 = ThreadedStackPop(new_stack); in test_copy() [all …]
|
H A D | stack_test.c | 61 Stack *new_stack = StackCopy(stack); in test_copy() local 63 assert(new_stack != NULL); in test_copy() 82 StackPush(new_stack, xstrdup("1")); in test_copy() 83 StackPush(new_stack, xstrdup("2")); in test_copy() 84 StackPush(new_stack, xstrdup("3")); in test_copy() 85 StackPush(new_stack, xstrdup("4")); in test_copy() 86 StackPush(new_stack, xstrdup("5")); in test_copy() 91 new_str1 = StackPop(new_stack); in test_copy() 92 new_str2 = StackPop(new_stack); in test_copy() 93 new_str3 = StackPop(new_stack); in test_copy() [all …]
|
/dports/sysutils/cfengine316/cfengine-3.16.0/libntech/tests/unit/ |
H A D | threaded_stack_test.c | 52 assert(new_stack != NULL); in test_copy() 71 ThreadedStackPush(new_stack, xstrdup("1")); in test_copy() 72 ThreadedStackPush(new_stack, xstrdup("2")); in test_copy() 73 ThreadedStackPush(new_stack, xstrdup("3")); in test_copy() 74 ThreadedStackPush(new_stack, xstrdup("4")); in test_copy() 75 ThreadedStackPush(new_stack, xstrdup("5")); in test_copy() 80 new_str1 = ThreadedStackPop(new_stack); in test_copy() 81 new_str2 = ThreadedStackPop(new_stack); in test_copy() 82 new_str3 = ThreadedStackPop(new_stack); in test_copy() 83 char *new_str4 = ThreadedStackPop(new_stack); in test_copy() [all …]
|
H A D | stack_test.c | 61 Stack *new_stack = StackCopy(stack); in test_copy() local 63 assert(new_stack != NULL); in test_copy() 82 StackPush(new_stack, xstrdup("1")); in test_copy() 83 StackPush(new_stack, xstrdup("2")); in test_copy() 84 StackPush(new_stack, xstrdup("3")); in test_copy() 85 StackPush(new_stack, xstrdup("4")); in test_copy() 86 StackPush(new_stack, xstrdup("5")); in test_copy() 91 new_str1 = StackPop(new_stack); in test_copy() 92 new_str2 = StackPop(new_stack); in test_copy() 93 new_str3 = StackPop(new_stack); in test_copy() [all …]
|
/dports/sysutils/cfengine-devel/core-d08ae9eff/libntech/tests/unit/ |
H A D | threaded_stack_test.c | 52 assert(new_stack != NULL); in test_copy() 71 ThreadedStackPush(new_stack, xstrdup("1")); in test_copy() 72 ThreadedStackPush(new_stack, xstrdup("2")); in test_copy() 73 ThreadedStackPush(new_stack, xstrdup("3")); in test_copy() 74 ThreadedStackPush(new_stack, xstrdup("4")); in test_copy() 75 ThreadedStackPush(new_stack, xstrdup("5")); in test_copy() 80 new_str1 = ThreadedStackPop(new_stack); in test_copy() 81 new_str2 = ThreadedStackPop(new_stack); in test_copy() 82 new_str3 = ThreadedStackPop(new_stack); in test_copy() 83 char *new_str4 = ThreadedStackPop(new_stack); in test_copy() [all …]
|
H A D | stack_test.c | 61 Stack *new_stack = StackCopy(stack); in test_copy() local 63 assert(new_stack != NULL); in test_copy() 82 StackPush(new_stack, xstrdup("1")); in test_copy() 83 StackPush(new_stack, xstrdup("2")); in test_copy() 84 StackPush(new_stack, xstrdup("3")); in test_copy() 85 StackPush(new_stack, xstrdup("4")); in test_copy() 86 StackPush(new_stack, xstrdup("5")); in test_copy() 91 new_str1 = StackPop(new_stack); in test_copy() 92 new_str2 = StackPop(new_stack); in test_copy() 93 new_str3 = StackPop(new_stack); in test_copy() [all …]
|
/dports/sysutils/cfengine318/cfengine-3.18.1/libntech/tests/unit/ |
H A D | threaded_stack_test.c | 52 assert(new_stack != NULL); in test_copy() 71 ThreadedStackPush(new_stack, xstrdup("1")); in test_copy() 72 ThreadedStackPush(new_stack, xstrdup("2")); in test_copy() 73 ThreadedStackPush(new_stack, xstrdup("3")); in test_copy() 74 ThreadedStackPush(new_stack, xstrdup("4")); in test_copy() 75 ThreadedStackPush(new_stack, xstrdup("5")); in test_copy() 80 new_str1 = ThreadedStackPop(new_stack); in test_copy() 81 new_str2 = ThreadedStackPop(new_stack); in test_copy() 82 new_str3 = ThreadedStackPop(new_stack); in test_copy() 83 char *new_str4 = ThreadedStackPop(new_stack); in test_copy() [all …]
|
H A D | stack_test.c | 61 Stack *new_stack = StackCopy(stack); in test_copy() local 63 assert(new_stack != NULL); in test_copy() 82 StackPush(new_stack, xstrdup("1")); in test_copy() 83 StackPush(new_stack, xstrdup("2")); in test_copy() 84 StackPush(new_stack, xstrdup("3")); in test_copy() 85 StackPush(new_stack, xstrdup("4")); in test_copy() 86 StackPush(new_stack, xstrdup("5")); in test_copy() 91 new_str1 = StackPop(new_stack); in test_copy() 92 new_str2 = StackPop(new_stack); in test_copy() 93 new_str3 = StackPop(new_stack); in test_copy() [all …]
|
/dports/sysutils/cfengine319/cfengine-3.19.0/libntech/tests/unit/ |
H A D | threaded_stack_test.c | 52 assert(new_stack != NULL); in test_copy() 71 ThreadedStackPush(new_stack, xstrdup("1")); in test_copy() 72 ThreadedStackPush(new_stack, xstrdup("2")); in test_copy() 73 ThreadedStackPush(new_stack, xstrdup("3")); in test_copy() 74 ThreadedStackPush(new_stack, xstrdup("4")); in test_copy() 75 ThreadedStackPush(new_stack, xstrdup("5")); in test_copy() 80 new_str1 = ThreadedStackPop(new_stack); in test_copy() 81 new_str2 = ThreadedStackPop(new_stack); in test_copy() 82 new_str3 = ThreadedStackPop(new_stack); in test_copy() 83 char *new_str4 = ThreadedStackPop(new_stack); in test_copy() [all …]
|
H A D | stack_test.c | 61 Stack *new_stack = StackCopy(stack); in test_copy() local 63 assert(new_stack != NULL); in test_copy() 82 StackPush(new_stack, xstrdup("1")); in test_copy() 83 StackPush(new_stack, xstrdup("2")); in test_copy() 84 StackPush(new_stack, xstrdup("3")); in test_copy() 85 StackPush(new_stack, xstrdup("4")); in test_copy() 86 StackPush(new_stack, xstrdup("5")); in test_copy() 91 new_str1 = StackPop(new_stack); in test_copy() 92 new_str2 = StackPop(new_stack); in test_copy() 93 new_str3 = StackPop(new_stack); in test_copy() [all …]
|
/dports/emulators/bochs/bochs-2.7/cpu/ |
H A D | exception.cc | 498 bx_segment_reg_t new_stack; in protected_mode_int() local 499 new_stack.selector = ss_selector; in protected_mode_int() 500 new_stack.cache = ss_descriptor; in protected_mode_int() 501 new_stack.selector.rpl = cs_descriptor.dpl; in protected_mode_int() 503 new_stack.selector.value = (0xfffc & new_stack.selector.value) | new_stack.selector.rpl; in protected_mode_int() 511 write_new_stack_dword(&new_stack, temp_ESP-4, cs_descriptor.dpl, in protected_mode_int() 513 write_new_stack_dword(&new_stack, temp_ESP-8, cs_descriptor.dpl, in protected_mode_int() 522 write_new_stack_word(&new_stack, temp_ESP-2, cs_descriptor.dpl, in protected_mode_int() 524 write_new_stack_word(&new_stack, temp_ESP-4, cs_descriptor.dpl, in protected_mode_int() 526 write_new_stack_word(&new_stack, temp_ESP-6, cs_descriptor.dpl, in protected_mode_int() [all …]
|
H A D | call_far.cc | 347 bx_segment_reg_t new_stack; in call_gate() local 348 new_stack.selector = ss_selector; in call_gate() 349 new_stack.cache = ss_descriptor; in call_gate() 350 new_stack.selector.rpl = cs_descriptor.dpl; in call_gate() 352 new_stack.selector.value = (0xfffc & new_stack.selector.value) | in call_gate() 353 new_stack.selector.rpl; in call_gate() 368 write_new_stack_dword(&new_stack, temp_ESP, cs_descriptor.dpl, param); in call_gate() 376 write_new_stack_word(&new_stack, temp_ESP-2, cs_descriptor.dpl, return_SS); in call_gate() 383 write_new_stack_word(&new_stack, temp_ESP, cs_descriptor.dpl, param); in call_gate() 405 write_new_stack_dword(&new_stack, temp_SP, cs_descriptor.dpl, param); in call_gate() [all …]
|
/dports/graphics/box/box-0.4.0/libs/g/ |
H A D | formatter.c | 98 BoxGFmtStack new_stack; in _Text_Formatter() local 166 new_stack = *stack; in _Text_Formatter() 167 ++new_stack.level; in _Text_Formatter() 169 _Subscript(fmt, & new_stack); in _Text_Formatter() 171 _Superscript(fmt, & new_stack); in _Text_Formatter() 178 new_stack.short_text[0] = c; in _Text_Formatter() 179 new_stack.short_text[1] = '}'; in _Text_Formatter() 180 new_stack.short_text[2] = '\0'; in _Text_Formatter() 181 new_stack.text = new_stack.short_text; in _Text_Formatter() 182 new_stack.eye = 0; in _Text_Formatter() [all …]
|
/dports/games/tty-solitaire/tty-solitaire-1.3.1/src/ |
H A D | stack.c | 34 struct stack *tmp_stack, *new_stack; in stack_dup() local 36 stack_malloc(&new_stack); in stack_dup() 38 stack_init(new_stack); in stack_dup() 44 stack_push(&new_stack, (stack_pop(&tmp_stack))); in stack_dup() 48 return(new_stack); in stack_dup() 77 struct stack *new_stack = malloc(sizeof(*new_stack)); in stack_push() local 78 new_stack->card = card; in stack_push() 79 new_stack->next = (*stack); in stack_push() 80 *stack = new_stack; in stack_push()
|
/dports/lang/ghc/ghc-8.10.7/rts/ |
H A D | Threads.c | 527 StgStack *new_stack, *old_stack; in threadStackOverflow() local 624 new_stack->marking = 0; in threadStackOverflow() 626 new_stack->sp = new_stack->stack + new_stack->stack_size; in threadStackOverflow() 688 new_stack->sp -= chunk_words; in threadStackOverflow() 693 tso->stackobj = new_stack; in threadStackOverflow() 696 dirty_STACK(cap, new_stack); in threadStackOverflow() 711 StgStack *new_stack, *old_stack; in threadStackUnderflow() local 724 tso->stackobj = new_stack; in threadStackUnderflow() 730 if ((W_)(new_stack->sp - new_stack->stack) < retvals) in threadStackUnderflow() 751 dirty_STACK(cap, new_stack); in threadStackUnderflow() [all …]
|
/dports/devel/racer/racer-2.1.48/cargo-crates/psm-0.1.8/examples/ |
H A D | on_stack_fibo.rs | 41 let new_stack = alloc::alloc(layout); localVariable 42 assert!(!new_stack.is_null(), "allocations must succeed!"); 45 new_stack.offset((stack_size - STACK_REDLINE) as isize), 47 new_stack.offset(STACK_REDLINE as isize), 49 let result = psm::on_stack(new_stack, stack_size, || { 52 alloc::dealloc(new_stack, layout);
|
/dports/lang/rust/rustc-1.58.1-src/vendor/psm/examples/ |
H A D | on_stack_fibo.rs | 41 let new_stack = alloc::alloc(layout); localVariable 42 assert!(!new_stack.is_null(), "allocations must succeed!"); 45 new_stack.offset((stack_size - STACK_REDLINE) as isize), 47 new_stack.offset(STACK_REDLINE as isize), 49 let result = psm::on_stack(new_stack, stack_size, || { 52 alloc::dealloc(new_stack, layout);
|
/dports/sysutils/cfengine316/cfengine-3.16.0/libntech/libutils/ |
H A D | threaded_stack.c | 179 ThreadedStack *new_stack = xmemdup(stack, sizeof(ThreadedStack)); in ThreadedStackCopy() local 180 new_stack->base.data = xmalloc(sizeof(void *) * stack->base.capacity); in ThreadedStackCopy() 181 memcpy(new_stack->base.data, stack->base.data, sizeof(void *) * stack->base.size); in ThreadedStackCopy() 195 new_stack->lock = malloc(sizeof(pthread_mutex_t)); in ThreadedStackCopy() 196 ret = pthread_mutex_init(new_stack->lock, &attr); in ThreadedStackCopy() 202 free(new_stack->lock); in ThreadedStackCopy() 203 free(new_stack); in ThreadedStackCopy() 204 new_stack = NULL; in ThreadedStackCopy() 210 return new_stack; in ThreadedStackCopy()
|
/dports/sysutils/cfengine317/cfengine-3.17.0/libntech/libutils/ |
H A D | threaded_stack.c | 179 ThreadedStack *new_stack = xmemdup(stack, sizeof(ThreadedStack)); in ThreadedStackCopy() local 180 new_stack->base.data = xmalloc(sizeof(void *) * stack->base.capacity); in ThreadedStackCopy() 181 memcpy(new_stack->base.data, stack->base.data, sizeof(void *) * stack->base.size); in ThreadedStackCopy() 195 new_stack->lock = malloc(sizeof(pthread_mutex_t)); in ThreadedStackCopy() 196 ret = pthread_mutex_init(new_stack->lock, &attr); in ThreadedStackCopy() 202 free(new_stack->lock); in ThreadedStackCopy() 203 free(new_stack); in ThreadedStackCopy() 204 new_stack = NULL; in ThreadedStackCopy() 210 return new_stack; in ThreadedStackCopy()
|
/dports/sysutils/cfengine-devel/core-d08ae9eff/libntech/libutils/ |
H A D | threaded_stack.c | 179 ThreadedStack *new_stack = xmemdup(stack, sizeof(ThreadedStack)); in ThreadedStackCopy() local 180 new_stack->base.data = xmalloc(sizeof(void *) * stack->base.capacity); in ThreadedStackCopy() 181 memcpy(new_stack->base.data, stack->base.data, sizeof(void *) * stack->base.size); in ThreadedStackCopy() 195 new_stack->lock = xmalloc(sizeof(pthread_mutex_t)); in ThreadedStackCopy() 196 ret = pthread_mutex_init(new_stack->lock, &attr); in ThreadedStackCopy() 202 free(new_stack->lock); in ThreadedStackCopy() 203 free(new_stack); in ThreadedStackCopy() 204 new_stack = NULL; in ThreadedStackCopy() 210 return new_stack; in ThreadedStackCopy()
|
/dports/sysutils/cfengine/cfengine-3.19.0/libntech/libutils/ |
H A D | threaded_stack.c | 179 ThreadedStack *new_stack = xmemdup(stack, sizeof(ThreadedStack)); in ThreadedStackCopy() local 180 new_stack->base.data = xmalloc(sizeof(void *) * stack->base.capacity); in ThreadedStackCopy() 181 memcpy(new_stack->base.data, stack->base.data, sizeof(void *) * stack->base.size); in ThreadedStackCopy() 195 new_stack->lock = xmalloc(sizeof(pthread_mutex_t)); in ThreadedStackCopy() 196 ret = pthread_mutex_init(new_stack->lock, &attr); in ThreadedStackCopy() 202 free(new_stack->lock); in ThreadedStackCopy() 203 free(new_stack); in ThreadedStackCopy() 204 new_stack = NULL; in ThreadedStackCopy() 210 return new_stack; in ThreadedStackCopy()
|
/dports/sysutils/cfengine318/cfengine-3.18.1/libntech/libutils/ |
H A D | threaded_stack.c | 179 ThreadedStack *new_stack = xmemdup(stack, sizeof(ThreadedStack)); in ThreadedStackCopy() local 180 new_stack->base.data = xmalloc(sizeof(void *) * stack->base.capacity); in ThreadedStackCopy() 181 memcpy(new_stack->base.data, stack->base.data, sizeof(void *) * stack->base.size); in ThreadedStackCopy() 195 new_stack->lock = xmalloc(sizeof(pthread_mutex_t)); in ThreadedStackCopy() 196 ret = pthread_mutex_init(new_stack->lock, &attr); in ThreadedStackCopy() 202 free(new_stack->lock); in ThreadedStackCopy() 203 free(new_stack); in ThreadedStackCopy() 204 new_stack = NULL; in ThreadedStackCopy() 210 return new_stack; in ThreadedStackCopy()
|
/dports/sysutils/cfengine319/cfengine-3.19.0/libntech/libutils/ |
H A D | threaded_stack.c | 179 ThreadedStack *new_stack = xmemdup(stack, sizeof(ThreadedStack)); in ThreadedStackCopy() local 180 new_stack->base.data = xmalloc(sizeof(void *) * stack->base.capacity); in ThreadedStackCopy() 181 memcpy(new_stack->base.data, stack->base.data, sizeof(void *) * stack->base.size); in ThreadedStackCopy() 195 new_stack->lock = xmalloc(sizeof(pthread_mutex_t)); in ThreadedStackCopy() 196 ret = pthread_mutex_init(new_stack->lock, &attr); in ThreadedStackCopy() 202 free(new_stack->lock); in ThreadedStackCopy() 203 free(new_stack); in ThreadedStackCopy() 204 new_stack = NULL; in ThreadedStackCopy() 210 return new_stack; in ThreadedStackCopy()
|