summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-bj
blob: b53f651ecc9035a15c62bec72daf248e26e449f6 (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
26
27
28
$NetBSD: patch-bj,v 1.2 2008/12/17 02:19:59 christos Exp $

--- readline/readline.h.orig	1995-02-24 16:20:03.000000000 -0500
+++ readline/readline.h	2008-12-16 20:31:36.000000000 -0500
@@ -5,11 +5,13 @@
 
 #include <readline/keymaps.h>
 #include <stdio.h>
+#include <string.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 +143,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. */