pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.c:1:
/*\ ||| This file a part of Pike, and is copyright by Fredrik Hubinette ||| Pike is distributed as GPL (General Public License) ||| See the files COPYING and DISCLAIMER for more information. \*/ #include <math.h> #include "global.h"
-
RCSID("$Id: operators.c,v 1.
10
1997/03/
08
12
:
54
:
07
hubbe
Exp $");
+
RCSID("$Id: operators.c,v 1.
11
1997/03/
11
23
:
32
:
32
grubba
Exp $");
#include "interpret.h" #include "svalue.h" #include "multiset.h" #include "mapping.h" #include "array.h" #include "stralloc.h" #include "opcodes.h" #include "operators.h" #include "language.h" #include "memory.h"
pike.git/src/operators.c:1226:
error("Too few arguments to `[]\n"); break; case 2: if(sp[-1].type==T_STRING) sp[-1].subtype=0; o_index(); break; case 3: o_range(); break; default:
-
error("Too
manu
arguments to `[]\n");
+
error("Too
many
arguments to `[]\n");
} } void f_arrow(INT32 args) { switch(args) { case 0: case 1: error("Too few arguments to `->\n"); break; case 2: if(sp[-1].type==T_STRING) sp[-1].subtype=1; o_index(); break; default:
-
error("Too
manu
arguments to `->\n");
+
error("Too
many
arguments to `->\n");
} } void f_sizeof(INT32 args) { INT32 tmp; if(args<1) error("Too few arguments to sizeof()\n"); tmp=pike_sizeof(sp-args);