mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-30 16:00:55 +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)
56 lines
595 B
C++
56 lines
595 B
C++
/* $Id: ins.h 535 2006-05-25 13:36:14Z helly $ */
|
|
#ifndef _ins_h
|
|
#define _ins_h
|
|
|
|
#include "basics.h"
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
typedef unsigned short Char;
|
|
|
|
const uint CHAR = 0;
|
|
const uint GOTO = 1;
|
|
const uint FORK = 2;
|
|
const uint TERM = 3;
|
|
const uint CTXT = 4;
|
|
|
|
union Ins {
|
|
|
|
struct
|
|
{
|
|
byte tag;
|
|
byte marked;
|
|
void *link;
|
|
}
|
|
|
|
i;
|
|
|
|
struct
|
|
{
|
|
ushort value;
|
|
ushort bump;
|
|
void *link;
|
|
}
|
|
|
|
c;
|
|
};
|
|
|
|
inline bool isMarked(Ins *i)
|
|
{
|
|
return i->i.marked != 0;
|
|
}
|
|
|
|
inline void mark(Ins *i)
|
|
{
|
|
i->i.marked = true;
|
|
}
|
|
|
|
inline void unmark(Ins *i)
|
|
{
|
|
i->i.marked = false;
|
|
}
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif
|