|
Simple coroutine library / objects in plain C Snapshot
|
Go to the source code of this file.
Functions | |
| STACK_DIR | stack_dir (int *ptr) |
| int | stack_direction () |
| int | STACKS_init (STACKS *stack, int num_stacks, int pages_per_stack) |
| int | STACKS_destroy (STACKS *stack) |
| void * | STACKS_get (STACKS *stack, STACK_ENTRY **rentry) |
| int | STACKS_release (STACK_ENTRY *entry) |
| STACK_DIR stack_dir | ( | int * | ptr | ) |
Definition at line 6 of file stacks.c.
{
int a = 0;
if ((size_t) &a < (size_t) ptr ) {
return STACK_DIR_GROWING_DOWN;
}
return STACK_DIR_GROWING_UP;
}
1.7.4