summaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2003-03-10 11:09:25 +0000
committerdsl <dsl@NetBSD.org>2003-03-10 11:09:25 +0000
commit25456aecdbf2cd21cb477916a42a28bd04b03cd3 (patch)
tree14313ca090293fe95ec762610e64e328e2f508b1 /lib/libedit
parente5f384735d1d99d5aaa18b5eabd55425959de497 (diff)
Put the __weak_extern() back inside vi_alias, but after the extern for
get_alias_text().
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/vi.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libedit/vi.c b/lib/libedit/vi.c
index 5284e6d84ae..6c5244b17fa 100644
--- a/lib/libedit/vi.c
+++ b/lib/libedit/vi.c
@@ -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 @@ vi_comment_out(EditLine *el, int c)
* 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 @@ vi_alias(EditLine *el, int c)
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;