pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.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: stralloc.c,v 1.156 2003/05/15 15:33:31 mast Exp $ + || $Id: stralloc.c,v 1.157 2003/07/30 20:29:27 mast Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "dynamic_buffer.h"   #include "pike_macros.h"   #include "pike_memory.h"   #include "pike_error.h"   #include "gc.h"
pike.git/src/stralloc.c:17:   #include "bignum.h"   #include "interpret.h"   #include "block_alloc.h"   #include "operators.h"      #include <errno.h>   #include <float.h>   #include <ctype.h>   #include <math.h>    - RCSID("$Id: stralloc.c,v 1.156 2003/05/15 15:33:31 mast Exp $"); + RCSID("$Id: stralloc.c,v 1.157 2003/07/30 20:29:27 mast 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:2294:    MKPCHARP(str,0),    &tmp,    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, +  void *ptr,    int base,    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; +  if(ptr) *(p_wchar0 **)ptr=tmp.ptr;    return ret;   }      PMOD_EXPORT int pcharp_to_svalue_inumber(struct svalue *r,    PCHARP str,    PCHARP *ptr,    int base,    ptrdiff_t maxlength)   {    /* Note: Code duplication in STRTOL and STRTOL_PCHARP. */