Backup savestring as rl_savestring

This commit is contained in:
Andrey A. Chernov 1997-01-05 12:24:15 +00:00
parent 61afd5bb22
commit 6b1a8f7590
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21334
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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)));