remove emit
keyword
This commit is contained in:
parent
2f642899f1
commit
d3c0cf6bae
@ -365,7 +365,6 @@ enum {
|
|||||||
tDEFINED,
|
tDEFINED,
|
||||||
tDO,
|
tDO,
|
||||||
tELSE,
|
tELSE,
|
||||||
tEMIT,
|
|
||||||
t__EMIT,
|
t__EMIT,
|
||||||
tEND,
|
tEND,
|
||||||
tENUM,
|
tENUM,
|
||||||
|
@ -1693,7 +1693,6 @@ static void parse(void)
|
|||||||
case 0:
|
case 0:
|
||||||
/* ignore zero's */
|
/* ignore zero's */
|
||||||
break;
|
break;
|
||||||
case tEMIT:
|
|
||||||
case t__EMIT:
|
case t__EMIT:
|
||||||
emit_flags |= efGLOBAL;
|
emit_flags |= efGLOBAL;
|
||||||
lex(&val,&str);
|
lex(&val,&str);
|
||||||
@ -5405,13 +5404,12 @@ static void statement(int *lastindent,int allow_decl)
|
|||||||
matchtoken(tSTATIC);
|
matchtoken(tSTATIC);
|
||||||
decl_enum(sLOCAL,FALSE);
|
decl_enum(sLOCAL,FALSE);
|
||||||
break;
|
break;
|
||||||
case tEMIT:
|
|
||||||
case t__EMIT: {
|
case t__EMIT: {
|
||||||
extern char *sc_tokens[];
|
extern char *sc_tokens[];
|
||||||
const unsigned char *bck_lptr=lptr-strlen(sc_tokens[tok-tFIRST]);
|
const unsigned char *bck_lptr=lptr-strlen(sc_tokens[tok-tFIRST]);
|
||||||
if (matchtoken('{')) {
|
if (matchtoken('{')) {
|
||||||
emit_flags |= efBLOCK;
|
emit_flags |= efBLOCK;
|
||||||
lastst=tEMIT;
|
lastst=t__EMIT;
|
||||||
break;
|
break;
|
||||||
} /* if */
|
} /* if */
|
||||||
lptr=bck_lptr;
|
lptr=bck_lptr;
|
||||||
|
@ -2171,10 +2171,9 @@ char *sc_tokens[] = {
|
|||||||
"||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--",
|
"||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--",
|
||||||
"...", "..",
|
"...", "..",
|
||||||
"assert", "*begin", "break", "case", "char", "const", "continue", "default",
|
"assert", "*begin", "break", "case", "char", "const", "continue", "default",
|
||||||
"defined", "do", "else", "emit", "__emit", "*end", "enum", "exit", "for",
|
"defined", "do", "else", "__emit", "*end", "enum", "exit", "for", "forward",
|
||||||
"forward", "goto", "if", "native", "new", "operator", "public", "return",
|
"goto", "if", "native", "new", "operator", "public", "return", "sizeof",
|
||||||
"sizeof", "sleep", "state", "static", "stock", "switch", "tagof", "*then",
|
"sleep", "state", "static", "stock", "switch", "tagof", "*then", "while",
|
||||||
"while",
|
|
||||||
"#assert", "#define", "#else", "#elseif", "#emit", "#endif", "#endinput",
|
"#assert", "#define", "#else", "#elseif", "#emit", "#endif", "#endinput",
|
||||||
"#endscript", "#error", "#file", "#if", "#include", "#line", "#pragma",
|
"#endscript", "#error", "#file", "#if", "#include", "#line", "#pragma",
|
||||||
"#tryinclude", "#undef", "#warning",
|
"#tryinclude", "#undef", "#warning",
|
||||||
|
@ -1462,7 +1462,6 @@ static int hier2(value *lval)
|
|||||||
} /* if */
|
} /* if */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
} /* case */
|
} /* case */
|
||||||
case tEMIT:
|
|
||||||
case t__EMIT:
|
case t__EMIT:
|
||||||
paranthese=matchtoken('(');
|
paranthese=matchtoken('(');
|
||||||
emit_flags |= efEXPR;
|
emit_flags |= efEXPR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user