mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-19 16:39:24 +01:00
Fix some constant string type in Script_Compiler
Signed-off-by: XoD <xoddark@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||||||
#define TOP_PRIORITY 7
|
#define TOP_PRIORITY 7
|
||||||
|
|
||||||
bool idCompiler::punctuationValid[ 256 ];
|
bool idCompiler::punctuationValid[ 256 ];
|
||||||
char *idCompiler::punctuation[] = {
|
const char *idCompiler::punctuation[] = {
|
||||||
"+=", "-=", "*=", "/=", "%=", "&=", "|=", "++", "--",
|
"+=", "-=", "*=", "/=", "%=", "&=", "|=", "++", "--",
|
||||||
"&&", "||", "<=", ">=", "==", "!=", "::", ";", ",",
|
"&&", "||", "<=", ">=", "==", "!=", "::", ";", ",",
|
||||||
"~", "!", "*", "/", "%", "(", ")", "-", "+",
|
"~", "!", "*", "/", "%", "(", ")", "-", "+",
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ If you have questions concerning this license or the applicable additional terms
|
|||||||
const char * const RESULT_STRING = "<RESULT>";
|
const char * const RESULT_STRING = "<RESULT>";
|
||||||
|
|
||||||
typedef struct opcode_s {
|
typedef struct opcode_s {
|
||||||
char *name;
|
const char *name;
|
||||||
char *opname;
|
const char *opname;
|
||||||
int priority;
|
int priority;
|
||||||
bool rightAssociative;
|
bool rightAssociative;
|
||||||
idVarDef *type_a;
|
idVarDef *type_a;
|
||||||
@@ -197,7 +197,7 @@ enum {
|
|||||||
class idCompiler {
|
class idCompiler {
|
||||||
private:
|
private:
|
||||||
static bool punctuationValid[ 256 ];
|
static bool punctuationValid[ 256 ];
|
||||||
static char *punctuation[];
|
static const char *punctuation[];
|
||||||
|
|
||||||
idParser parser;
|
idParser parser;
|
||||||
idParser *parserPtr;
|
idParser *parserPtr;
|
||||||
|
|||||||
Reference in New Issue
Block a user