/home/rays/src/opensrc/tesseract-ocr/cutil/tessarray.h File Reference
#include <stdio.h>
Go to the source code of this file.
Define Documentation
#define array_count |
( |
a |
|
) |
((a)->top) |
#define array_free memfree |
#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
Function Documentation
ARRAY array_insert |
( |
ARRAY |
array, |
|
|
int |
index, |
|
|
void * |
value | |
|
) |
| | |
ARRAY array_new |
( |
int |
num |
) |
|