Home
last modified time | relevance | path

Searched refs:st_top (Results 1 – 1 of 1) sorted by relevance

/titanic_50/usr/src/tools/ctf/cvt/
H A Dstack.c44 int st_top; member
57 sp->st_top = -1; in stack_new()
70 for (i = 0; i <= sp->st_top; i++) in stack_free()
80 assert(sp->st_top >= 0); in stack_pop()
82 return (sp->st_data[sp->st_top--]); in stack_pop()
88 if (sp->st_top == -1) in stack_peek()
91 return (sp->st_data[sp->st_top]); in stack_peek()
97 sp->st_top++; in stack_push()
99 if (sp->st_top == sp->st_nument) { in stack_push()
105 sp->st_data[sp->st_top] = data; in stack_push()
[all …]