Branch: Tag:

1996-10-12

1996-10-12 18:05:29 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

some fixes to the free() / malloc() return type tests

Rev: src/configure.in:1.11

535:   #if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)   #include <memory.h>   #endif + char foo;    - void free(); -  +    ], - [], + [ +  foo=free(malloc(2))[0]; + ],    pike_cv_sys_free_return='char *'   ,    pike_cv_sys_free_return='void'
570:   #include <memory.h>   #endif    - #define POINTER void * - POINTER malloc(size_t); -  - #ifdef FREE_RETURNS_VOID - void free(POINTER); - #else - int free(POINTER); - #endif -  + char foo;   ], - [], -  pike_cv_sys_malloc_return="void *" - , + [ +  foo=malloc(2)[0]; + ],    pike_cv_sys_malloc_return="char *" -  + , +  pike_cv_sys_malloc_return="void *"   )])      AC_MSG_RESULT($pike_cv_sys_malloc_return)