projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01aed9a
)
[__STDC__ or _MSC_VER]:
author
Richard M. Stallman
<rms@gnu.org>
Fri, 3 Jan 1997 01:24:27 +0000
(
01:24
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 3 Jan 1997 01:24:27 +0000
(
01:24
+0000)
Declare calloc and realloc to return void *.
src/allocate.c
patch
|
blob
|
history
diff --git
a/src/allocate.c
b/src/allocate.c
index
a13de7c
..
9f07b01
100644
(file)
--- a/
src/allocate.c
+++ b/
src/allocate.c
@@
-21,8
+21,14
@@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include "system.h"
+#if defined (__STDC__) || defined (_MSC_VER)
+extern void *calloc ();
+extern void *realloc ();
+#else
extern char *calloc ();
extern char *realloc ();
+#endif
+
extern void done ();
extern char *program_name;