mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Fix savestring & gdb conflict
Moreover, this fix not breaks any pgm which uses readline's savestring
This commit is contained in:
parent
2dfe718316
commit
dd970fbdb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7114
@ -3362,13 +3362,10 @@ rl_getc (stream)
|
||||
}
|
||||
|
||||
#if !defined (SHELL)
|
||||
#ifdef savestring
|
||||
#undef savestring
|
||||
#endif
|
||||
/* Backwards compatibilty, 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)));
|
||||
|
@ -283,7 +283,8 @@ extern int rl_forced_update_display ();
|
||||
#define RL_PROMPT_END_IGNORE '\002'
|
||||
|
||||
#if !defined (savestring)
|
||||
extern char *savestring (); /* XXX backwards compatibility */
|
||||
#define savestring rl_savestring /* XXX backwards compatibility */
|
||||
#endif
|
||||
extern char *rl_savestring ();
|
||||
|
||||
#endif /* _READLINE_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user