diff options
author | obrien <obrien@FreeBSD.org> | 2004-01-15 19:37:45 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-01-15 19:37:45 +0000 |
commit | 8e12bab4c9847240a5b7e82713ff33460041cf62 (patch) | |
tree | 3647827544841159b30f4c02a0847298f7329a1a | |
parent | 32b034d034b5eb777a4e1f90afab9e5da09082db (diff) | |
download | FreeBSD-src-8e12bab4c9847240a5b7e82713ff33460041cf62.zip FreeBSD-src-8e12bab4c9847240a5b7e82713ff33460041cf62.tar.gz |
Provide an escape to our "savestring" compatibility with ancient readline
versions madness. Define 'RL_NO_COMPAT' and be worry free.
-rw-r--r-- | contrib/libreadline/readline.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/libreadline/readline.h b/contrib/libreadline/readline.h index d42510d..c142bb4 100644 --- a/contrib/libreadline/readline.h +++ b/contrib/libreadline/readline.h @@ -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 } |