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.97 2000/08/11 13:52:17 grubba Exp $"); + RCSID("$Id: stralloc.c,v 1.98 2000/08/15 11:41:28 grubba 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:1853:    base,    maxlength);    if(ptr) *ptr=(char *)tmp.ptr;    return ret;   }      PMOD_EXPORT int wide_string_to_svalue_inumber(struct svalue *r,    void * str,    void **ptr,    int base, -  int maxlength, +  ptrdiff_t maxlength,    int shift)   {    PCHARP tmp;    int ret=pcharp_to_svalue_inumber(r,    MKPCHARP(str,shift),    &tmp,    base,    maxlength);    if(ptr) *ptr=(char *)tmp.ptr;    return ret;   }      PMOD_EXPORT int pcharp_to_svalue_inumber(struct svalue *r,    PCHARP str,    PCHARP *ptr,    int base, -  int maxlength) +  ptrdiff_t maxlength)   {    PCHARP str_start;       INT_TYPE xx, neg = 0, is_bignum = 0, implicit_base = 0;    INT_TYPE val;    INT_TYPE c;       maxlength--; /* max_length <= 0 means no max length. */    str_start = str;