#include <stdio.h>
Go to the source code of this file.
| #define array_count |
( |
|
a | ) |
((a)->top) |
| #define array_index |
( |
|
a, |
|
|
|
i |
|
) |
| ((i<array_count(a)) ? (a)->base[i] : 0) |
| #define array_limit |
( |
|
a | ) |
((a)->limit) |
| #define array_loop |
( |
|
a, |
|
|
|
x |
|
) |
| for (x=0; x < array_count (a); x++) |
| #define array_top |
( |
|
a | ) |
((a)->base[array_count (a) - 1]) |
| #define array_value |
( |
|
a, |
|
|
|
i |
|
) |
| ((a)->base[i]) |
| typedef void(* voidProc)() |
| ARRAY array_insert |
( |
ARRAY |
array, |
|
|
int |
index, |
|
|
void * |
value |
|
) |
| |
Definition at line 53 of file tessarray.cpp.
ARRAY array_push(ARRAY array, void *value)
#define array_value(a, i)
| ARRAY array_new |
( |
int |
num | ) |
|
Definition at line 70 of file tessarray.cpp.
79 cprintf (
"error: Out of memory in array_new\n");
84 for (x = 0; x < num; x++)
struct array_record * ARRAY
#define array_value(a, i)
void cprintf(const char *format,...)
Definition at line 98 of file tessarray.cpp.
104 2) *
sizeof (
char *) +
107 cprintf (
"error: Out of memory in array_push\n");
struct array_record * ARRAY
int * memrealloc(void *ptr, int size, int oldsize)
void cprintf(const char *format,...)