Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Make completion_matches non-static since readlin...
details: https://anonhg.NetBSD.org/src/rev/d3395bdd39cd
branches: trunk
changeset: 580990:d3395bdd39cd
user: christos <christos%NetBSD.org@localhost>
date: Wed May 18 22:34:41 2005 +0000
description:
Make completion_matches non-static since readline wants it.
diffstat:
lib/libedit/filecomplete.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 07a7c868c6cc -r d3395bdd39cd lib/libedit/filecomplete.c
--- a/lib/libedit/filecomplete.c Wed May 18 20:34:28 2005 +0000
+++ b/lib/libedit/filecomplete.c Wed May 18 22:34:41 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: filecomplete.c,v 1.4 2005/05/12 15:48:40 christos Exp $ */
+/* $NetBSD: filecomplete.c,v 1.5 2005/05/18 22:34:41 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: filecomplete.c,v 1.4 2005/05/12 15:48:40 christos Exp $");
+__RCSID("$NetBSD: filecomplete.c,v 1.5 2005/05/18 22:34:41 christos Exp $");
#endif /* not lint && not SCCSID */
#include <sys/types.h>
@@ -260,8 +260,10 @@
/*
* returns list of completions for text given
+ * non-static for readline.
*/
-static char **
+char ** completion_matches(const char *, char *(*)(const char *, int));
+char **
completion_matches(const char *text, char *(*genfunc)(const char *, int))
{
char **match_list = NULL, *retstr, *prevstr;
Home |
Main Index |
Thread Index |
Old Index