Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Move the __weak_extern() (ifdef'ed) outside of t...



details:   https://anonhg.NetBSD.org/src/rev/511d4af1c789
branches:  trunk
changeset: 544065:511d4af1c789
user:      he <he%NetBSD.org@localhost>
date:      Mon Mar 10 09:55:10 2003 +0000

description:
Move the __weak_extern() (ifdef'ed) outside of the vi_alias()
function, so that this compiles again.

diffstat:

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

diffs (37 lines):

diff -r 6e280215d876 -r 511d4af1c789 lib/libedit/vi.c
--- a/lib/libedit/vi.c  Mon Mar 10 09:37:04 2003 +0000
+++ b/lib/libedit/vi.c  Mon Mar 10 09:55:10 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vi.c,v 1.14 2003/03/10 01:14:07 christos Exp $ */
+/*     $NetBSD: vi.c,v 1.15 2003/03/10 09:55:10 he 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.14 2003/03/10 01:14:07 christos Exp $");
+__RCSID("$NetBSD: vi.c,v 1.15 2003/03/10 09:55:10 he Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -913,6 +913,10 @@
  * 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)
@@ -920,7 +924,6 @@
 #ifdef __weak_extern
        char alias_name[3];
        char *alias_text;
-       __weak_extern(get_alias_text);
        extern char *get_alias_text(const char *);
 
        if (get_alias_text == 0) {



Home | Main Index | Thread Index | Old Index