#include <stdio.h>
Go to the source code of this file.
Macro Definition Documentation
#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 Documentation
typedef void(* voidProc)() |
Function Documentation
ARRAY array_insert |
( |
ARRAY |
array, |
|
|
int |
index, |
|
|
void * |
value |
|
) |
| |
ARRAY array_new |
( |
int |
num | ) |
|
Definition at line 70 of file tessarray.cpp.
{
int x;
if (num == 0)
if (!temp) {
cprintf (
"error: Out of memory in array_new\n");
exit (1);
}
for (x = 0; x < num; x++)
return (temp);
}
Definition at line 98 of file tessarray.cpp.
{
sizeof (char *) +
2) * sizeof (char *) +
if (!array) {
cprintf (
"error: Out of memory in array_push\n");
exit (1);
}
}
return (array);
}