mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 05:01:09 +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)
53 lines
883 B
C++
53 lines
883 B
C++
/* $Id: code.h,v 1.7 2006/01/21 15:51:02 helly Exp $ */
|
|
#ifndef _code_h
|
|
#define _code_h
|
|
|
|
#include "re.h"
|
|
#include "dfa.h"
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
class BitMap
|
|
{
|
|
public:
|
|
static BitMap *first;
|
|
|
|
const Go *go;
|
|
const State *on;
|
|
const BitMap *next;
|
|
uint i;
|
|
uint m;
|
|
|
|
public:
|
|
static const BitMap *find(const Go*, const State*);
|
|
static const BitMap *find(const State*);
|
|
static void gen(std::ostream&, uint ind, uint, uint);
|
|
static void stats();
|
|
BitMap(const Go*, const State*);
|
|
~BitMap();
|
|
|
|
#if PEDANTIC
|
|
BitMap(const BitMap& oth)
|
|
: go(oth.go)
|
|
, on(oth.on)
|
|
, next(oth.next)
|
|
, i(oth.i)
|
|
, m(oth.m)
|
|
{
|
|
}
|
|
BitMap& operator = (const BitMap& oth)
|
|
{
|
|
new(this) BitMap(oth);
|
|
return *this;
|
|
}
|
|
#endif
|
|
};
|
|
|
|
#ifdef _MSC_VER
|
|
# pragma warning(disable: 4355) /* 'this' : used in base member initializer list */
|
|
#endif
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif
|