|
|
|
#ifndef re2c_ins_h
|
|
|
|
#define re2c_ins_h
|
|
|
|
|
|
|
|
#include "tools/re2c/basics.h"
|
|
|
|
|
|
|
|
#define nChars 256
|
|
|
|
typedef unsigned char Char;
|
|
|
|
|
|
|
|
#define CHAR 0
|
|
|
|
#define GOTO 1
|
|
|
|
#define FORK 2
|
|
|
|
#define TERM 3
|
|
|
|
#define CTXT 4
|
|
|
|
|
|
|
|
typedef union Ins {
|
|
|
|
struct {
|
|
|
|
byte tag;
|
|
|
|
byte marked;
|
|
|
|
void *link;
|
|
|
|
} i;
|
|
|
|
struct {
|
|
|
|
unsigned short value;
|
|
|
|
unsigned short bump;
|
|
|
|
void *link;
|
|
|
|
} c;
|
|
|
|
} Ins;
|
|
|
|
|
* ins.h, scanner.h, dfa.h, code.c, re.h, parse.h, token.h, substr.h:
Remove use of "inline". This could cause breakage on non-gcc systems (as
these files do not use config.h because of cross-build reasons).
* yasm.dep, yasm.mak, yasm.dsp, yasm.dsw: Remove support for VC6 builds.
* libyasm.dsp, libyasm.mak, libyasm.dep: Likewise.
* modules.dsp, modules.mak, modules.dep: Likewise.
* yasm.suo: Remove unneeded user options file.
* vc: Update svn:ignore property to reflect removal of VC6 builds and user
options file.
* genmacro.vcproj: Generate genmacro tool.
* genmacro/run.bat: Use genmacro to generate nasm-macros.c.
* modules.vcproj: Point to the new location for nasm-macros.c.
* re2c.vcproj: Generate re2c tool.
* re2c/run.bat: Use re2c to generate re2c-generated .c files.
* yasm.sln: Utilize genmacro and re2c.
svn path=/trunk/yasm/; revision=1144
20 years ago
|
|
|
static int isMarked(Ins *i){
|
|
|
|
return i->i.marked != 0;
|
|
|
|
}
|
|
|
|
|
* ins.h, scanner.h, dfa.h, code.c, re.h, parse.h, token.h, substr.h:
Remove use of "inline". This could cause breakage on non-gcc systems (as
these files do not use config.h because of cross-build reasons).
* yasm.dep, yasm.mak, yasm.dsp, yasm.dsw: Remove support for VC6 builds.
* libyasm.dsp, libyasm.mak, libyasm.dep: Likewise.
* modules.dsp, modules.mak, modules.dep: Likewise.
* yasm.suo: Remove unneeded user options file.
* vc: Update svn:ignore property to reflect removal of VC6 builds and user
options file.
* genmacro.vcproj: Generate genmacro tool.
* genmacro/run.bat: Use genmacro to generate nasm-macros.c.
* modules.vcproj: Point to the new location for nasm-macros.c.
* re2c.vcproj: Generate re2c tool.
* re2c/run.bat: Use re2c to generate re2c-generated .c files.
* yasm.sln: Utilize genmacro and re2c.
svn path=/trunk/yasm/; revision=1144
20 years ago
|
|
|
static void mark(Ins *i){
|
|
|
|
i->i.marked = 1;
|
|
|
|
}
|
|
|
|
|
* ins.h, scanner.h, dfa.h, code.c, re.h, parse.h, token.h, substr.h:
Remove use of "inline". This could cause breakage on non-gcc systems (as
these files do not use config.h because of cross-build reasons).
* yasm.dep, yasm.mak, yasm.dsp, yasm.dsw: Remove support for VC6 builds.
* libyasm.dsp, libyasm.mak, libyasm.dep: Likewise.
* modules.dsp, modules.mak, modules.dep: Likewise.
* yasm.suo: Remove unneeded user options file.
* vc: Update svn:ignore property to reflect removal of VC6 builds and user
options file.
* genmacro.vcproj: Generate genmacro tool.
* genmacro/run.bat: Use genmacro to generate nasm-macros.c.
* modules.vcproj: Point to the new location for nasm-macros.c.
* re2c.vcproj: Generate re2c tool.
* re2c/run.bat: Use re2c to generate re2c-generated .c files.
* yasm.sln: Utilize genmacro and re2c.
svn path=/trunk/yasm/; revision=1144
20 years ago
|
|
|
static void unmark(Ins *i){
|
|
|
|
i->i.marked = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|