Set up common C char types and defs

This commit is contained in:
Wilson Lin 2018-07-04 23:24:12 +12:00
parent 561dedd724
commit a818e4f95a
1 changed files with 10 additions and 0 deletions

10
src/main/c/util/hbchar.h Normal file
View File

@ -0,0 +1,10 @@
#ifndef _HDR_HYPERBUILD_UTIL_HBCHAR
#define _HDR_HYPERBUILD_UTIL_HBCHAR
typedef int hb_eod_char_t;
typedef unsigned char hb_char_t;
#define HB_EOD -1 // End Of Data
#define SIZEOF_CHAR sizeof(hb_char_t)
#endif // _HDR_HYPERBUILD_UTIL_HBCHAR