pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
1996-10-12
1996-10-12 18:05:29 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
b5b9ae17e899d91c8ef816b49cd1b885f5b7a023 (
26
lines) (+
11
/-
15
)
[
Show
|
Annotate
]
Branch:
7.9
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)