pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:20:      #include <errno.h>   #include <float.h>   #include <ctype.h>   #include <math.h>      #ifndef HUGE   #define HUGE HUGE_VAL   #endif /*!HUGE*/    - RCSID("$Id: stralloc.c,v 1.140 2002/01/16 02:54:19 nilsson Exp $"); + RCSID("$Id: stralloc.c,v 1.141 2002/05/10 23:55:51 nilsson Exp $");      /* #define STRALLOC_USE_PRIMES */      #ifdef STRALLOC_USE_PRIMES      #define SET_HSIZE(X) htable_size=hashprimes[(X)]   #define HMODULO(X) ((X) % htable_size)      #else   
pike.git/src/stralloc.c:2383: Inside #if defined(AUTO_BIGNUM)
   * in some situations that might not be desirable...    * take care.    * /Hubbe    *    * It could probably also be faster...    */    push_int(base);    convert_stack_top_with_base_to_bignum();    if(neg) o_negate();    -  *r = *--sp; +  *r = *--Pike_sp;    }   #endif /* AUTO_BIGNUM */       return 1;   }      PMOD_EXPORT int convert_stack_top_string_to_inumber(int base)   {    struct svalue r;    int i;    -  if(sp[-1].type != T_STRING) +  if(Pike_sp[-1].type != T_STRING)    Pike_error("Cannot convert stack top to integer number.\n");    -  i=pcharp_to_svalue_inumber(&r, MKPCHARP_STR(sp[-1].u.string), 0, base, 0); +  i=pcharp_to_svalue_inumber(&r, MKPCHARP_STR(Pike_sp[-1].u.string), 0, base, 0);    -  free_string(sp[-1].u.string); -  sp[-1] = r; +  free_string(Pike_sp[-1].u.string); +  Pike_sp[-1] = r;       return i;   }      /* Convert PCHARP to a double. If ENDPTR is not NULL, a pointer to the    character after the last one used in the number is put in *ENDPTR. */   PMOD_EXPORT double STRTOD_PCHARP(PCHARP nptr, PCHARP *endptr)   {    register PCHARP s;    short int sign;