summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-01-05 12:24:15 +0000
committerache <ache@FreeBSD.org>1997-01-05 12:24:15 +0000
commit1b80db90c4ae482d7d384f8d2f5c002e1257e7d1 (patch)
tree1f4faa4b9c1c23c042fc4a247641dd799e1c9c58 /contrib
parentc10b6ed605c5b3175385efb0e1cfe709b39a99dc (diff)
downloadFreeBSD-src-1b80db90c4ae482d7d384f8d2f5c002e1257e7d1.zip
FreeBSD-src-1b80db90c4ae482d7d384f8d2f5c002e1257e7d1.tar.gz
Backup savestring as rl_savestring
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libreadline/readline.h1
-rw-r--r--contrib/libreadline/util.c5
2 files changed, 2 insertions, 4 deletions
diff --git a/contrib/libreadline/readline.h b/contrib/libreadline/readline.h
index 4f7d498..c6db3df 100644
--- a/contrib/libreadline/readline.h
+++ b/contrib/libreadline/readline.h
@@ -385,6 +385,7 @@ extern int rl_inhibit_completion;
#define MULT_MATCH 2
#if !defined (savestring)
+#define savestring rl_savestring
extern char *savestring (); /* XXX backwards compatibility */
#endif
diff --git a/contrib/libreadline/util.c b/contrib/libreadline/util.c
index f63293a..225e85c 100644
--- a/contrib/libreadline/util.c
+++ b/contrib/libreadline/util.c
@@ -244,13 +244,10 @@ _rl_qsort_string_compare (s1, s2)
}
#if !defined (SHELL)
-#ifdef savestring
-#undef savestring
-#endif
/* Backwards compatibility, now that savestring has been removed from
all `public' readline header files. */
char *
-savestring (s)
+rl_savestring (s)
char *s;
{
return ((char *)strcpy (xmalloc (1 + (int)strlen (s)), (s)));
OpenPOWER on IntegriCloud