pike.git/
src/
program.c
Branch:
Tag:
Non-build tags
All tags
No tags
2002-07-09
2002-07-09 16:48:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>
de3b5149de0e3d07760c2c7284e1000e0d383a2d (
11
lines) (+
8
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Improved diagnostics in LFUN verification pass.
Rev: src/program.c:1.439
5:
\*/ /**/ #include "global.h"
-
RCSID("$Id: program.c,v 1.
438
2002/07/
03
09
:
16:
47
grubba Exp $");
+
RCSID("$Id: program.c,v 1.
439
2002/07/
09
16:
48:34
grubba Exp $");
#include "program.h" #include "object.h" #include "dynamic_buffer.h"
3992:
#endif /* PIKE_DEBUG */ if (!pike_types_le(type, lfun_type->u.type)) { if (!match_types(type, lfun_type->u.type)) {
-
yytype
_
error
("
Function
type
mismatch", lfun_type->u.type, type, 0);
+
my
_
yyerror
("
Type
mismatch
for callback function %s():
",
+
name->str);
+
yytype_error(NULL,
lfun_type->u.type, type, 0);
} else if (lex.pragmas & ID_STRICT_TYPES) {
-
yytype_error
("
Function
type
mismatch", lfun_type->u.type, type,
+
yywarning
("
Type
mismatch
for callback function %s():
",
+
name->str);
+
yytype_error(NULL,
lfun_type->u.type, type,
YYTE_IS_WARNING); } }