Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit provide rl_on_newline



details:   https://anonhg.NetBSD.org/src/rev/e97df0a2940d
branches:  trunk
changeset: 756839:e97df0a2940d
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 04 20:29:18 2010 +0000

description:
provide rl_on_newline

diffstat:

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

diffs (45 lines):

diff -r 2c5ba18af54e -r e97df0a2940d lib/libedit/readline.c
--- a/lib/libedit/readline.c    Wed Aug 04 19:23:15 2010 +0000
+++ b/lib/libedit/readline.c    Wed Aug 04 20:29:18 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.c,v 1.89 2010/04/15 00:57:33 christos Exp $   */
+/*     $NetBSD: readline.c,v 1.90 2010/08/04 20:29:18 christos Exp $   */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.89 2010/04/15 00:57:33 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.90 2010/08/04 20:29:18 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -2234,3 +2234,9 @@
 rl_cleanup_after_signal(void)
 {
 }
+
+int
+rl_on_new_line(void)
+{
+       return 0;
+}
diff -r 2c5ba18af54e -r e97df0a2940d lib/libedit/readline/readline.h
--- a/lib/libedit/readline/readline.h   Wed Aug 04 19:23:15 2010 +0000
+++ b/lib/libedit/readline/readline.h   Wed Aug 04 20:29:18 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.h,v 1.30 2009/09/07 21:24:34 christos Exp $   */
+/*     $NetBSD: readline.h,v 1.31 2010/08/04 20:29:18 christos Exp $   */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -202,6 +202,7 @@
 char          **rl_completion_matches(const char *, rl_compentry_func_t *);
 void            rl_forced_update_display(void);
 int             rl_set_prompt(const char *);
+int             rl_on_new_line(void);
 
 /*
  * The following are not implemented



Home | Main Index | Thread Index | Old Index