Mercurial > hg > octave-lyh
changeset 2997:e67089e1f2c8
[project @ 1997-05-22 21:38:48 by jwe]
author | jwe |
---|---|
date | Thu, 22 May 1997 21:38:48 +0000 |
parents | 9d4e3a9de17e |
children | 692ba9d441ec |
files | readline/ChangeLog readline/history.h readline/readline.h readline/rlconf.h |
diffstat | 4 files changed, 23 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/readline/ChangeLog +++ b/readline/ChangeLog @@ -1,3 +1,9 @@ +Thu May 22 16:00:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> + + * history.h, readline.h [__cplusplus]: Add extern "C" declarations. + + * rlconf.h: Enable paren matching. + Tue Mar 23 14:36:51 1993 Brian Fox (bfox@eos.crseo.ucsb.edu) * readline.c (rl_copy): Changed name to rl_copy_text.
--- a/readline/history.h +++ b/readline/history.h @@ -22,6 +22,10 @@ #ifndef _HISTORY_H_ #define _HISTORY_H_ +#ifdef __cplusplus +extern "C" { +#endif + #if !defined (_FUNCTION_DEF) # define _FUNCTION_DEF typedef int Function (); @@ -220,4 +224,8 @@ application and not expanded. */ extern Function *history_inhibit_expansion_function; +#ifdef __cplusplus +} +#endif + #endif /* !_HISTORY_H_ */
--- a/readline/readline.h +++ b/readline/readline.h @@ -23,6 +23,10 @@ #if !defined (_READLINE_H_) #define _READLINE_H_ +#ifdef __cplusplus +extern "C" { +#endif + #if defined (READLINE_LIBRARY) # include "keymaps.h" # include "tilde.h" @@ -405,4 +409,8 @@ extern char *savestring (); /* XXX backwards compatibility */ #endif +#ifdef __cplusplus +} +#endif + #endif /* _READLINE_H_ */
--- a/readline/rlconf.h +++ b/readline/rlconf.h @@ -32,7 +32,7 @@ /* If defined, readline shows opening parens and braces when closing paren or brace entered. */ -/* #define PAREN_MATCHING */ +#define PAREN_MATCHING /* This definition is needed by readline.c, rltty.c, and signals.c. */ /* If on, then readline handles signals in a way that doesn't screw. */