]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
choose-temp.c: Always include libiberty.h.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 27 Nov 1998 10:28:57 +0000 (10:28 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 27 Nov 1998 10:28:57 +0000 (10:28 +0000)
        * choose-temp.c: Always include libiberty.h.  Avoid redundancies.
        * cplus-dem.c: Likewise.  Conform to libiberty.h.
        * pexecute.c: Likewise.
        * splay-tree.c: Likewise.

From-SVN: r23935

libiberty/ChangeLog
libiberty/choose-temp.c
libiberty/cplus-dem.c
libiberty/pexecute.c
libiberty/splay-tree.c

index 93b4cdf15580374dbf7e637050e50ef0f787be71..dba5a95a67603b559b8fade4bd70f63603fdd675 100644 (file)
@@ -1,3 +1,10 @@
+Fri Nov 27 13:26:06 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * choose-temp.c: Always include libiberty.h.  Avoid redundancies.
+       * cplus-dem.c: Likewise.  Conform to libiberty.h.
+       * pexecute.c: Likewise.
+       * splay-tree.c: Likewise.
+
 1998-11-25  Mike Stump  <mrs@wrs.com>
 
        * Makefile.in (splay-tree.o): Add config.h dependency.
index c65661424d8292f0b7a111d6fb5c8e0713c757d0..089bd10208dbae02fa825ff5aaff5b176e4572bb 100644 (file)
@@ -50,12 +50,10 @@ Boston, MA 02111-1307, USA.  */
 #include <stdio.h>     /* May get P_tmpdir.  */
 #endif /* IN_GCC */
 
+#include "libiberty.h"
 #ifdef IN_GCC
-extern char *xmalloc ();
 extern int mkstemps ();
 #else
-#include "ansidecl.h"
-#include "libiberty.h"
 #if defined (__MSDOS__) || defined (_WIN32)
 #define DIR_SEPARATOR '\\'
 #endif
index 05026c1da4e39cc2546c554c0eabb48938bb8400..0d8a99c9baf0019be4fe855f924645fba380c296 100644 (file)
@@ -48,8 +48,7 @@ char * realloc ();
 #undef CURRENT_DEMANGLING_STYLE
 #define CURRENT_DEMANGLING_STYLE work->options
 
-extern char *xmalloc PARAMS((unsigned));
-extern char *xrealloc PARAMS((char *, unsigned));
+#include "libiberty.h"
 
 static const char *mystrstr PARAMS ((const char *, const char *));
 
@@ -3987,22 +3986,22 @@ fatal (str)
   exit (1);
 }
 
-char *
+PTR
 xmalloc (size)
-     unsigned size;
+  size_t size;
 {
-  register char *value = (char *) malloc (size);
+  register PTR value = (PTR) malloc (size);
   if (value == 0)
     fatal ("virtual memory exhausted");
   return value;
 }
 
-char *
+PTR
 xrealloc (ptr, size)
-     char *ptr;
-     unsigned size;
+  PTR ptr;
+  size_t size;
 {
-  register char *value = (char *) realloc (ptr, size);
+  register PTR value = (PTR) realloc (ptr, size);
   if (value == 0)
     fatal ("virtual memory exhausted");
   return value;
index 94fb2484966c8d7944f1210e5a7b05d25e9bb1f4..fde411c92b2ec422044b2f8afdd2d7170e4ea12b 100644 (file)
@@ -53,16 +53,7 @@ Boston, MA 02111-1307, USA.  */
                lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1)
 #endif /* VMS */
 
-#ifdef IN_GCC
-/* ??? Need to find a suitable header file.  */
-#define PEXECUTE_FIRST   1
-#define PEXECUTE_LAST    2
-#define PEXECUTE_ONE     (PEXECUTE_FIRST + PEXECUTE_LAST)
-#define PEXECUTE_SEARCH  4
-#define PEXECUTE_VERBOSE 8
-#else
 #include "libiberty.h"
-#endif
 
 /* stdin file number.  */
 #define STDIN_FILE_NO 0
index 68b9f995f673cc47780be62b356a18acde2b884c..e14b93192c2a64791bb605251c1543a38fa00706 100644 (file)
 #include <stdlib.h>
 #endif
 
-#ifndef IN_GCC
 #include "libiberty.h"
-#else /* IN_GCC */
-extern char* xmalloc ();
-#endif /* IN_GCC */
 #include "splay-tree.h"
 
 static void splay_tree_delete_helper    PARAMS((splay_tree,