pike.git/
src/
opcodes.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-05-15
1998-05-15 01:29:28 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
f7f8a60631a7339c7153f1e8d789aa4a7f496734 (
15
lines) (+
8
/-
7
)
[
Show
|
Annotate
]
Branch:
7.9
better error messages
Rev: src/opcodes.c:1.23
22:
#include "builtin_functions.h" #include "module_support.h"
-
RCSID("$Id: opcodes.c,v 1.
22
1998/05/
06
13
:
27
:
40
grubba
Exp $");
+
RCSID("$Id: opcodes.c,v 1.
23
1998/05/
15
01
:
29
:
28
hubbe
Exp $");
void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind) {
130:
break; default:
-
error("Cannot cast to array.\n");
+
error("Cannot cast
%s
to array.\n"
,get_name_of_type(sp[-1].type
)
)
;
} break;
148:
break; default:
-
error("Cannot cast to int.\n");
+
error("Cannot cast
%s
to int.\n"
,get_name_of_type(sp[-1].type
)
)
;
} sp[-1].type=T_INT;
170:
break; default:
-
error("Cannot cast to float.\n");
+
error("Cannot cast
%s
to float.\n"
,get_name_of_type(sp[-1].type
)
)
;
f=0.0; }
221:
break; default:
-
error("Cannot cast to string.\n");
+
error("Cannot cast
%s
to string.\n"
,get_name_of_type(sp[-1].type
)
)
;
} sp[-1].type=T_STRING;
248:
break; default:
-
error("Cannot cast to object.\n");
+
error("Cannot cast
%s
to object.\n"
,get_name_of_type(sp[-1].type
)
)
;
} break;
282:
return; default:
-
error("Cannot cast
that
to a program.\n");
+
error("Cannot cast
%s
to a program.\n"
,get_name_of_type(sp[-1].type
)
)
;
} } }