pike.git / src / operators.c

version» Context lines:

pike.git/src/operators.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: operators.c,v 1.251 2009/08/05 09:43:19 mast Exp $ + || $Id: operators.c,v 1.252 2009/08/05 11:56:18 mast Exp $   */      #include "global.h"   #include <math.h>   #include "interpret.h"   #include "svalue.h"   #include "multiset.h"   #include "mapping.h"   #include "array.h"   #include "stralloc.h"
pike.git/src/operators.c:50:       /* These calculations should always give some margin based on the size. */    /* The calculations utilize that log10(256) ~= 2.4 < 5/2. */       /* One extra char for the sign. */   #define MAX_INT_SPRINTF_LEN (1 + (SIZEOF_INT_TYPE * 5 + 1) / 2)       /* One quarter of the float is the exponent. */   #define MAX_FLOAT_EXP_LEN ((SIZEOF_FLOAT_TYPE * 5 + 4) / 8)    /* Six extra chars: Mantissa sign, decimal point, zero before the -  * decimal point, the 'e' exponent sign, and an extra digit due +  * decimal point, the 'e', the exponent sign, and an extra digit due    * to the mantissa/exponent split. */   #define MAX_FLOAT_SPRINTF_LEN (6 + PIKEFLOAT_DIG + MAX_FLOAT_EXP_LEN)       /* Enough to hold a Pike float or int in textform including a trailing \0    */   #define MAX_NUM_BUF (MAXIMUM(MAX_INT_SPRINTF_LEN,MAX_FLOAT_SPRINTF_LEN)+1)      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {   #ifdef PIKE_SECURITY