summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-bp
blob: 88044b3cb87b7cb364a50954f644e76014bc1bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-bp,v 1.1 2006/05/15 15:33:00 christos Exp $

--- readline/readline.h.orig	1995-02-24 16:20:03.000000000 -0500
+++ readline/readline.h	2006-05-15 10:46:09.000000000 -0400
@@ -7,9 +7,10 @@
 #include <stdio.h>
 
 #if !defined (__FUNCTION_DEF)
-typedef int Function ();
+typedef int Function (const char *);
 #define __FUNCTION_DEF
 #endif /* __FUNCTION_DEF */
+typedef char **CPPFunction(const char *, int, int);
 
 /* The functions for manipulating the text of the line within readline.
 Most of these functions are bound to keys by default. */
@@ -141,7 +142,7 @@
    If this function exists and returns NULL then call the value of
    rl_completion_entry_function to try to match, otherwise use the
    array of strings returned. */
-extern Function *rl_attempted_completion_function;
+extern CPPFunction *rl_attempted_completion_function;
 
 /* If non-zero, then this is the address of a function to call just
    before readline_internal () prints the first prompt. */