mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 04:51:19 +00:00
43abfba723
re2c instead of "Linking X". - Updated lemon and re2c to the latest versions and ported dehsupp to use them for code generation. (Xlatcc is next.) - Added function level linking for Makefile.mingw. SVN r144 (trunk)
56 lines
600 B
C++
56 lines
600 B
C++
/* $Id: ins.h,v 1.7 2006/01/03 11:40:38 helly Exp $ */
|
|
#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
|