pike.git/
src/
encode.c
Branch:
Tag:
Non-build tags
All tags
No tags
2008-07-31
2008-07-31 10:29:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>
6cee1e53d3a95cccdba3b8288049862e9ffac6e8 (
14
lines) (+
10
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Improved diagnostics.
Rev: src/encode.c:1.284
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: encode.c,v 1.
283
2008/
06
/
29
12
:
50
:
03
nilsson
Exp $
+
|| $Id: encode.c,v 1.
284
2008/
07
/
31
10
:
29
:
56
grubba
Exp $
*/ #include "global.h"
2495:
} push_text (buf); n++; if (other) {
-
push_constant_text ("%
O\n
");
+
push_constant_text ("%
O (%t)\n
");
push_svalue (other);
-
f_sprintf (
2
); n++;
+
push_text(get_name_of_type(other->type));
+
f_sprintf (
3
); n++;
} f_add (n);
3017:
case TAG_FUNCTION: decode_value2(data);
+
stack_dup(); /* For diagnostic purposes... */
switch(num) {
3075:
} if(Pike_sp[-1].type != T_FUNCTION && data->pickyness)
-
decode_error(
NULL
, Pike_sp - 1, "Failed to decode function. Got: ");
+
decode_error(
Pike_sp - 2
, Pike_sp - 1,
+
"Failed to decode function. Got: ");
-
+
stack_pop_keep_top();
+
break;