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 "global.h" #include <math.h>
-
RCSID("$Id: operators.c,v 1.
133
2001/
03
/
28
15:
07
:
39
grubba Exp $");
+
RCSID("$Id: operators.c,v 1.
134
2001/
04
/
01
15:
40
:
22
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 "pike_memory.h"
pike.git/src/operators.c:1724:
push_object_type(0, p->id); pop_stack(); push_type_value(pop_unfinished_type()); } /* FALL_THROUGH */ case T_TYPE: { /* a ^ b == (a&~b)|(~a&b) */ struct pike_type *a; struct pike_type *b;
-
copy_type(a, sp[-2].u.type);
-
copy_type(b, sp[-1].u.type);
+
copy_
pike_
type(a, sp[-2].u.type);
+
copy_
pike_
type(b, sp[-1].u.type);
o_compl(); /* ~b */ o_and(); /* a&~b */ push_type_value(a); o_compl(); /* ~a */ push_type_value(b); o_and(); /* ~a&b */ o_or(); /* (a&~b)|(~a&b) */ return; }