Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/lib/libedit/readline Pull up revision 1.14 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/d97ea7fada8f
branches:  netbsd-3
changeset: 575932:d97ea7fada8f
user:      tron <tron%NetBSD.org@localhost>
date:      Sat May 28 14:02:20 2005 +0000

description:
Pull up revision 1.14 (requested by agc in ticket #353):
Sync the alternative readline interface with reality:
+ the rl_callback_handler_install takes a pointer to a void function
  which has one char * argument (it's called that way in the readline
  emulation source, otherwise there's no way to pass the line buffer
  to the function which processes the line when EOL is encountered)
+ provide a prototype for that function signature and use it
Makes the callback readline interface work now.

diffstat:

 lib/libedit/readline/readline.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 1ba731219a03 -r d97ea7fada8f lib/libedit/readline/readline.h
--- a/lib/libedit/readline/readline.h   Sat May 28 13:52:41 2005 +0000
+++ b/lib/libedit/readline/readline.h   Sat May 28 14:02:20 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.h,v 1.12 2004/09/08 18:15:37 christos Exp $   */
+/*     $NetBSD: readline.h,v 1.12.2.1 2005/05/28 14:02:20 tron Exp $   */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -45,6 +45,7 @@
 /* typedefs */
 typedef int      Function(const char *, int);
 typedef void     VFunction(void);
+typedef void     VCPFunction(char *);
 typedef char    *CPFunction(const char *, int);
 typedef char   **CPPFunction(const char *, int, int);
 
@@ -166,7 +167,7 @@
 int             rl_bind_key(int, int (*)(int, int));
 int             rl_newline(int, int);
 void            rl_callback_read_char(void);
-void            rl_callback_handler_install(const char *, VFunction *);
+void            rl_callback_handler_install(const char *, VCPFunction *);
 void            rl_callback_handler_remove(void);
 void            rl_redisplay(void);
 int             rl_get_previous_history(int, int);



Home | Main Index | Thread Index | Old Index