pike.git / src / operators.c

version» Context lines:

pike.git/src/operators.c:24:   #include "object.h"   #include "pike_types.h"   #include "module_support.h"   #include "pike_macros.h"   #include "bignum.h"   #include "builtin_functions.h"   #include "cyclic.h"   #include "pike_compiler.h"      #define OP_DIVISION_BY_ZERO_ERROR(FUNC) \ -  math_error(FUNC, Pike_sp-2, 2, 0, "Division by zero.\n") +  math_error(FUNC, 2, 0, "Division by zero.\n")   #define OP_MODULO_BY_ZERO_ERROR(FUNC) \ -  math_error(FUNC, Pike_sp-2, 2, 0, "Modulo by zero.\n") +  math_error(FUNC, 2, 0, "Modulo by zero.\n")       /* This calculation should always give some margin based on the size. */    /* It utilizes that log10(256) ~= 2.4 < 5/2. */    /* One extra char for the sign and one for the \0 terminator. */   #define MAX_INT_SPRINTF_LEN (2 + (SIZEOF_INT_TYPE * 5 + 1) / 2)       /* Enough to hold a Pike float or int in textform    */   #define MAX_NUM_BUF (MAXIMUM(MAX_INT_SPRINTF_LEN,MAX_FLOAT_SPRINTF_LEN))