pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-09-19
1998-09-19 13:32:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>
2ff5a5b3281c3772e5d165d945107d5a733d41cf (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Improved argument checking in f_map_array().
Rev: src/builtin_functions.c:1.122
4:
||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
121
1998/09/
18
21
:
37
:
30
hubbe
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
122
1998/09/
19
13
:
32
:
24
grubba
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
2990:
struct svalue *fun; struct array *ret,*foo;
+
if (args < 2)
+
error("Bad number of arguments to "
+
"map_array(array, function, mixed ...).\n");
+
if(sp[-args].type != T_ARRAY) error("Bad argument 1 to map_array().\n");