mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
ec17f5a5b9
error handling. - Fixed: dehsupp/scanner.re defined "}" as the token RPAREN. dehsupp/parse.y also defined action_list_def as needing a RBARCE. I'm surprised it worked at all before. I guess Lemon really was too accepting. - Changed the way that xlatcc handles include statements so that I don't need to modify the logic of lempar.c. I also discovered that the grammar was improperly defined and only accepted the first statement. It worked before because Lemon used to accept multiple times before reaching the EOF token. I have also verified that it is still generating the proper lumps. - Removed some unused wadsrc files from the repository. - Fixed my re2c upgrade. - Updated lemon.c to v1.53. SVN r711 (trunk)
57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
/* $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"
|
|
#endif
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
#if SIZEOF_CHAR == 1
|
|
typedef unsigned char byte;
|
|
#elif SIZEOF_SHORT == 1
|
|
typedef unsigned short byte;
|
|
#elif SIZEOF_INT == 1
|
|
typedef unsigned int byte;
|
|
#elif SIZEOF_LONG == 1
|
|
typedef unsigned long byte;
|
|
#else
|
|
typedef unsigned char byte;
|
|
#endif
|
|
|
|
#if SIZEOF_CHAR == 2
|
|
typedef unsigned char word;
|
|
#elif SIZEOF_SHORT == 2
|
|
typedef unsigned short word;
|
|
#elif SIZEOF_INT == 2
|
|
typedef unsigned int word;
|
|
#elif SIZEOF_LONG == 2
|
|
typedef unsigned long word;
|
|
#else
|
|
typedef unsigned short word;
|
|
#endif
|
|
|
|
#if SIZEOF_CHAR == 4
|
|
typedef unsigned char dword;
|
|
#elif SIZEOF_SHORT == 4
|
|
typedef unsigned short dword;
|
|
#elif SIZEOF_INT == 4
|
|
typedef unsigned int dword;
|
|
#elif SIZEOF_LONG == 4
|
|
typedef unsigned long dword;
|
|
#else
|
|
typedef unsigned long dword;
|
|
#endif
|
|
|
|
typedef unsigned int uint;
|
|
typedef unsigned char uchar;
|
|
typedef unsigned short ushort;
|
|
typedef unsigned long ulong;
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif
|