Branch: Tag:

2003-02-24

2003-02-24 13:36:45 by Henrik Grubbström (Grubba) <grubba@grubba.org>

realloc(NULL, SZ) check and fallback.

Rev: src/acconfig.h:1.118
Rev: src/configure.in:1.700
Rev: src/port.c:1.61
Rev: src/port.h:1.47

2:   || 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: acconfig.h,v 1.117 2003/02/14 19:53:25 mast Exp $ + || $Id: acconfig.h,v 1.118 2003/02/24 13:36:45 grubba Exp $   */      #ifndef MACHINE_H
248:   /* Define if gettimeofday takes to arguments */   #undef GETTIMEOFDAY_TAKES_TWO_ARGS    + /* Define if realloc(NULL, SZ) works. */ + #undef HAVE_WORKING_REALLOC_NULL +    /* Define if gethrvtime works (i.e. even without ptime). */   #undef HAVE_WORKING_GETHRVTIME   
592:   #endif /* HAVE_WORKING___FUNCTION__ */   #endif /* !HAVE_WORKING___FUNC__ */    + #ifndef HAVE_WORKING_REALLOC_NULL + #define realloc(PTR, SZ) pike_realloc((PTR),(SZ)) + #endif +    /* NOTE:    * PIKE_CONCAT doesn't get defined if there isn't any way to    * concatenate symbols