#include <basis/byte_array.h>#include <basis/chaos.h>#include <basis/guards.h>#include <basis/istring.h>#include <data_struct/stack.cpp>#include <data_struct/static_memory_gremlin.h>#include <stdlib.h>#include <string.h>Include dependency graph for t_stack.cpp:

Go to the source code of this file.
Defines | |
| #define | WHERE __WHERE__.s() |
Functions | |
| void | CHECK_STACK_RESULT (outcome retval, const istring &place) |
| byte_array | generate_flat (const char *to_store) |
| byte_array * | generate_deep (const char *to_store) |
| istring | text_form (stack< byte_array * > &s) |
| istring | text_form (stack< byte_array > &s) |
| void | test_stack_with_objects () |
| void | test_stack_with_pointers () |
| int | main (int formal(argc), char *formal(argv)[]) |
Variables | |
| HOOPLE_STARTUP_CODE | |
| const int | test_iterations = 40 |
| #define WHERE __WHERE__.s() |
Definition at line 45 of file t_stack.cpp.
Definition at line 50 of file t_stack.cpp.
References common::IS_EMPTY, common::IS_FULL, LOG, istring::s(), istring::SPRINTF, and outcome::value().
Referenced by test_stack_with_objects(), and test_stack_with_pointers().
| byte_array* generate_deep | ( | const char * | to_store | ) |
| byte_array generate_flat | ( | const char * | to_store | ) |
| int main | ( | int | formal(argc), | |
| char * | formal(argv)[] | |||
| ) |
Definition at line 375 of file t_stack.cpp.
References guards::alert_message(), test_stack_with_objects(), and test_stack_with_pointers().
| void test_stack_with_objects | ( | ) |
Definition at line 93 of file t_stack.cpp.
References array< contents >::access(), stack< contents >::acquire_pop(), CHECK_STACK_RESULT(), deadly_error, generate_flat(), chaos::inclusive(), common::IS_EMPTY, common::IS_FULL, array< contents >::length(), istring::length(), LOG, array< contents >::observe(), common::OKAY, stack< contents >::pop(), stack< contents >::push(), stack< contents >::size(), istring::stuff(), test_iterations, text_form(), stack< contents >::top(), outcome::value(), and WHERE.
Referenced by main().
| void test_stack_with_pointers | ( | ) |
Definition at line 231 of file t_stack.cpp.
References array< contents >::access(), stack< contents >::acquire_pop(), CHECK_STACK_RESULT(), deadly_error, generate_deep(), chaos::inclusive(), common::IS_EMPTY, common::IS_FULL, array< contents >::length(), istring::length(), LOG, array< contents >::observe(), common::OKAY, stack< contents >::pop(), stack< contents >::push(), stack< contents >::size(), istring::stuff(), test_iterations, text_form(), stack< contents >::top(), and WHERE.
Referenced by main().
| istring text_form | ( | stack< byte_array > & | s | ) |
| istring text_form | ( | stack< byte_array * > & | s | ) |
Definition at line 75 of file t_stack.cpp.
References stack< contents >::elements().
Referenced by test_stack_with_objects(), test_stack_with_pointers(), earth_time::time_locus::text_form(), and buffer_manager::zap_expired().
Definition at line 38 of file t_stack.cpp.
| const int test_iterations = 40 |
Definition at line 43 of file t_stack.cpp.
1.5.1