cutil/structures.cpp

Go to the documentation of this file.
00001 
00020 /*----------------------------------------------------------------------
00021               I n c l u d e s
00022 ----------------------------------------------------------------------*/
00023 #include "structures.h"
00024 #include "callcpp.h"
00025 
00026 #include <stdio.h>
00027 
00028 /*----------------------------------------------------------------------
00029               M a c r o s
00030 ----------------------------------------------------------------------*/
00032 #define BLOBBLOCK          64
00033 
00034 #define OUTLINEBLOCK       300
00035 
00036 #define NODEBLOCK          36
00037 #define EDGEPTBLOCK        50
00038 #define WERDBLOCK          42
00039 #define LISTBLOCK          300
00040 
00041 /*----------------------------------------------------------------------
00042               V a r i a b l e s
00043 ----------------------------------------------------------------------*/
00044 int structblockcount = 0;
00045 void_void memory_print_functions[NUM_DATA_TYPES];
00046 int max_data_types = 0;
00047 
00048 /*----------------------------------------------------------------------
00049               F u n c t i o n s
00050 ----------------------------------------------------------------------*/
00051 makestructure (newword, oldword, printword, TWERD,
00052 freeword, WERDBLOCK, "TWERD", wordcount)
00053 makestructure (newoutline, oldoutline, printol, TESSLINE,
00054 freeoutline, OUTLINEBLOCK, "TESSLINE", outlinecount);
00055 
00056 makestructure (new_cell, free_cell, printcell, _LIST_,
00057 freelist, LISTBLOCK, "LIST", listcount);
00058 
00059 newstructure (newblob, TBLOB, freeblob, BLOBBLOCK, "newblob", blobcount);
00060 oldstructure (oldblob, TBLOB, freeblob, "BLOB", blobcount);
00061 
00062 newstructure (newedgept, EDGEPT, freeedgept, EDGEPTBLOCK, "newedgept",
00063 edgeptcount);
00064 oldstructure (oldedgept, EDGEPT, freeedgept, "EDGEPT", edgeptcount);

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