00001
00018 #ifndef CONST_H
00019 #define CONST_H
00020
00022 #define PATHSIZE 8192
00023
00024 #define OUTLINESIZE 256
00025
00026 #define BLOBSIZE 10000
00027
00029 #define FIRSTCHAR '!'
00030
00031 #define LASTCHAR '~'
00032
00033 #define CHARSETSIZE (LASTCHAR-FIRSTCHAR+1)
00034
00035 #define MERGESIZE 10
00036
00037 #define MAXCHARSIZE 159
00038
00039 #define CLASSIZE 256
00040
00041 #define SPLITSIZE 4
00042
00043 #define BADCLASS 255
00044
00045 #define BADMATCH 255
00046
00047 #define CLASSLENGTH 16
00048
00049 #define VECSCALE 3
00050
00051 #define REALSCALE ((double)(1<<VECSCALE))
00052
00053 #define SPLINESIZE 23
00054
00055 #ifndef NULL
00056 #define NULL 0
00057 #endif
00058
00060 #define MAXINT 2147483647
00061
00062
00064 #define MAXUCHAR 255
00065
00066 #define PI 3.14159265359
00067 #ifndef __UNIX__
00068 #define MAXFLOAT 2000000000.0f
00069 #endif
00070
00072 #define FILENAMESIZE 1024
00073
00075 #define MAX_WO_CLASSES 3
00076
00078 #define ITALIC 0
00079
00080 #define ASPECT_RATIO 2
00081
00083 #define NODEFLAGS 4
00084
00086 #define EDGEPTFLAGS 4
00087
00088 #define FLAGS 0
00089
00090 #define CONVEX 1
00091
00092 #define CONCAVE 2
00093
00094
00096 #define ONHULL 8
00097
00099 #define RUNLENGTH 1
00100
00102 #define DIR 2
00103
00105 #define CORRECTION 3
00106
00108 #define OUTLINES_PER_BLOB 8
00109
00111 #define PLUS 1
00112
00113 #define CIRCLE 3
00114
00115
00116
00117
00118
00119
00120
00121
00123 #define SMD 0x100000
00124
00126 #define SCAN 0
00127
00128 #define EDGE 1
00129
00130 #define FX 2
00131
00132 #define TO 3
00133
00134 #define OCR 4
00135 #define MAXPROC (OCR+1)
00136
00138 #define STRINGCMPS 0x1
00139
00141 #define CHECKS 0x1
00142 #define WRITEERRORS 0x2
00143 #define WRITECORRECTS 0x4
00144 #define WRITEWERDS 0x8
00145 #define FXSELECT 0x10
00146 #define WRITEROWFILE 0x06
00147 #define LEARN 0x100
00148 #define WRITELEARNFILE 0xf00
00149 #define EACHWERD 0x2000
00150 #endif