pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2000-08-18
2000-08-18 22:05:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>
b5c905d0f04fcf84918c06351737b90a40b39d4c (
14
lines) (+
8
/-
6
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed a few warnings.
Rev: src/language.yacc:1.208
110:
/* This is the grammar definition of Pike. */ #include "global.h"
-
RCSID("$Id: language.yacc,v 1.
207
2000/08/
16
16
:
02
:
08
grubba Exp $");
+
RCSID("$Id: language.yacc,v 1.
208
2000/08/
18
22
:
05
:
40
grubba Exp $");
#ifdef HAVE_MEMORY_H #include <memory.h> #endif
474:
constant_name: TOK_IDENTIFIER '=' safe_expr0 {
-
ptrdiff_t tmp;
+
/* This can be made more lenient in the future */ /* Ugly hack to make sure that $3 is optimized */
-
tmp=Pike_compiler->compiler_pass;
+
{
+
int
tmp=Pike_compiler->compiler_pass;
$3=mknode(F_COMMA_EXPR,$3,0); Pike_compiler->compiler_pass=tmp;
-
+
}
if ((Pike_compiler->current_modifiers & ID_EXTERN) && (Pike_compiler->compiler_pass == 1)) {
497:
} else { if(!Pike_compiler->num_parse_error) {
-
tmp=eval_low($3);
+
ptrdiff_t
tmp=eval_low($3);
if(tmp < 1) { yyerror("Error in constant definition.");