cutil/emalloc.h

Go to the documentation of this file.
00001 
00019 #ifndef   EMALLOC_H
00020 #define   EMALLOC_H
00021 
00022 /* =================
00023           Include Files and Type Defines
00024  ==================== */
00025 #include "host.h"
00026 #include "callcpp.h"
00027 
00029 #define NOTENOUGHMEMORY   2000
00030 #define ILLEGALMALLOCREQUEST  2001
00031 
00032 /* =================
00033           Public Function Prototypes
00034  ==================== */
00035 void *Emalloc(size_t Size); 
00036 
00037 void *Erealloc(void *ptr, size_t size); 
00038 
00039 void Efree(void *ptr); 
00040 
00041 /*
00042 #if defined(__STDC__) || defined(__cplusplus)
00043 # define _ARGS(s) s
00044 #else
00045 # define _ARGS(s) ()
00046 #endif*/
00047 
00048 /* emalloc.c
00049 void *Emalloc
00050   _ARGS((size_t Size));
00051 
00052 void *Erealloc
00053   _ARGS((void *ptr,
00054   size_t size));
00055 
00056 void Efree
00057   _ARGS((void *ptr));
00058 
00059 #undef _ARGS
00060 */
00061 
00062 /* =================
00063         Global Data Definitions and Declarations
00064  ==================== */
00065 
00066 //extern void* c_alloc_struct();
00067 //#define alloc_struct c_alloc_struct
00068 /*extern void c_free_struct(void*
00069               deadstruct,              //structure to free
00070 INT32                count,                  //no of bytes
00071 const char*             name                 //class name
00072 );*/
00073 //#define free_struct c_free_struct
00074 #endif

Generated on Wed Feb 28 19:49:10 2007 for Tesseract by  doxygen 1.5.1