pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:18:      #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.68 1999/10/22 16:50:55 noring Exp $"); + RCSID("$Id: stralloc.c,v 1.69 1999/10/23 00:43:44 noring Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3      /* Experimental dynamic hash length */   #ifndef HASH_PREFIX   static unsigned int HASH_PREFIX=64;   static unsigned int need_more_hash_prefix=0;   #endif   
pike.git/src/stralloc.c:1874: Inside #if defined(AUTO_BIGNUM)
   *r = *--sp;    }   #endif /* AUTO_BIGNUM */       return 1;   }      int convert_stack_top_string_to_inumber(int base)   {    struct svalue r; +  int i;       if(sp[-1].type != T_STRING)    error("Cannot convert stack top to integer number.\n");    -  string_to_svalue_inumber(&r, sp[-1].u.string->str, 0, base, 0); +  i = string_to_svalue_inumber(&r, sp[-1].u.string->str, 0, base, 0);       free_string(sp[-1].u.string);    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. */   double STRTOD_PCHARP(PCHARP nptr, PCHARP *endptr)   {    register PCHARP s;    short int sign;       /* The number so far. */