Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Put the __weak_extern() back inside vi_alias, bu...



details:   https://anonhg.NetBSD.org/src/rev/d261055e5ff5
branches:  trunk
changeset: 544067:d261055e5ff5
user:      dsl <dsl%NetBSD.org@localhost>
date:      Mon Mar 10 11:09:25 2003 +0000

description:
Put the __weak_extern() back inside vi_alias, but after the extern for
get_alias_text().

diffstat:

 lib/libedit/vi.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 7ef6f15b551b -r d261055e5ff5 lib/libedit/vi.c
--- a/lib/libedit/vi.c  Mon Mar 10 10:02:58 2003 +0000
+++ b/lib/libedit/vi.c  Mon Mar 10 11:09:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vi.c,v 1.15 2003/03/10 09:55:10 he Exp $       */
+/*     $NetBSD: vi.c,v 1.16 2003/03/10 11:09:25 dsl Exp $      */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #if 0
 static char sccsid[] = "@(#)vi.c       8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: vi.c,v 1.15 2003/03/10 09:55:10 he Exp $");
+__RCSID("$NetBSD: vi.c,v 1.16 2003/03/10 11:09:25 dsl Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -913,10 +913,6 @@
  * NB: posix impiles that we should enter insert mode, however
  * this is against historical precedent...
  */
-#ifdef __weak_extern
-__weak_extern(get_alias_text)
-#endif
-
 protected el_action_t
 /*ARGSUSED*/
 vi_alias(EditLine *el, int c)
@@ -925,6 +921,7 @@
        char alias_name[3];
        char *alias_text;
        extern char *get_alias_text(const char *);
+       __weak_extern(get_alias_text);
 
        if (get_alias_text == 0) {
                return CC_ERROR;



Home | Main Index | Thread Index | Old Index