aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@rabi.phys.columbia.edu>1998-12-15 11:23:27 +0000
committerDave Brolley <brolley@gcc.gnu.org>1998-12-15 06:23:27 -0500
commitc49445e0012a736c72876d6ebb28a3ee554c1e67 (patch)
tree5c481c8ca58453f070db1b092bbe2a81d08d45ca /gcc/cppfiles.c
parent941e09b65f4e06def819f5624d6fb6d25417b1e1 (diff)
downloadgcc-c49445e0012a736c72876d6ebb28a3ee554c1e67.zip
gcc-c49445e0012a736c72876d6ebb28a3ee554c1e67.tar.gz
gcc-c49445e0012a736c72876d6ebb28a3ee554c1e67.tar.bz2
cppalloc.c: Add xstrdup here.
1998-12-15 Zack Weinberg <zack@rabi.phys.columbia.edu> * cppalloc.c: Add xstrdup here. * cpplib.h: Remove savestring prototype. * cpplib.c: Remove savestring function. s/savestring/xstrdup/ throughout. * cppfiles.c: s/savestring/xstrdup/ throughout. From-SVN: r24327
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 8c01cdd..108bf87 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -74,7 +74,7 @@ append_include_chain (pfile, list, dir, sysp)
struct stat st;
unsigned int len;
- dir = savestring (dir);
+ dir = xstrdup (dir);
simplify_pathname (dir);
if (stat (dir, &st))
{
@@ -410,7 +410,7 @@ find_include_file (pfile, fname, search_start, ihash, before)
}
*before = 0;
*ihash = ih;
- ih->nshort = savestring (fname);
+ ih->nshort = xstrdup (fname);
ih->control_macro = NULL;
/* If the pathname is absolute, just open it. */
@@ -539,7 +539,7 @@ read_name_map (pfile, dirname)
map_list_ptr = ((struct file_name_map_list *)
xmalloc (sizeof (struct file_name_map_list)));
- map_list_ptr->map_list_name = savestring (dirname);
+ map_list_ptr->map_list_name = xstrdup (dirname);
name = (char *) alloca (strlen (dirname) + strlen (FILE_NAME_MAP_FILE) + 2);
strcpy (name, dirname);
@@ -772,7 +772,7 @@ actual_directory (pfile, fname)
size_t dlen;
struct file_name_list *x;
- dir = savestring (fname);
+ dir = xstrdup (fname);
last_slash = rindex (dir, '/');
if (last_slash)
{