Provide an escape to our "savestring" compatibility with ancient readline

versions madness.  Define 'RL_NO_COMPAT' and be worry free.
This commit is contained in:
David E. O'Brien 2004-01-15 19:37:45 +00:00
parent 75280cae75
commit ebed999d17

View File

@ -430,7 +430,7 @@ extern char *rl_filename_completion_function PARAMS((const char *, int));
extern int rl_completion_mode PARAMS((rl_command_func_t *));
#if 1
#if !defined(RL_NO_COMPAT)
/* Backwards compatibility (compat.c). These will go away sometime. */
extern void free_undo_list PARAMS((void));
extern int maybe_save_line PARAMS((void));
@ -793,10 +793,12 @@ struct readline_state {
extern int rl_save_state PARAMS((struct readline_state *));
extern int rl_restore_state PARAMS((struct readline_state *));
#if !defined(RL_NO_COMPAT)
#if !defined (savestring)
#define savestring rl_savestring
extern char *savestring __P((char *)); /* XXX backwards compatibility */
#endif
#endif
#ifdef __cplusplus
}