pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2003-01-13
2003-01-13 15:04:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>
1a19e457c08a3a7ebea122e223cd3f485c1a017c (
8
lines) (+
6
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Warn about using objects as types.
Rev: src/language.yacc:1.312
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.
311
2003/01/13 04:
01:36
mast
Exp $
+
|| $Id: language.yacc,v 1.
312
2003/01/13
15:
04:
59
grubba
Exp $
*/ %pure_parser
113:
/* This is the grammar definition of Pike. */ #include "global.h"
-
RCSID("$Id: language.yacc,v 1.
311
2003/01/13 04:
01:36
mast
Exp $");
+
RCSID("$Id: language.yacc,v 1.
312
2003/01/13
15:
04:
59
grubba
Exp $");
#ifdef HAVE_MEMORY_H #include <memory.h> #endif
1266:
Pike_sp[-1].subtype=f; Pike_sp[-1].type=T_FUNCTION; }else{
+
if (Pike_compiler->compiler_pass == 2) {
+
yywarning("Using object as program identifier.");
+
}
f_object_program(1); } }