tesseract-doxygen/cutil/tessarray.h File Reference

#include <stdio.h>

Go to the source code of this file.

Classes

struct  array_record

Defines

#define DEFAULT_SIZE   2
#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])

Typedefs

typedef struct array_recordARRAY
typedef void(* voidProc )()
typedef int(* intProc )()

Functions

ARRAY array_insert (ARRAY array, int index, void *value)
ARRAY array_new (int num)
ARRAY array_push (ARRAY array, void *value)

Define Documentation

#define array_count (  )     ((a)->top)
#define array_free   memfree
#define array_index ( a,
 )     ((i<array_count(a)) ? (a)->base[i] : 0)
#define array_limit (  )     ((a)->limit)
#define array_loop ( a,
 )     for (x=0; x < array_count (a); x++)
#define array_top (  )     ((a)->base[array_count (a) - 1])
#define array_value ( a,
 )     ((a)->base[i])
#define DEFAULT_SIZE   2

Typedef Documentation

typedef struct array_record * ARRAY
typedef int(* intProc)()
typedef void(* voidProc)()

Function Documentation

ARRAY array_insert ( ARRAY  array,
int  index,
void *  value 
)
ARRAY array_new ( int  num  ) 
ARRAY array_push ( ARRAY  array,
void *  value 
)
Generated on Sun Jul 18 17:10:51 2010 for Tesseract by  doxygen 1.6.3