Backup savestring as rl_savestring
This commit is contained in:
parent
61afd5bb22
commit
6b1a8f7590
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21334
@ -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
|
||||
|
||||
|
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user