pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2008-07-13
2008-07-13 15:44:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>
8b07b3d2047cc56578a04d86289ccbb5c8b37184 (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
More fixes...
Rev: src/language.yacc:1.445
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: language.yacc,v 1.
444
2008/07/13
10
:
50
:
22
grubba Exp $
+
|| $Id: language.yacc,v 1.
445
2008/07/13
15
:
44
:
31
grubba Exp $
*/ %pure_parser
643:
yywarning("Extern declared constant."); } if(!is_const($3)) {
+
if (Pike_compiler->compiler_pass == 2) {
yyerror("Constant definition is not constant.");
-
add_constant($1->u.sval.u.string,
&svalue_undefined
,
+
}
+
add_constant($1->u.sval.u.string,
0
,
Pike_compiler->current_modifiers & ~ID_EXTERN); } else { if(!Pike_compiler->num_parse_error)