pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.c:2412:
0, 0, 0); pop_n_elems(2); if (t) { push_type_value(t); } else { push_undefined(); } return; }
-
/* FIXME: Support types? */
-
+
default: { int args = 2; SIMPLE_ARG_TYPE_ERROR("`-", 1, "int|float|string|mapping|multiset|array|object"); } } } /*! @decl mixed `-(mixed arg1)
pike.git/src/operators.c:4740:
case T_INT: if(INT_TYPE_NEG_OVERFLOW(Pike_sp[-1].u.integer)) { convert_stack_top_to_bignum(); goto do_lfun_negate; } SET_SVAL(Pike_sp[-1], T_INT, NUMBER_NUMBER, integer, -Pike_sp[-1].u.integer); return;
+
case T_TYPE:
+
o_compl();
+
return;
+
default: PIKE_ERROR("`-", "Bad argument to unary minus.\n", Pike_sp, 1); } } static void string_or_array_range (int bound_types, struct svalue *ind, INT_TYPE low, INT_TYPE high) /* ind is modified to point to the range. low and high are INT_TYPE to