mirror of git://gcc.gnu.org/git/gcc.git
choose-temp.c: Always include libiberty.h.
* 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
This commit is contained in:
parent
45254bf682
commit
9b1a92d882
|
@ -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>
|
1998-11-25 Mike Stump <mrs@wrs.com>
|
||||||
|
|
||||||
* Makefile.in (splay-tree.o): Add config.h dependency.
|
* Makefile.in (splay-tree.o): Add config.h dependency.
|
||||||
|
|
|
@ -50,12 +50,10 @@ Boston, MA 02111-1307, USA. */
|
||||||
#include <stdio.h> /* May get P_tmpdir. */
|
#include <stdio.h> /* May get P_tmpdir. */
|
||||||
#endif /* IN_GCC */
|
#endif /* IN_GCC */
|
||||||
|
|
||||||
|
#include "libiberty.h"
|
||||||
#ifdef IN_GCC
|
#ifdef IN_GCC
|
||||||
extern char *xmalloc ();
|
|
||||||
extern int mkstemps ();
|
extern int mkstemps ();
|
||||||
#else
|
#else
|
||||||
#include "ansidecl.h"
|
|
||||||
#include "libiberty.h"
|
|
||||||
#if defined (__MSDOS__) || defined (_WIN32)
|
#if defined (__MSDOS__) || defined (_WIN32)
|
||||||
#define DIR_SEPARATOR '\\'
|
#define DIR_SEPARATOR '\\'
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -48,8 +48,7 @@ char * realloc ();
|
||||||
#undef CURRENT_DEMANGLING_STYLE
|
#undef CURRENT_DEMANGLING_STYLE
|
||||||
#define CURRENT_DEMANGLING_STYLE work->options
|
#define CURRENT_DEMANGLING_STYLE work->options
|
||||||
|
|
||||||
extern char *xmalloc PARAMS((unsigned));
|
#include "libiberty.h"
|
||||||
extern char *xrealloc PARAMS((char *, unsigned));
|
|
||||||
|
|
||||||
static const char *mystrstr PARAMS ((const char *, const char *));
|
static const char *mystrstr PARAMS ((const char *, const char *));
|
||||||
|
|
||||||
|
@ -3987,22 +3986,22 @@ fatal (str)
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
PTR
|
||||||
xmalloc (size)
|
xmalloc (size)
|
||||||
unsigned size;
|
size_t size;
|
||||||
{
|
{
|
||||||
register char *value = (char *) malloc (size);
|
register PTR value = (PTR) malloc (size);
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
fatal ("virtual memory exhausted");
|
fatal ("virtual memory exhausted");
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
PTR
|
||||||
xrealloc (ptr, size)
|
xrealloc (ptr, size)
|
||||||
char *ptr;
|
PTR ptr;
|
||||||
unsigned size;
|
size_t size;
|
||||||
{
|
{
|
||||||
register char *value = (char *) realloc (ptr, size);
|
register PTR value = (PTR) realloc (ptr, size);
|
||||||
if (value == 0)
|
if (value == 0)
|
||||||
fatal ("virtual memory exhausted");
|
fatal ("virtual memory exhausted");
|
||||||
return value;
|
return value;
|
||||||
|
|
|
@ -53,16 +53,7 @@ Boston, MA 02111-1307, USA. */
|
||||||
lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1)
|
lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1)
|
||||||
#endif /* VMS */
|
#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"
|
#include "libiberty.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
/* stdin file number. */
|
/* stdin file number. */
|
||||||
#define STDIN_FILE_NO 0
|
#define STDIN_FILE_NO 0
|
||||||
|
|
|
@ -31,11 +31,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef IN_GCC
|
|
||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#else /* IN_GCC */
|
|
||||||
extern char* xmalloc ();
|
|
||||||
#endif /* IN_GCC */
|
|
||||||
#include "splay-tree.h"
|
#include "splay-tree.h"
|
||||||
|
|
||||||
static void splay_tree_delete_helper PARAMS((splay_tree,
|
static void splay_tree_delete_helper PARAMS((splay_tree,
|
||||||
|
|
Loading…
Reference in New Issue