basics.h

来自「a little DFA compiler.」· C头文件 代码 · 共 58 行

H
58
字号
/* $Id: basics.h 520 2006-05-25 13:31:06Z helly $ */#ifndef _basics_h#define _basics_h#ifdef HAVE_CONFIG_H#include "config.h"#elif defined(_WIN32)#include "config_w32.h"#endifnamespace re2c{#if SIZEOF_CHAR == 1typedef unsigned char byte;#elif SIZEOF_SHORT == 1typedef unsigned short byte;#elif SIZEOF_INT == 1typedef unsigned int byte;#elif SIZEOF_LONG == 1typedef unsigned long byte;#elsetypedef unsigned char byte;#endif#if SIZEOF_CHAR == 2typedef unsigned char word;#elif SIZEOF_SHORT == 2typedef unsigned short word;#elif SIZEOF_INT == 2typedef unsigned int word;#elif SIZEOF_LONG == 2typedef unsigned long word;#elsetypedef unsigned short word;#endif#if SIZEOF_CHAR == 4typedef unsigned char dword;#elif SIZEOF_SHORT == 4typedef unsigned short dword;#elif SIZEOF_INT == 4typedef unsigned int dword;#elif SIZEOF_LONG == 4typedef unsigned long dword;#elsetypedef unsigned long dword;#endiftypedef unsigned int uint;typedef unsigned char uchar;typedef unsigned short ushort;typedef unsigned long ulong;} // end namespace re2c#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?