mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-12 21:52:01 +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)
73 lines
1.4 KiB
C++
73 lines
1.4 KiB
C++
/* $Id: globals.h 713 2007-04-29 15:33:47Z helly $ */
|
|
#ifndef _globals_h
|
|
#define _globals_h
|
|
|
|
#include "basics.h"
|
|
#include <set>
|
|
#include <algorithm>
|
|
#include <string>
|
|
#include "stream_lc.h"
|
|
#include "code_names.h"
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
extern file_info sourceFileInfo;
|
|
extern file_info outputFileInfo;
|
|
|
|
extern bool bFlag;
|
|
extern bool dFlag;
|
|
extern bool eFlag;
|
|
extern bool fFlag;
|
|
extern bool gFlag;
|
|
extern bool iFlag;
|
|
extern bool sFlag;
|
|
extern bool uFlag;
|
|
extern bool wFlag;
|
|
|
|
extern bool bNoGenerationDate;
|
|
|
|
extern bool bSinglePass;
|
|
extern bool bFirstPass;
|
|
extern bool bLastPass;
|
|
|
|
extern bool bUsedYYAccept;
|
|
extern bool bUsedYYMaxFill;
|
|
extern bool bUsedYYMarker;
|
|
|
|
extern bool bUseStartLabel;
|
|
extern std::string startLabelName;
|
|
extern std::string labelPrefix;
|
|
extern std::string yychConversion;
|
|
extern uint maxFill;
|
|
extern uint next_label;
|
|
extern uint cGotoThreshold;
|
|
|
|
/* configurations */
|
|
extern uint topIndent;
|
|
extern std::string indString;
|
|
extern bool yybmHexTable;
|
|
extern bool bUseStateAbort;
|
|
extern bool bUseStateNext;
|
|
extern bool bWroteGetState;
|
|
extern bool bUseYYFill;
|
|
extern bool bUseYYFillParam;
|
|
|
|
extern uint asc2ebc[256];
|
|
extern uint ebc2asc[256];
|
|
|
|
extern uint *xlat, *talx;
|
|
|
|
extern uint next_fill_index;
|
|
extern uint last_fill_index;
|
|
extern std::set<uint> vUsedLabels;
|
|
extern re2c::CodeNames mapCodeName;
|
|
|
|
extern uint nRealChars;
|
|
|
|
extern char octCh(uint c);
|
|
extern char hexCh(uint c);
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif
|