pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.c:2828:
*! @[`|()], @[lfun::`&()], @[lfun::``&()] */ PMOD_EXPORT void f_and(INT32 args) { switch(args) { case 0: SIMPLE_WRONG_NUM_ARGS_ERROR("`&", 1); case 1: return; case 2: o_and(); return; default:
-
if(TYPEOF(sp[-args]) == T_OBJECT)
-
{
-
CALL_OPERATOR(LFUN_AND, args);
-
}else{
+
speedup(args, o_and); } }
-
}
+
static int generate_and(node *n) { struct compilation *c = THIS_COMPILATION; switch(count_args(CDR(n))) { case 1: do_docode(CDR(n),0); return 1;
pike.git/src/operators.c:3078:
*! @[`&()], @[lfun::`|()], @[lfun::``|()] */ PMOD_EXPORT void f_or(INT32 args) { switch(args) { case 0: SIMPLE_WRONG_NUM_ARGS_ERROR("`|", 1); case 1: return; case 2: o_or(); return; default:
-
if(TYPEOF(sp[-args]) == T_OBJECT)
-
{
-
CALL_OPERATOR(LFUN_OR, args);
-
} else {
+
speedup(args, o_or); } }
-
}
+
static int generate_or(node *n) { struct compilation *c = THIS_COMPILATION; switch(count_args(CDR(n))) { case 1: do_docode(CDR(n),0); return 1;
pike.git/src/operators.c:3318:
*! @[`&()], @[`|()], @[lfun::`^()], @[lfun::``^()] */ PMOD_EXPORT void f_xor(INT32 args) { switch(args) { case 0: SIMPLE_WRONG_NUM_ARGS_ERROR("`^", 1); case 1: return; case 2: o_xor(); return; default:
-
if(TYPEOF(sp[-args]) == T_OBJECT)
-
{
-
CALL_OPERATOR(LFUN_XOR, args);
-
} else {
+
speedup(args, o_xor); } }
-
}
+
static int generate_xor(node *n) { struct compilation *c = THIS_COMPILATION; switch(count_args(CDR(n))) { case 1: do_docode(CDR(n),0); return 1;