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:
parent
75280cae75
commit
ebed999d17
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user