Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 407) sorted by relevance

12345678910>>...17

/mirbsd/src/usr.bin/dc/
Dstack.c27 static __inline bool stack_empty(const struct stack *);
28 static void stack_grow(struct stack *);
37 stack_init(struct stack *stack) in stack_init() argument
39 stack->size = 0; in stack_init()
40 stack->sp = -1; in stack_init()
41 stack->stack = NULL; in stack_init()
45 stack_empty(const struct stack *stack) in stack_empty() argument
47 bool empty = stack->sp == -1; in stack_empty()
98 stack_size(const struct stack *stack) in stack_size() argument
100 return stack->sp + 1; in stack_size()
[all …]
Dextern.h43 void stack_init(struct stack *);
46 void stack_swap(struct stack *);
47 size_t stack_size(const struct stack *);
48 void stack_dup(struct stack *);
49 void stack_pushnumber(struct stack *, struct number *);
50 void stack_pushstring(struct stack *stack, char *);
51 void stack_push(struct stack *, struct value *);
52 void stack_set_tos(struct stack *, struct value *);
53 struct value *stack_tos(const struct stack *);
54 struct value *stack_pop(struct stack *);
[all …]
Dbcode.c44 struct stack stack; member
51 struct stack *reg;
251 stack_init(&bmachine.stack); in init_bmachine()
445 stack_pushnumber(&bmachine.stack, n); in push_number()
451 stack_pushstring(&bmachine.stack, string); in push_string()
457 stack_push(&bmachine.stack, v); in push()
463 return stack_tos(&bmachine.stack); in tos()
469 return stack_pop(&bmachine.stack); in pop()
475 return stack_popnumber(&bmachine.stack); in pop_number()
481 return stack_popstring(&bmachine.stack); in pop_string()
[all …]
/mirbsd/src/lib/libpthread/uthread/
Duthread_stack.c27 struct stack *
32 struct stack *stack; local
40 if ((stack = SLIST_FIRST(&_stackq)) != NULL) {
44 return stack;
51 stack = (struct stack *)malloc(sizeof (struct stack));
52 if (stack == NULL)
57 stack->base = base;
58 stack->size = size;
59 stack->redzone = NULL;
60 stack->storage = NULL;
[all …]
Duthread_create.c64 struct stack *stack; in pthread_create() local
88 if ((stack = pattr->stackaddr_attr) != NULL) { in pthread_create()
92 stack = _thread_stack_alloc(pattr->stackaddr_attr, in pthread_create()
94 if (stack == NULL) { in pthread_create()
108 new_thread->stack = stack; in pthread_create()
130 stack->base, stack->size, _thread_start); in pthread_create()
Duthread_gc.c135 if (pthread->stack != NULL) { in _thread_gc()
136 p_stack = pthread->stack; in _thread_gc()
137 pthread->stack = NULL; in _thread_gc()
153 if (pthread->stack != NULL) { in _thread_gc()
154 p_stack = pthread->stack; in _thread_gc()
155 pthread->stack = NULL; in _thread_gc()
Duthread_stackseg_np.c30 if (thread->stack) { in pthread_stackseg_np()
31 base = thread->stack->base; in pthread_stackseg_np()
33 base += thread->stack->size; in pthread_stackseg_np()
36 sinfo->ss_size = thread->stack->size; in pthread_stackseg_np()
/mirbsd/src/gnu/usr.bin/cvs/src/
Dstack.c19 do_push (List *stack, void *elem, int isstring) in do_push() argument
28 addnode(stack, p); in do_push()
34 push (List *stack, void *elem) in push() argument
36 do_push (stack, elem, 0); in push()
42 push_string (List *stack, char *elem) in push_string() argument
44 do_push (stack, elem, 1); in push_string()
50 do_pop (List *stack, int isstring) in do_pop() argument
54 if (isempty (stack)) return NULL; in do_pop()
58 elem = stack->list->prev->key; in do_pop()
59 stack->list->prev->key = NULL; in do_pop()
[all …]
/mirbsd/src/gnu/usr.bin/binutils/binutils/
Dprdbg.c45 struct pr_stack *stack; member
302 info.stack = NULL; in print_debugging_info()
348 n->next = info->stack; in push_type()
349 info->stack = n; in push_type()
361 assert (info->stack != NULL); in prepend_type()
363 n = (char *) xmalloc (strlen (s) + strlen (info->stack->type) + 1); in prepend_type()
364 sprintf (n, "%s%s", s, info->stack->type); in prepend_type()
365 free (info->stack->type); in prepend_type()
366 info->stack->type = n; in prepend_type()
381 assert (info->stack != NULL); in append_type()
[all …]
/mirbsd/src/lib/libssl/src/crypto/stack/
DMakefile5 DIR= stack
25 LIBSRC=stack.c
26 LIBOBJ=stack.o
30 EXHEADER= stack.h safestack.h
80 stack.o: ../../e_os.h ../../include/openssl/bio.h
81 stack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
82 stack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
83 stack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
84 stack.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
85 stack.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
[all …]
DMakefile.ssl5 DIR= stack
26 LIBSRC=stack.c
27 LIBOBJ=stack.o
31 EXHEADER= stack.h safestack.h
82 stack.o: ../../e_os.h ../../include/openssl/bio.h
83 stack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
84 stack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
85 stack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
86 stack.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
87 stack.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
[all …]
/mirbsd/src/gnu/usr.bin/perl/ext/B/B/
DCC.pm40 my @stack; # shadows perl's stack when contents are known.
191 sub top_int { @stack ? $stack[-1]->as_int : "TOPi" }
192 sub top_double { @stack ? $stack[-1]->as_double : "TOPn" }
193 sub top_numeric { @stack ? $stack[-1]->as_numeric : "TOPn" }
194 sub top_sv { @stack ? $stack[-1]->as_sv : "TOPs" }
195 sub top_bool { @stack ? $stack[-1]->as_bool : "SvTRUE(TOPs)" }
197 sub pop_int { @stack ? (pop @stack)->as_int : "POPi" }
198 sub pop_double { @stack ? (pop @stack)->as_double : "POPn" }
199 sub pop_numeric { @stack ? (pop @stack)->as_numeric : "POPn" }
200 sub pop_sv { @stack ? (pop @stack)->as_sv : "POPs" }
[all …]
/mirbsd/src/gnu/usr.bin/perl/ext/Devel/PPPort/parts/
Dapicheck.pl87 my %stack = (
187 my $stack = '';
213 $stack .= " static $n $p$v$d;\n";
217 $stack = " dTHX;\n$stack";
221 if ($stack{$f->{name}}) {
223 for (@{$stack{$f->{name}}}) {
226 $stack = "$s$stack";
282 $stack
/mirbsd/src/gnu/usr.bin/perl/ext/B/ramblings/
Dcc.notes4 The shadow stack @stack is empty.
7 The C shadow variable sp holds the stack pointer (not necessarily stack_sp).
10 Writes the contents of the shadow stack @stack back to the real stack.
11 A write-back of each object in the stack is forced so that its
13 real stack. On return, @stack is empty.
/mirbsd/src/gnu/usr.bin/perl/Porting/
Dvalgrindpp.pl164 my @stack = split /</, $frames;
165 $data->{count} > 1 and $stack[-1] .= " [$data->{count} paths]";
166 print $fh join('', map { ' 'x4 . "$_:$stack[$_]\n" } 0 .. $#stack ),
227 my @stack; # Call stack
237 $hidden && $func =~ $hidden and @stack = (), last;
241 push @stack, $inperl ? "$func:$file:$lineno" : $func;
247 @stack and $inperl and $leak{$type}{join '<', @stack}{$test}++;
/mirbsd/src/gnu/usr.bin/perl/lib/
DDB.pm10 @stack, @saved, @skippkg, @clients);
49 @stack = (0);
63 push(@stack, $DB::single);
65 $DB::single |= 4 if $#stack == $deep;
68 $DB::single |= pop(@stack);
73 $DB::single |= pop(@stack);
78 $DB::single |= pop(@stack);
122 _outputall($#stack . " levels deep in subroutine calls.\n") if $DB::single & 4;
220 for ($i = 0; $i <= $#stack;) {
221 $stack[$i++] &= ~1;
[all …]
/mirbsd/src/lib/libssl/src/crypto/perlasm/
Dx86unix.pl175 sub main'pop { &out1("popl",@_); $stack-=4; }
177 sub main'popf { &out0("popf"); $stack-=4; }
330 $stack=20;
381 $stack=0;
412 $stack=0;
420 return(&main'DWP($stack+$num*4,"esp","",0));
541 $ostack = $stack;
554 &main'push(($1 + $stack - $ostack) . '(%esp)');
563 $stack-=4*@_;
/mirbsd/src/gnu/usr.bin/binutils/gdb/doc/
Dagentexpr.texi74 The bytecode interpreter is a stack-based machine; most instructions pop
75 their operands off the stack, perform some operation, and push the
76 result back on the stack for the next instruction to consume. Each
77 element of the stack may contain either a integer or a floating point
83 stack element as follows:
95 the value of the expression should be the only value left on the stack.
97 have recorded the necessary data, and the value on the stack may be
101 Separate from the stack, the interpreter has two registers:
129 memory. Once on the stack, however, the values are treated as full-size
168 stack.
[all …]
/mirbsd/src/gnu/usr.bin/perl/utils/
Ddprofpp.PL698 my @stack = ();
738 $syst = $stack[-1][0] if scalar @stack;
741 #warn("Inserted exit for $stack[-1][0].\n")
756 my $ename = $dir eq '*' ? $stack[-1][0] : $name;
814 push( @stack, $x );
832 if( @stack ){
835 foreach $x (@stack) {
843 warn( "Faking " . scalar( @stack ) . " exit timestamp(s).\n");
844 foreach $x ( reverse @stack ){
863 my($stack, $tstack, $t, $times, $ctimes, $name, $in, $tab, $deep, $outer) = @_;
[all …]
/mirbsd/src/lib/libssl/src/crypto/bio/
DMakefile95 b_dump.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
102 b_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
109 b_sock.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
116 bf_buff.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
124 bf_nbio.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
131 bf_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
138 bio_cb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
144 bio_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
151 bio_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
158 bss_acpt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
[all …]
DMakefile.ssl97 b_dump.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
104 b_print.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
111 b_sock.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
118 bf_buff.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
126 bf_nbio.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
133 bf_null.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
140 bio_cb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
146 bio_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
153 bio_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
160 bss_acpt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
[all …]
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Ddwarf2expr.c44 retval->stack = xmalloc (retval->stack_allocated * sizeof (CORE_ADDR)); in new_dwarf_expr_context()
55 xfree (ctx->stack); in free_dwarf_expr_context()
69 ctx->stack = xrealloc (ctx->stack, in dwarf_expr_grow_stack()
81 ctx->stack[ctx->stack_len++] = value; in dwarf_expr_push()
102 return ctx->stack[ctx->stack_len - (1 + n)]; in dwarf_expr_fetch()
499 t1 = ctx->stack[ctx->stack_len - 1]; in execute_stack_op()
500 t2 = ctx->stack[ctx->stack_len - 2]; in execute_stack_op()
501 t3 = ctx->stack[ctx->stack_len - 3]; in execute_stack_op()
502 ctx->stack[ctx->stack_len - 1] = t2; in execute_stack_op()
503 ctx->stack[ctx->stack_len - 2] = t3; in execute_stack_op()
[all …]
/mirbsd/src/lib/libssl/src/crypto/des/
DMakefile136 cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
142 cbc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
149 cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
156 cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
163 cfb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
169 des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
176 des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
184 des_old2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
191 ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
198 ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
[all …]
DMakefile.ssl138 cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
144 cbc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
151 cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
158 cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
165 cfb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
171 des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
178 des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
186 des_old2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
193 ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
200 ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
[all …]
/mirbsd/src/lib/libncurses/src/ncurses/tinfo/
Dlib_tparm.c120 static stack_frame stack[STACKSIZE]; variable
199 stack[stack_ptr].num_type = TRUE; in npush()
200 stack[stack_ptr].data.num = x; in npush()
214 if (stack[stack_ptr].num_type) in npop()
215 result = stack[stack_ptr].data.num; in npop()
227 stack[stack_ptr].num_type = FALSE; in spush()
228 stack[stack_ptr].data.str = x; in spush()
243 if (!stack[stack_ptr].num_type && stack[stack_ptr].data.str != 0) in spop()
244 result = stack[stack_ptr].data.str; in spop()

12345678910>>...17