]> git.saurik.com Git - bison.git/blobdiff - src/allocate.c
Use prototypes if the compiler understands them.
[bison.git] / src / allocate.c
index 9f07b0167f48042170262038157b74d6c2a83cf7..c79cae164b9cc2e82fa402f2294a7b27cf0e429e 100644 (file)
@@ -29,13 +29,15 @@ extern char *calloc ();
 extern char *realloc ();
 #endif
 
-extern void done ();
+char *xmalloc PARAMS((register unsigned));
+char *xrealloc PARAMS((register char *, register unsigned));
+
+extern void done PARAMS((int));
 
 extern char *program_name;
 
 char *
-xmalloc (n)
-     register unsigned n;
+xmalloc (register unsigned n)
 {
   register char *block;
 
@@ -53,9 +55,7 @@ xmalloc (n)
 }
 
 char *
-xrealloc (block, n)
-     register char *block;
-     register unsigned n;
+xrealloc (register char *block, register unsigned n)
 {
   /* Avoid uncertainty about what an arg of 0 will do.  */
   if (n == 0)