pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:2581:
{ INT_TYPE end = index; INT32 numargs = 3; INT32 i; if (THIS->args) numargs += THIS->args->size; if (!end_or_none) { if (index < 0)
-
index_error("pike_frame->`[]",
Pike_sp-
args,
args,
NULL, Pike_sp-args,
+
index_error("pike_frame->`[]", args, NULL, Pike_sp-args,
"Indexing with negative index (%"PRINTPIKEINT"d)\n", index); else if (index >= numargs)
-
index_error("pike_frame->`[]",
Pike_sp-
args,
args,
NULL, Pike_sp-args,
+
index_error("pike_frame->`[]", args, NULL, Pike_sp-args,
"Indexing with too large index (%"PRINTPIKEINT"d)\n", index); } else end = end_or_none->u.integer; pop_n_elems(args); if (end_or_none) { if ((end < 0) || (end < index) || (index >= numargs)) { f_aggregate(0); return;
pike.git/src/builtin.cmod:2646:
/*! @decl mixed `[]=(int index, mixed value) */ PIKEFUN mixed `[]=(int index, mixed value) { INT32 numargs = 3; if (THIS->args) numargs += THIS->args->size; if ((index < -numargs) || (index >= numargs))
-
index_error("pike_frame->`[]=",
Pike_sp-
args,
args,
NULL, Pike_sp-args,
+
index_error("pike_frame->`[]=", args, NULL, Pike_sp-args,
"Index %"PRINTPIKEINT"d is out of array range 0..%d,\n", index, numargs-1); else if (index < 0) index += numargs; if (args > 2) { pop_n_elems(args - 2); args = 2; }
pike.git/src/builtin.cmod:3740:
TYPE_FIELD types; for(e=0;e<args;e++) { if(TYPEOF(real_args[e]) == T_OBJECT && real_args[e].u.object->prog == automap_marker_program && OBJ2_AUTOMAP_MARKER(real_args[e].u.object)->depth >= d) { if(TYPEOF(tmpargs[e]) != T_ARRAY) index_error("__automap__",
-
Pike_sp-args,
+
args, tmpargs, NULL, "Automap on non-array.\n"); tmp=tmpargs[e].u.array->size; if(tmp < size) size=tmp; } }