From resource_parser.y: "No longer static ... lets use this area globally":
* Lets __not__ use very bad practices just because we can!!! Make it static again * Give strres_lexer.l such an array of its own (static as well) git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5077 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
1819c503c6
commit
636bce3996
|
@ -40,8 +40,8 @@ extern void res_error(const char* msg);
|
|||
#define YYLMAX 8192
|
||||
|
||||
/* Store for any string values */
|
||||
char aText[TEXT_BUFFERS][YYLMAX]; // No longer static ... lets use this area globally
|
||||
static UDWORD currText=0;
|
||||
static char aText[TEXT_BUFFERS][YYLMAX];
|
||||
static UDWORD currText = 0;
|
||||
|
||||
#include "lib/framework/lexer_input.h"
|
||||
|
||||
|
|
|
@ -43,8 +43,8 @@ void strres_error(const char *pMessage,...);
|
|||
#define YYLMAX 8192
|
||||
|
||||
/* Store for any string values */
|
||||
extern char aText[TEXT_BUFFERS][YYLMAX];
|
||||
static UDWORD currText=0;
|
||||
static char aText[TEXT_BUFFERS][YYLMAX];
|
||||
static UDWORD currText = 0;
|
||||
|
||||
// Note if in a comment
|
||||
static BOOL inComment;
|
||||
|
|
Loading…
Reference in New Issue