annotate src/msvc-readline-1.patch @ 5893:53a6c7df43f8

Mesa 3D: Update to version 21.1.8. * src/mesa.mk: Update version and checksum. * src/mesa-2-uninitialized.patch: Remove file. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 16 Sep 2021 22:37:45 +0200
parents 4ce61d3172f0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3122
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1 diff -ur readline-6.2-orig/bind.c readline-6.2-new/bind.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
2 --- readline-6.2-orig/bind.c 2011-02-11 10:50:09 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
3 +++ readline-6.2-new/bind.c 2013-07-05 21:41:35 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
4 @@ -65,7 +65,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
5 #include "rlshell.h"
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
6 #include "xmalloc.h"
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
7
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
8 -#if !defined (strchr) && !defined (__STDC__)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
9 +#if !defined (strchr) && !defined (__STDC__) && !defined (_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
10 extern char *strchr (), *strrchr ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
11 #endif /* !strchr && !__STDC__ */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
12
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
13 diff -ur readline-6.2-orig/complete.c readline-6.2-new/complete.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
14 --- readline-6.2-orig/complete.c 2011-01-16 15:32:57 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
15 +++ readline-6.2-new/complete.c 2013-07-05 21:41:35 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
16 @@ -64,7 +64,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
17 #include "xmalloc.h"
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
18 #include "rlprivate.h"
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
19
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
20 -#ifdef __STDC__
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
21 +#if defined (__STDC__) || defined (_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
22 typedef int QSFUNC (const void *, const void *);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
23 #else
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
24 typedef int QSFUNC ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
25 diff -ur readline-6.2-orig/config.h.in readline-6.2-new/config.h.in
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
26 --- readline-6.2-orig/config.h.in 2009-03-10 10:57:45 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
27 +++ readline-6.2-new/config.h.in 2013-07-05 21:41:35 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
28 @@ -259,7 +259,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
29 # define TERMIOS_MISSING
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
30 #endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
31
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
32 -#if defined (__STDC__) && defined (HAVE_STDARG_H)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
33 +#if (defined (__STDC__) || defined (_MSC_VER)) && defined (HAVE_STDARG_H)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
34 # define PREFER_STDARG
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
35 # define USE_VARARGS
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
36 #else
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
37 diff -ur readline-6.2-orig/display.c readline-6.2-new/display.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
38 --- readline-6.2-orig/display.c 2013-07-05 21:40:58 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
39 +++ readline-6.2-new/display.c 2013-07-05 21:55:45 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
40 @@ -60,7 +60,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
41 #define hStdout GetStdHandle(STD_OUTPUT_HANDLE)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
42 #endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
43
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
44 -#if !defined (strchr) && !defined (__STDC__)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
45 +#if !defined (strchr) && !defined (__STDC__) && !defined (_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
46 extern char *strchr (), *strrchr ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
47 #endif /* !strchr && !__STDC__ */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
48
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
49 diff -ur readline-6.2-orig/examples/Makefile.in readline-6.2-new/examples/Makefile.in
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
50 --- readline-6.2-orig/examples/Makefile.in 2010-12-28 15:55:32 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
51 +++ readline-6.2-new/examples/Makefile.in 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
52 @@ -96,13 +96,13 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
53 -rmdir $(DESTDIR)$(installdir)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
54
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
55 rl$(EXEEXT): rl.o $(READLINE_LIB)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
56 - $(PURIFY) $(CC) $(LDFLAGS) -o $@ rl.o $(READLINE_LIB) $(TERMCAP_LIB)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
57 + $(PURIFY) $(CC) $(LDFLAGS) -o $@ rl.o $(READLINE_LIB) $(TERMCAP_LIB) -lgetopt
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
58
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
59 rlcat$(EXEEXT): rlcat.o $(READLINE_LIB)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
60 - $(PURIFY) $(CC) $(LDFLAGS) -o $@ rlcat.o $(READLINE_LIB) $(TERMCAP_LIB)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
61 + $(PURIFY) $(CC) $(LDFLAGS) -o $@ rlcat.o $(READLINE_LIB) $(TERMCAP_LIB) -lgetopt
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
62
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
63 rlevent$(EXEEXT): rlevent.o $(READLINE_LIB)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
64 - $(PURIFY) $(CC) $(LDFLAGS) -o $@ rlevent.o $(READLINE_LIB) $(TERMCAP_LIB)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
65 + $(PURIFY) $(CC) $(LDFLAGS) -o $@ rlevent.o $(READLINE_LIB) $(TERMCAP_LIB) -lgetopt
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
66
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
67 fileman$(EXEEXT): fileman.o $(READLINE_LIB)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
68 $(PURIFY) $(CC) $(LDFLAGS) -o $@ fileman.o $(READLINE_LIB) $(TERMCAP_LIB)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
69 diff -ur readline-6.2-orig/examples/fileman.c readline-6.2-new/examples/fileman.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
70 --- readline-6.2-orig/examples/fileman.c 2009-01-04 14:32:33 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
71 +++ readline-6.2-new/examples/fileman.c 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
72 @@ -248,6 +248,8 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
73
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
74 /* Tell the completer that we want a crack first. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
75 rl_attempted_completion_function = fileman_completion;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
76 +
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
77 + return 0;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
78 }
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
79
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
80 /* Attempt to complete on the contents of TEXT. START and END bound the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
81 @@ -470,6 +472,8 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
82 fprintf (stderr,
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
83 "%s: Too dangerous for me to distribute. Write it yourself.\n",
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
84 caller);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
85 +
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
86 + return 0;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
87 }
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
88
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
89 /* Return non-zero if ARG is a valid argument for CALLER, else print
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
90 diff -ur readline-6.2-orig/examples/rlevent.c readline-6.2-new/examples/rlevent.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
91 --- readline-6.2-orig/examples/rlevent.c 2009-01-06 12:04:26 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
92 +++ readline-6.2-new/examples/rlevent.c 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
93 @@ -50,10 +50,16 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
94 extern int optind;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
95 extern char *optarg;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
96
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
97 -#if !defined (strchr) && !defined (__STDC__)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
98 +#if !defined (strchr) && !defined (__STDC__) && !defined (_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
99 extern char *strrchr();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
100 #endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
101
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
102 +#ifdef _MSC_VER
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
103 +# define WIN32_LEAN_AND_MEAN
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
104 +# include <windows.h>
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
105 +# define sleep(x) Sleep((x)*1000)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
106 +#endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
107 +
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
108 static char *progname;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
109 static char *deftext;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
110
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
111 diff -ur readline-6.2-orig/funmap.c readline-6.2-new/funmap.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
112 --- readline-6.2-orig/funmap.c 2010-05-30 18:32:37 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
113 +++ readline-6.2-new/funmap.c 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
114 @@ -40,7 +40,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
115
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
116 #include "xmalloc.h"
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
117
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
118 -#ifdef __STDC__
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
119 +#if defined (__STDC__) || defined (_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
120 typedef int QSFUNC (const void *, const void *);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
121 #else
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
122 typedef int QSFUNC ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
123 diff -ur readline-6.2-orig/histlib.h readline-6.2-new/histlib.h
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
124 --- readline-6.2-orig/histlib.h 2009-01-04 14:32:33 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
125 +++ readline-6.2-new/histlib.h 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
126 @@ -51,7 +51,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
127 #endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
128
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
129 #ifndef member
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
130 -# ifndef strchr
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
131 +# if !defined (strchr) && !defined (_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
132 extern char *strchr ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
133 # endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
134 #define member(c, s) ((c) ? ((char *)strchr ((s), (c)) != (char *)NULL) : 0)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
135 diff -ur readline-6.2-orig/history.c readline-6.2-new/history.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
136 --- readline-6.2-orig/history.c 2010-07-25 17:39:41 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
137 +++ readline-6.2-new/history.c 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
138 @@ -248,6 +248,9 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
139
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
140 t = (time_t) time ((time_t *)0);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
141 #if defined (HAVE_VSNPRINTF) /* assume snprintf if vsnprintf exists */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
142 +# if defined (_MSC_VER) && !defined (snprintf)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
143 +# define snprintf _snprintf
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
144 +# endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
145 snprintf (ts, sizeof (ts) - 1, "X%lu", (unsigned long) t);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
146 #else
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
147 sprintf (ts, "X%lu", (unsigned long) t);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
148 diff -ur readline-6.2-orig/history.h readline-6.2-new/history.h
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
149 --- readline-6.2-orig/history.h 2009-01-04 14:32:33 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
150 +++ readline-6.2-new/history.h 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
151 @@ -68,93 +68,93 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
152
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
153 /* Begin a session in which the history functions might be used. This
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
154 just initializes the interactive variables. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
155 -extern void using_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
156 +READLINE_API void using_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
157
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
158 /* Return the current HISTORY_STATE of the history. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
159 -extern HISTORY_STATE *history_get_history_state PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
160 +READLINE_API HISTORY_STATE *history_get_history_state PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
161
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
162 /* Set the state of the current history array to STATE. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
163 -extern void history_set_history_state PARAMS((HISTORY_STATE *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
164 +READLINE_API void history_set_history_state PARAMS((HISTORY_STATE *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
165
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
166 /* Manage the history list. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
167
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
168 /* Place STRING at the end of the history list.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
169 The associated data field (if any) is set to NULL. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
170 -extern void add_history PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
171 +READLINE_API void add_history PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
172
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
173 /* Change the timestamp associated with the most recent history entry to
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
174 STRING. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
175 -extern void add_history_time PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
176 +READLINE_API void add_history_time PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
177
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
178 /* A reasonably useless function, only here for completeness. WHICH
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
179 is the magic number that tells us which element to delete. The
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
180 elements are numbered from 0. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
181 -extern HIST_ENTRY *remove_history PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
182 +READLINE_API HIST_ENTRY *remove_history PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
183
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
184 /* Free the history entry H and return any application-specific data
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
185 associated with it. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
186 -extern histdata_t free_history_entry PARAMS((HIST_ENTRY *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
187 +READLINE_API histdata_t free_history_entry PARAMS((HIST_ENTRY *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
188
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
189 /* Make the history entry at WHICH have LINE and DATA. This returns
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
190 the old entry so you can dispose of the data. In the case of an
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
191 invalid WHICH, a NULL pointer is returned. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
192 -extern HIST_ENTRY *replace_history_entry PARAMS((int, const char *, histdata_t));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
193 +READLINE_API HIST_ENTRY *replace_history_entry PARAMS((int, const char *, histdata_t));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
194
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
195 /* Clear the history list and start over. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
196 -extern void clear_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
197 +READLINE_API void clear_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
198
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
199 /* Stifle the history list, remembering only MAX number of entries. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
200 -extern void stifle_history PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
201 +READLINE_API void stifle_history PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
202
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
203 /* Stop stifling the history. This returns the previous amount the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
204 history was stifled by. The value is positive if the history was
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
205 stifled, negative if it wasn't. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
206 -extern int unstifle_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
207 +READLINE_API int unstifle_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
208
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
209 /* Return 1 if the history is stifled, 0 if it is not. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
210 -extern int history_is_stifled PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
211 +READLINE_API int history_is_stifled PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
212
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
213 /* Information about the history list. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
214
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
215 /* Return a NULL terminated array of HIST_ENTRY which is the current input
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
216 history. Element 0 of this list is the beginning of time. If there
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
217 is no history, return NULL. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
218 -extern HIST_ENTRY **history_list PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
219 +READLINE_API HIST_ENTRY **history_list PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
220
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
221 /* Returns the number which says what history element we are now
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
222 looking at. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
223 -extern int where_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
224 +READLINE_API int where_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
225
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
226 /* Return the history entry at the current position, as determined by
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
227 history_offset. If there is no entry there, return a NULL pointer. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
228 -extern HIST_ENTRY *current_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
229 +READLINE_API HIST_ENTRY *current_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
230
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
231 /* Return the history entry which is logically at OFFSET in the history
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
232 array. OFFSET is relative to history_base. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
233 -extern HIST_ENTRY *history_get PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
234 +READLINE_API HIST_ENTRY *history_get PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
235
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
236 /* Return the timestamp associated with the HIST_ENTRY * passed as an
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
237 argument */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
238 -extern time_t history_get_time PARAMS((HIST_ENTRY *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
239 +READLINE_API time_t history_get_time PARAMS((HIST_ENTRY *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
240
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
241 /* Return the number of bytes that the primary history entries are using.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
242 This just adds up the lengths of the_history->lines. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
243 -extern int history_total_bytes PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
244 +READLINE_API int history_total_bytes PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
245
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
246 /* Moving around the history list. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
247
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
248 /* Set the position in the history list to POS. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
249 -extern int history_set_pos PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
250 +READLINE_API int history_set_pos PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
251
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
252 /* Back up history_offset to the previous history entry, and return
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
253 a pointer to that entry. If there is no previous entry, return
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
254 a NULL pointer. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
255 -extern HIST_ENTRY *previous_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
256 +READLINE_API HIST_ENTRY *previous_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
257
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
258 /* Move history_offset forward to the next item in the input_history,
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
259 and return the a pointer to that entry. If there is no next entry,
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
260 return a NULL pointer. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
261 -extern HIST_ENTRY *next_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
262 +READLINE_API HIST_ENTRY *next_history PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
263
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
264 /* Searching the history list. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
265
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
266 @@ -164,45 +164,45 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
267 current_history () is the history entry, and the value of this function
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
268 is the offset in the line of that history entry that the string was
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
269 found in. Otherwise, nothing is changed, and a -1 is returned. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
270 -extern int history_search PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
271 +READLINE_API int history_search PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
272
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
273 /* Search the history for STRING, starting at history_offset.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
274 The search is anchored: matching lines must begin with string.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
275 DIRECTION is as in history_search(). */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
276 -extern int history_search_prefix PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
277 +READLINE_API int history_search_prefix PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
278
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
279 /* Search for STRING in the history list, starting at POS, an
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
280 absolute index into the list. DIR, if negative, says to search
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
281 backwards from POS, else forwards.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
282 Returns the absolute index of the history element where STRING
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
283 was found, or -1 otherwise. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
284 -extern int history_search_pos PARAMS((const char *, int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
285 +READLINE_API int history_search_pos PARAMS((const char *, int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
286
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
287 /* Managing the history file. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
288
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
289 /* Add the contents of FILENAME to the history list, a line at a time.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
290 If FILENAME is NULL, then read from ~/.history. Returns 0 if
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
291 successful, or errno if not. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
292 -extern int read_history PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
293 +READLINE_API int read_history PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
294
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
295 /* Read a range of lines from FILENAME, adding them to the history list.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
296 Start reading at the FROM'th line and end at the TO'th. If FROM
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
297 is zero, start at the beginning. If TO is less than FROM, read
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
298 until the end of the file. If FILENAME is NULL, then read from
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
299 ~/.history. Returns 0 if successful, or errno if not. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
300 -extern int read_history_range PARAMS((const char *, int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
301 +READLINE_API int read_history_range PARAMS((const char *, int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
302
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
303 /* Write the current history to FILENAME. If FILENAME is NULL,
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
304 then write the history list to ~/.history. Values returned
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
305 are as in read_history (). */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
306 -extern int write_history PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
307 +READLINE_API int write_history PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
308
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
309 /* Append NELEMENT entries to FILENAME. The entries appended are from
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
310 the end of the list minus NELEMENTs up to the end of the list. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
311 -extern int append_history PARAMS((int, const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
312 +READLINE_API int append_history PARAMS((int, const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
313
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
314 /* Truncate the history file, leaving only the last NLINES lines. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
315 -extern int history_truncate_file PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
316 +READLINE_API int history_truncate_file PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
317
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
318 /* History expansion. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
319
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
320 @@ -218,12 +218,12 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
321
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
322 If an error ocurred in expansion, then OUTPUT contains a descriptive
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
323 error message. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
324 -extern int history_expand PARAMS((char *, char **));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
325 +READLINE_API int history_expand PARAMS((char *, char **));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
326
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
327 /* Extract a string segment consisting of the FIRST through LAST
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
328 arguments present in STRING. Arguments are broken up as in
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
329 the shell. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
330 -extern char *history_arg_extract PARAMS((int, int, const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
331 +READLINE_API char *history_arg_extract PARAMS((int, int, const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
332
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
333 /* Return the text of the history event beginning at the current
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
334 offset into STRING. Pass STRING with *INDEX equal to the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
335 @@ -231,33 +231,33 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
336 DELIMITING_QUOTE is a character that is allowed to end the string
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
337 specification for what to search for in addition to the normal
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
338 characters `:', ` ', `\t', `\n', and sometimes `?'. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
339 -extern char *get_history_event PARAMS((const char *, int *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
340 +READLINE_API char *get_history_event PARAMS((const char *, int *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
341
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
342 /* Return an array of tokens, much as the shell might. The tokens are
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
343 parsed out of STRING. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
344 -extern char **history_tokenize PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
345 +READLINE_API char **history_tokenize PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
346
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
347 /* Exported history variables. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
348 -extern int history_base;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
349 -extern int history_length;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
350 -extern int history_max_entries;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
351 -extern char history_expansion_char;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
352 -extern char history_subst_char;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
353 -extern char *history_word_delimiters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
354 -extern char history_comment_char;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
355 -extern char *history_no_expand_chars;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
356 -extern char *history_search_delimiter_chars;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
357 -extern int history_quotes_inhibit_expansion;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
358 +READLINE_API int history_base;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
359 +READLINE_API int history_length;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
360 +READLINE_API int history_max_entries;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
361 +READLINE_API char history_expansion_char;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
362 +READLINE_API char history_subst_char;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
363 +READLINE_API char *history_word_delimiters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
364 +READLINE_API char history_comment_char;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
365 +READLINE_API char *history_no_expand_chars;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
366 +READLINE_API char *history_search_delimiter_chars;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
367 +READLINE_API int history_quotes_inhibit_expansion;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
368
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
369 -extern int history_write_timestamps;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
370 +READLINE_API int history_write_timestamps;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
371
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
372 /* Backwards compatibility */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
373 -extern int max_input_history;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
374 +READLINE_API int max_input_history;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
375
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
376 /* If set, this function is called to decide whether or not a particular
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
377 history expansion should be treated as a special case for the calling
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
378 application and not expanded. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
379 -extern rl_linebuf_func_t *history_inhibit_expansion_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
380 +READLINE_API rl_linebuf_func_t *history_inhibit_expansion_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
381
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
382 #ifdef __cplusplus
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
383 }
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
384 diff -ur readline-6.2-orig/keymaps.h readline-6.2-new/keymaps.h
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
385 --- readline-6.2-orig/keymaps.h 2010-07-06 21:27:26 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
386 +++ readline-6.2-new/keymaps.h 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
387 @@ -60,35 +60,35 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
388 #define ISKMAP 1
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
389 #define ISMACR 2
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
390
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
391 -extern KEYMAP_ENTRY_ARRAY emacs_standard_keymap, emacs_meta_keymap, emacs_ctlx_keymap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
392 -extern KEYMAP_ENTRY_ARRAY vi_insertion_keymap, vi_movement_keymap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
393 +READLINE_API KEYMAP_ENTRY_ARRAY emacs_standard_keymap, emacs_meta_keymap, emacs_ctlx_keymap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
394 +READLINE_API KEYMAP_ENTRY_ARRAY vi_insertion_keymap, vi_movement_keymap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
395
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
396 /* Return a new, empty keymap.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
397 Free it with free() when you are done. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
398 -extern Keymap rl_make_bare_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
399 +READLINE_API Keymap rl_make_bare_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
401 /* Return a new keymap which is a copy of MAP. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
402 -extern Keymap rl_copy_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
403 +READLINE_API Keymap rl_copy_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
404
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
405 /* Return a new keymap with the printing characters bound to rl_insert,
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
406 the lowercase Meta characters bound to run their equivalents, and
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
407 the Meta digits bound to produce numeric arguments. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
408 -extern Keymap rl_make_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
409 +READLINE_API Keymap rl_make_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
410
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
411 /* Free the storage associated with a keymap. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
412 -extern void rl_discard_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
413 +READLINE_API void rl_discard_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
414
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
415 /* These functions actually appear in bind.c */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
416
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
417 /* Return the keymap corresponding to a given name. Names look like
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
418 `emacs' or `emacs-meta' or `vi-insert'. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
419 -extern Keymap rl_get_keymap_by_name PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
420 +READLINE_API Keymap rl_get_keymap_by_name PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
421
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
422 /* Return the current keymap. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
423 -extern Keymap rl_get_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
424 +READLINE_API Keymap rl_get_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
425
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
426 /* Set the current keymap to MAP. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
427 -extern void rl_set_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
428 +READLINE_API void rl_set_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
429
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
430 #ifdef __cplusplus
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
431 }
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
432 diff -ur readline-6.2-orig/parens.c readline-6.2-new/parens.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
433 --- readline-6.2-orig/parens.c 2009-04-19 13:12:06 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
434 +++ readline-6.2-new/parens.c 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
435 @@ -46,7 +46,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
436 # include <strings.h>
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
437 #endif /* !HAVE_STRING_H */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
438
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
439 -#if !defined (strchr) && !defined (__STDC__)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
440 +#if !defined (strchr) && !defined (__STDC__) && !defined (_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
441 extern char *strchr (), *strrchr ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
442 #endif /* !strchr && !__STDC__ */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
443
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
444 diff -ur readline-6.2-orig/readline.h readline-6.2-new/readline.h
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
445 --- readline-6.2-orig/readline.h 2011-01-16 15:33:09 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
446 +++ readline-6.2-new/readline.h 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
447 @@ -62,7 +62,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
448 } UNDO_LIST;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
449
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
450 /* The current undo list for RL_LINE_BUFFER. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
451 -extern UNDO_LIST *rl_undo_list;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
452 +READLINE_API UNDO_LIST *rl_undo_list;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
453
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
454 /* The data structure for mapping textual names to code addresses. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
455 typedef struct _funmap {
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
456 @@ -70,7 +70,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
457 rl_command_func_t *function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
458 } FUNMAP;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
459
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
460 -extern FUNMAP **funmap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
461 +READLINE_API FUNMAP **funmap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
462
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
463 /* **************************************************************** */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
464 /* */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
465 @@ -79,199 +79,199 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
466 /* **************************************************************** */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
467
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
468 /* Bindable commands for numeric arguments. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
469 -extern int rl_digit_argument PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
470 -extern int rl_universal_argument PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
471 +READLINE_API int rl_digit_argument PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
472 +READLINE_API int rl_universal_argument PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
473
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
474 /* Bindable commands for moving the cursor. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
475 -extern int rl_forward_byte PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
476 -extern int rl_forward_char PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
477 -extern int rl_forward PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
478 -extern int rl_backward_byte PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
479 -extern int rl_backward_char PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
480 -extern int rl_backward PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
481 -extern int rl_beg_of_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
482 -extern int rl_end_of_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
483 -extern int rl_forward_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
484 -extern int rl_backward_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
485 -extern int rl_refresh_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
486 -extern int rl_clear_screen PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
487 -extern int rl_skip_csi_sequence PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
488 -extern int rl_arrow_keys PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
489 +READLINE_API int rl_forward_byte PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
490 +READLINE_API int rl_forward_char PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
491 +READLINE_API int rl_forward PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
492 +READLINE_API int rl_backward_byte PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
493 +READLINE_API int rl_backward_char PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
494 +READLINE_API int rl_backward PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
495 +READLINE_API int rl_beg_of_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
496 +READLINE_API int rl_end_of_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
497 +READLINE_API int rl_forward_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
498 +READLINE_API int rl_backward_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
499 +READLINE_API int rl_refresh_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
500 +READLINE_API int rl_clear_screen PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
501 +READLINE_API int rl_skip_csi_sequence PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
502 +READLINE_API int rl_arrow_keys PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
503
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
504 /* Bindable commands for inserting and deleting text. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
505 -extern int rl_insert PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
506 -extern int rl_quoted_insert PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
507 -extern int rl_tab_insert PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
508 -extern int rl_newline PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
509 -extern int rl_do_lowercase_version PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
510 -extern int rl_rubout PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
511 -extern int rl_delete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
512 -extern int rl_rubout_or_delete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
513 -extern int rl_delete_horizontal_space PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
514 -extern int rl_delete_or_show_completions PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
515 -extern int rl_insert_comment PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
516 +READLINE_API int rl_insert PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
517 +READLINE_API int rl_quoted_insert PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
518 +READLINE_API int rl_tab_insert PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
519 +READLINE_API int rl_newline PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
520 +READLINE_API int rl_do_lowercase_version PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
521 +READLINE_API int rl_rubout PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
522 +READLINE_API int rl_delete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
523 +READLINE_API int rl_rubout_or_delete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
524 +READLINE_API int rl_delete_horizontal_space PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
525 +READLINE_API int rl_delete_or_show_completions PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
526 +READLINE_API int rl_insert_comment PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
527
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
528 /* Bindable commands for changing case. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
529 -extern int rl_upcase_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
530 -extern int rl_downcase_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
531 -extern int rl_capitalize_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
532 +READLINE_API int rl_upcase_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
533 +READLINE_API int rl_downcase_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
534 +READLINE_API int rl_capitalize_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
535
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
536 /* Bindable commands for transposing characters and words. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
537 -extern int rl_transpose_words PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
538 -extern int rl_transpose_chars PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
539 +READLINE_API int rl_transpose_words PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
540 +READLINE_API int rl_transpose_chars PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
541
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
542 /* Bindable commands for searching within a line. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
543 -extern int rl_char_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
544 -extern int rl_backward_char_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
545 +READLINE_API int rl_char_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
546 +READLINE_API int rl_backward_char_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
547
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
548 /* Bindable commands for readline's interface to the command history. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
549 -extern int rl_beginning_of_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
550 -extern int rl_end_of_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
551 -extern int rl_get_next_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
552 -extern int rl_get_previous_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
553 +READLINE_API int rl_beginning_of_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
554 +READLINE_API int rl_end_of_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
555 +READLINE_API int rl_get_next_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
556 +READLINE_API int rl_get_previous_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
557
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
558 /* Bindable commands for managing the mark and region. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
559 -extern int rl_set_mark PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
560 -extern int rl_exchange_point_and_mark PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
561 +READLINE_API int rl_set_mark PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
562 +READLINE_API int rl_exchange_point_and_mark PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
563
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
564 /* Bindable commands to set the editing mode (emacs or vi). */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
565 -extern int rl_vi_editing_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
566 -extern int rl_emacs_editing_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
567 +READLINE_API int rl_vi_editing_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
568 +READLINE_API int rl_emacs_editing_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
569
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
570 /* Bindable commands to change the insert mode (insert or overwrite) */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
571 -extern int rl_overwrite_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
572 +READLINE_API int rl_overwrite_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
573
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
574 /* Bindable commands for managing key bindings. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
575 -extern int rl_re_read_init_file PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
576 -extern int rl_dump_functions PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
577 -extern int rl_dump_macros PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
578 -extern int rl_dump_variables PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
579 +READLINE_API int rl_re_read_init_file PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
580 +READLINE_API int rl_dump_functions PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
581 +READLINE_API int rl_dump_macros PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
582 +READLINE_API int rl_dump_variables PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
583
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
584 /* Bindable commands for word completion. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
585 -extern int rl_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
586 -extern int rl_possible_completions PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
587 -extern int rl_insert_completions PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
588 -extern int rl_old_menu_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
589 -extern int rl_menu_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
590 -extern int rl_backward_menu_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
591 +READLINE_API int rl_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
592 +READLINE_API int rl_possible_completions PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
593 +READLINE_API int rl_insert_completions PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
594 +READLINE_API int rl_old_menu_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
595 +READLINE_API int rl_menu_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
596 +READLINE_API int rl_backward_menu_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
597
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
598 /* Bindable commands for killing and yanking text, and managing the kill ring. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
599 -extern int rl_kill_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
600 -extern int rl_backward_kill_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
601 -extern int rl_kill_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
602 -extern int rl_backward_kill_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
603 -extern int rl_kill_full_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
604 -extern int rl_unix_word_rubout PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
605 -extern int rl_unix_filename_rubout PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
606 -extern int rl_unix_line_discard PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
607 -extern int rl_copy_region_to_kill PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
608 -extern int rl_kill_region PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
609 -extern int rl_copy_forward_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
610 -extern int rl_copy_backward_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
611 -extern int rl_yank PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
612 -extern int rl_yank_pop PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
613 -extern int rl_yank_nth_arg PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
614 -extern int rl_yank_last_arg PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
615 +READLINE_API int rl_kill_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
616 +READLINE_API int rl_backward_kill_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
617 +READLINE_API int rl_kill_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
618 +READLINE_API int rl_backward_kill_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
619 +READLINE_API int rl_kill_full_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
620 +READLINE_API int rl_unix_word_rubout PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
621 +READLINE_API int rl_unix_filename_rubout PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
622 +READLINE_API int rl_unix_line_discard PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
623 +READLINE_API int rl_copy_region_to_kill PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
624 +READLINE_API int rl_kill_region PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
625 +READLINE_API int rl_copy_forward_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
626 +READLINE_API int rl_copy_backward_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
627 +READLINE_API int rl_yank PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
628 +READLINE_API int rl_yank_pop PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
629 +READLINE_API int rl_yank_nth_arg PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
630 +READLINE_API int rl_yank_last_arg PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
631 /* Not available unless __CYGWIN__ is defined. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
632 #ifdef __CYGWIN__
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
633 -extern int rl_paste_from_clipboard PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
634 +READLINE_API int rl_paste_from_clipboard PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
635 #endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
636
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
637 /* Bindable commands for incremental searching. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
638 -extern int rl_reverse_search_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
639 -extern int rl_forward_search_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
640 +READLINE_API int rl_reverse_search_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
641 +READLINE_API int rl_forward_search_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
642
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
643 /* Bindable keyboard macro commands. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
644 -extern int rl_start_kbd_macro PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
645 -extern int rl_end_kbd_macro PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
646 -extern int rl_call_last_kbd_macro PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
647 +READLINE_API int rl_start_kbd_macro PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
648 +READLINE_API int rl_end_kbd_macro PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
649 +READLINE_API int rl_call_last_kbd_macro PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
650
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
651 /* Bindable undo commands. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
652 -extern int rl_revert_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
653 -extern int rl_undo_command PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
654 +READLINE_API int rl_revert_line PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
655 +READLINE_API int rl_undo_command PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
656
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
657 /* Bindable tilde expansion commands. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
658 -extern int rl_tilde_expand PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
659 +READLINE_API int rl_tilde_expand PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
660
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
661 /* Bindable terminal control commands. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
662 -extern int rl_restart_output PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
663 -extern int rl_stop_output PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
664 +READLINE_API int rl_restart_output PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
665 +READLINE_API int rl_stop_output PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
666
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
667 /* Miscellaneous bindable commands. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
668 -extern int rl_abort PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
669 -extern int rl_tty_status PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
670 +READLINE_API int rl_abort PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
671 +READLINE_API int rl_tty_status PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
672
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
673 /* Bindable commands for incremental and non-incremental history searching. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
674 -extern int rl_history_search_forward PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
675 -extern int rl_history_search_backward PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
676 -extern int rl_noninc_forward_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
677 -extern int rl_noninc_reverse_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
678 -extern int rl_noninc_forward_search_again PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
679 -extern int rl_noninc_reverse_search_again PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
680 +READLINE_API int rl_history_search_forward PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
681 +READLINE_API int rl_history_search_backward PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
682 +READLINE_API int rl_noninc_forward_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
683 +READLINE_API int rl_noninc_reverse_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
684 +READLINE_API int rl_noninc_forward_search_again PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
685 +READLINE_API int rl_noninc_reverse_search_again PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
686
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
687 /* Bindable command used when inserting a matching close character. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
688 -extern int rl_insert_close PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
689 +READLINE_API int rl_insert_close PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
690
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
691 /* Not available unless READLINE_CALLBACKS is defined. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
692 -extern void rl_callback_handler_install PARAMS((const char *, rl_vcpfunc_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
693 -extern void rl_callback_read_char PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
694 -extern void rl_callback_handler_remove PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
695 +READLINE_API void rl_callback_handler_install PARAMS((const char *, rl_vcpfunc_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
696 +READLINE_API void rl_callback_read_char PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
697 +READLINE_API void rl_callback_handler_remove PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
698
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
699 /* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
700 /* VI-mode bindable commands. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
701 -extern int rl_vi_redo PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
702 -extern int rl_vi_undo PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
703 -extern int rl_vi_yank_arg PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
704 -extern int rl_vi_fetch_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
705 -extern int rl_vi_search_again PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
706 -extern int rl_vi_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
707 -extern int rl_vi_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
708 -extern int rl_vi_tilde_expand PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
709 -extern int rl_vi_prev_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
710 -extern int rl_vi_next_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
711 -extern int rl_vi_end_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
712 -extern int rl_vi_insert_beg PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
713 -extern int rl_vi_append_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
714 -extern int rl_vi_append_eol PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
715 -extern int rl_vi_eof_maybe PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
716 -extern int rl_vi_insertion_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
717 -extern int rl_vi_insert_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
718 -extern int rl_vi_movement_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
719 -extern int rl_vi_arg_digit PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
720 -extern int rl_vi_change_case PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
721 -extern int rl_vi_put PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
722 -extern int rl_vi_column PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
723 -extern int rl_vi_delete_to PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
724 -extern int rl_vi_change_to PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
725 -extern int rl_vi_yank_to PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
726 -extern int rl_vi_rubout PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
727 -extern int rl_vi_delete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
728 -extern int rl_vi_back_to_indent PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
729 -extern int rl_vi_first_print PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
730 -extern int rl_vi_char_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
731 -extern int rl_vi_match PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
732 -extern int rl_vi_change_char PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
733 -extern int rl_vi_subst PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
734 -extern int rl_vi_overstrike PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
735 -extern int rl_vi_overstrike_delete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
736 -extern int rl_vi_replace PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
737 -extern int rl_vi_set_mark PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
738 -extern int rl_vi_goto_mark PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
739 +READLINE_API int rl_vi_redo PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
740 +READLINE_API int rl_vi_undo PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
741 +READLINE_API int rl_vi_yank_arg PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
742 +READLINE_API int rl_vi_fetch_history PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
743 +READLINE_API int rl_vi_search_again PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
744 +READLINE_API int rl_vi_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
745 +READLINE_API int rl_vi_complete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
746 +READLINE_API int rl_vi_tilde_expand PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
747 +READLINE_API int rl_vi_prev_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
748 +READLINE_API int rl_vi_next_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
749 +READLINE_API int rl_vi_end_word PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
750 +READLINE_API int rl_vi_insert_beg PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
751 +READLINE_API int rl_vi_append_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
752 +READLINE_API int rl_vi_append_eol PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
753 +READLINE_API int rl_vi_eof_maybe PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
754 +READLINE_API int rl_vi_insertion_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
755 +READLINE_API int rl_vi_insert_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
756 +READLINE_API int rl_vi_movement_mode PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
757 +READLINE_API int rl_vi_arg_digit PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
758 +READLINE_API int rl_vi_change_case PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
759 +READLINE_API int rl_vi_put PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
760 +READLINE_API int rl_vi_column PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
761 +READLINE_API int rl_vi_delete_to PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
762 +READLINE_API int rl_vi_change_to PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
763 +READLINE_API int rl_vi_yank_to PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
764 +READLINE_API int rl_vi_rubout PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
765 +READLINE_API int rl_vi_delete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
766 +READLINE_API int rl_vi_back_to_indent PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
767 +READLINE_API int rl_vi_first_print PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
768 +READLINE_API int rl_vi_char_search PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
769 +READLINE_API int rl_vi_match PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
770 +READLINE_API int rl_vi_change_char PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
771 +READLINE_API int rl_vi_subst PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
772 +READLINE_API int rl_vi_overstrike PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
773 +READLINE_API int rl_vi_overstrike_delete PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
774 +READLINE_API int rl_vi_replace PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
775 +READLINE_API int rl_vi_set_mark PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
776 +READLINE_API int rl_vi_goto_mark PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
777
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
778 /* VI-mode utility functions. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
779 -extern int rl_vi_check PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
780 -extern int rl_vi_domove PARAMS((int, int *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
781 -extern int rl_vi_bracktype PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
782 +READLINE_API int rl_vi_check PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
783 +READLINE_API int rl_vi_domove PARAMS((int, int *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
784 +READLINE_API int rl_vi_bracktype PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
785
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
786 -extern void rl_vi_start_inserting PARAMS((int, int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
787 +READLINE_API void rl_vi_start_inserting PARAMS((int, int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
788
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
789 /* VI-mode pseudo-bindable commands, used as utility functions. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
790 -extern int rl_vi_fWord PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
791 -extern int rl_vi_bWord PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
792 -extern int rl_vi_eWord PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
793 -extern int rl_vi_fword PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
794 -extern int rl_vi_bword PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
795 -extern int rl_vi_eword PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
796 +READLINE_API int rl_vi_fWord PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
797 +READLINE_API int rl_vi_bWord PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
798 +READLINE_API int rl_vi_eWord PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
799 +READLINE_API int rl_vi_fword PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
800 +READLINE_API int rl_vi_bword PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
801 +READLINE_API int rl_vi_eword PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
802
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
803 /* **************************************************************** */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
804 /* */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
805 @@ -281,190 +281,190 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
806
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
807 /* Readline functions. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
808 /* Read a line of input. Prompt with PROMPT. A NULL PROMPT means none. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
809 -extern char *readline PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
810 +READLINE_API char *readline PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
811
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
812 -extern int rl_set_prompt PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
813 -extern int rl_expand_prompt PARAMS((char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
814 +READLINE_API int rl_set_prompt PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
815 +READLINE_API int rl_expand_prompt PARAMS((char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
816
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
817 -extern int rl_initialize PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
818 +READLINE_API int rl_initialize PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
819
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
820 /* Undocumented; unused by readline */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
821 -extern int rl_discard_argument PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
822 +READLINE_API int rl_discard_argument PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
823
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
824 /* Utility functions to bind keys to readline commands. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
825 -extern int rl_add_defun PARAMS((const char *, rl_command_func_t *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
826 -extern int rl_bind_key PARAMS((int, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
827 -extern int rl_bind_key_in_map PARAMS((int, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
828 -extern int rl_unbind_key PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
829 -extern int rl_unbind_key_in_map PARAMS((int, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
830 -extern int rl_bind_key_if_unbound PARAMS((int, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
831 -extern int rl_bind_key_if_unbound_in_map PARAMS((int, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
832 -extern int rl_unbind_function_in_map PARAMS((rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
833 -extern int rl_unbind_command_in_map PARAMS((const char *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
834 -extern int rl_bind_keyseq PARAMS((const char *, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
835 -extern int rl_bind_keyseq_in_map PARAMS((const char *, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
836 -extern int rl_bind_keyseq_if_unbound PARAMS((const char *, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
837 -extern int rl_bind_keyseq_if_unbound_in_map PARAMS((const char *, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
838 -extern int rl_generic_bind PARAMS((int, const char *, char *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
839 +READLINE_API int rl_add_defun PARAMS((const char *, rl_command_func_t *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
840 +READLINE_API int rl_bind_key PARAMS((int, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
841 +READLINE_API int rl_bind_key_in_map PARAMS((int, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
842 +READLINE_API int rl_unbind_key PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
843 +READLINE_API int rl_unbind_key_in_map PARAMS((int, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
844 +READLINE_API int rl_bind_key_if_unbound PARAMS((int, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
845 +READLINE_API int rl_bind_key_if_unbound_in_map PARAMS((int, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
846 +READLINE_API int rl_unbind_function_in_map PARAMS((rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
847 +READLINE_API int rl_unbind_command_in_map PARAMS((const char *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
848 +READLINE_API int rl_bind_keyseq PARAMS((const char *, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
849 +READLINE_API int rl_bind_keyseq_in_map PARAMS((const char *, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
850 +READLINE_API int rl_bind_keyseq_if_unbound PARAMS((const char *, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
851 +READLINE_API int rl_bind_keyseq_if_unbound_in_map PARAMS((const char *, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
852 +READLINE_API int rl_generic_bind PARAMS((int, const char *, char *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
853
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
854 -extern char *rl_variable_value PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
855 -extern int rl_variable_bind PARAMS((const char *, const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
856 +READLINE_API char *rl_variable_value PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
857 +READLINE_API int rl_variable_bind PARAMS((const char *, const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
858
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
859 /* Backwards compatibility, use rl_bind_keyseq_in_map instead. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
860 -extern int rl_set_key PARAMS((const char *, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
861 +READLINE_API int rl_set_key PARAMS((const char *, rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
862
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
863 /* Backwards compatibility, use rl_generic_bind instead. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
864 -extern int rl_macro_bind PARAMS((const char *, const char *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
865 +READLINE_API int rl_macro_bind PARAMS((const char *, const char *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
866
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
867 /* Undocumented in the texinfo manual; not really useful to programs. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
868 -extern int rl_translate_keyseq PARAMS((const char *, char *, int *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
869 -extern char *rl_untranslate_keyseq PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
870 +READLINE_API int rl_translate_keyseq PARAMS((const char *, char *, int *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
871 +READLINE_API char *rl_untranslate_keyseq PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
872
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
873 -extern rl_command_func_t *rl_named_function PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
874 -extern rl_command_func_t *rl_function_of_keyseq PARAMS((const char *, Keymap, int *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
875 +READLINE_API rl_command_func_t *rl_named_function PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
876 +READLINE_API rl_command_func_t *rl_function_of_keyseq PARAMS((const char *, Keymap, int *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
877
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
878 -extern void rl_list_funmap_names PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
879 -extern char **rl_invoking_keyseqs_in_map PARAMS((rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
880 -extern char **rl_invoking_keyseqs PARAMS((rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
881 +READLINE_API void rl_list_funmap_names PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
882 +READLINE_API char **rl_invoking_keyseqs_in_map PARAMS((rl_command_func_t *, Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
883 +READLINE_API char **rl_invoking_keyseqs PARAMS((rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
884
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
885 -extern void rl_function_dumper PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
886 -extern void rl_macro_dumper PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
887 -extern void rl_variable_dumper PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
888 +READLINE_API void rl_function_dumper PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
889 +READLINE_API void rl_macro_dumper PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
890 +READLINE_API void rl_variable_dumper PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
891
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
892 -extern int rl_read_init_file PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
893 -extern int rl_parse_and_bind PARAMS((char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
894 +READLINE_API int rl_read_init_file PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
895 +READLINE_API int rl_parse_and_bind PARAMS((char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
896
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
897 /* Functions for manipulating keymaps. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
898 -extern Keymap rl_make_bare_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
899 -extern Keymap rl_copy_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
900 -extern Keymap rl_make_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
901 -extern void rl_discard_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
902 -
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
903 -extern Keymap rl_get_keymap_by_name PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
904 -extern char *rl_get_keymap_name PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
905 -extern void rl_set_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
906 -extern Keymap rl_get_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
907 +READLINE_API Keymap rl_make_bare_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
908 +READLINE_API Keymap rl_copy_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
909 +READLINE_API Keymap rl_make_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
910 +READLINE_API void rl_discard_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
911 +
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
912 +READLINE_API Keymap rl_get_keymap_by_name PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
913 +READLINE_API char *rl_get_keymap_name PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
914 +READLINE_API void rl_set_keymap PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
915 +READLINE_API Keymap rl_get_keymap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
916 /* Undocumented; used internally only. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
917 -extern void rl_set_keymap_from_edit_mode PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
918 -extern char *rl_get_keymap_name_from_edit_mode PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
919 +READLINE_API void rl_set_keymap_from_edit_mode PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
920 +READLINE_API char *rl_get_keymap_name_from_edit_mode PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
921
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
922 /* Functions for manipulating the funmap, which maps command names to functions. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
923 -extern int rl_add_funmap_entry PARAMS((const char *, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
924 -extern const char **rl_funmap_names PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
925 +READLINE_API int rl_add_funmap_entry PARAMS((const char *, rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
926 +READLINE_API const char **rl_funmap_names PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
927 /* Undocumented, only used internally -- there is only one funmap, and this
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
928 function may be called only once. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
929 -extern void rl_initialize_funmap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
930 +READLINE_API void rl_initialize_funmap PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
931
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
932 /* Utility functions for managing keyboard macros. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
933 -extern void rl_push_macro_input PARAMS((char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
934 +READLINE_API void rl_push_macro_input PARAMS((char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
935
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
936 /* Functions for undoing, from undo.c */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
937 -extern void rl_add_undo PARAMS((enum undo_code, int, int, char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
938 -extern void rl_free_undo_list PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
939 -extern int rl_do_undo PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
940 -extern int rl_begin_undo_group PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
941 -extern int rl_end_undo_group PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
942 -extern int rl_modifying PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
943 +READLINE_API void rl_add_undo PARAMS((enum undo_code, int, int, char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
944 +READLINE_API void rl_free_undo_list PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
945 +READLINE_API int rl_do_undo PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
946 +READLINE_API int rl_begin_undo_group PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
947 +READLINE_API int rl_end_undo_group PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
948 +READLINE_API int rl_modifying PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
949
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
950 /* Functions for redisplay. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
951 -extern void rl_redisplay PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
952 -extern int rl_on_new_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
953 -extern int rl_on_new_line_with_prompt PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
954 -extern int rl_forced_update_display PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
955 -extern int rl_clear_message PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
956 -extern int rl_reset_line_state PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
957 -extern int rl_crlf PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
958 +READLINE_API void rl_redisplay PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
959 +READLINE_API int rl_on_new_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
960 +READLINE_API int rl_on_new_line_with_prompt PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
961 +READLINE_API int rl_forced_update_display PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
962 +READLINE_API int rl_clear_message PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
963 +READLINE_API int rl_reset_line_state PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
964 +READLINE_API int rl_crlf PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
965
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
966 #if defined (USE_VARARGS) && defined (PREFER_STDARG)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
967 -extern int rl_message (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
968 +READLINE_API int rl_message (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
969 #else
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
970 -extern int rl_message ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
971 +READLINE_API int rl_message ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
972 #endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
973
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
974 -extern int rl_show_char PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
975 +READLINE_API int rl_show_char PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
976
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
977 /* Undocumented in texinfo manual. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
978 -extern int rl_character_len PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
979 +READLINE_API int rl_character_len PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
980
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
981 /* Save and restore internal prompt redisplay information. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
982 -extern void rl_save_prompt PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
983 -extern void rl_restore_prompt PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
984 +READLINE_API void rl_save_prompt PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
985 +READLINE_API void rl_restore_prompt PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
986
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
987 /* Modifying text. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
988 -extern void rl_replace_line PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
989 -extern int rl_insert_text PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
990 -extern int rl_delete_text PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
991 -extern int rl_kill_text PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
992 -extern char *rl_copy_text PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
993 +READLINE_API void rl_replace_line PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
994 +READLINE_API int rl_insert_text PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
995 +READLINE_API int rl_delete_text PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
996 +READLINE_API int rl_kill_text PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
997 +READLINE_API char *rl_copy_text PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
998
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
999 /* Terminal and tty mode management. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1000 -extern void rl_prep_terminal PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1001 -extern void rl_deprep_terminal PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1002 -extern void rl_tty_set_default_bindings PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1003 -extern void rl_tty_unset_default_bindings PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1004 -
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1005 -extern int rl_reset_terminal PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1006 -extern void rl_resize_terminal PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1007 -extern void rl_set_screen_size PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1008 -extern void rl_get_screen_size PARAMS((int *, int *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1009 -extern void rl_reset_screen_size PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1010 +READLINE_API void rl_prep_terminal PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1011 +READLINE_API void rl_deprep_terminal PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1012 +READLINE_API void rl_tty_set_default_bindings PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1013 +READLINE_API void rl_tty_unset_default_bindings PARAMS((Keymap));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1014 +
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1015 +READLINE_API int rl_reset_terminal PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1016 +READLINE_API void rl_resize_terminal PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1017 +READLINE_API void rl_set_screen_size PARAMS((int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1018 +READLINE_API void rl_get_screen_size PARAMS((int *, int *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1019 +READLINE_API void rl_reset_screen_size PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1020
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1021 -extern char *rl_get_termcap PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1022 +READLINE_API char *rl_get_termcap PARAMS((const char *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1023
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1024 /* Functions for character input. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1025 -extern int rl_stuff_char PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1026 -extern int rl_execute_next PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1027 -extern int rl_clear_pending_input PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1028 -extern int rl_read_key PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1029 -extern int rl_getc PARAMS((FILE *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1030 -extern int rl_set_keyboard_input_timeout PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1031 +READLINE_API int rl_stuff_char PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1032 +READLINE_API int rl_execute_next PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1033 +READLINE_API int rl_clear_pending_input PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1034 +READLINE_API int rl_read_key PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1035 +READLINE_API int rl_getc PARAMS((FILE *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1036 +READLINE_API int rl_set_keyboard_input_timeout PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1037
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1038 /* `Public' utility functions . */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1039 -extern void rl_extend_line_buffer PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1040 -extern int rl_ding PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1041 -extern int rl_alphabetic PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1042 -extern void rl_free PARAMS((void *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1043 +READLINE_API void rl_extend_line_buffer PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1044 +READLINE_API int rl_ding PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1045 +READLINE_API int rl_alphabetic PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1046 +READLINE_API void rl_free PARAMS((void *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1047
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1048 /* Readline signal handling, from signals.c */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1049 -extern int rl_set_signals PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1050 -extern int rl_clear_signals PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1051 -extern void rl_cleanup_after_signal PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1052 -extern void rl_reset_after_signal PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1053 -extern void rl_free_line_state PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1054 +READLINE_API int rl_set_signals PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1055 +READLINE_API int rl_clear_signals PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1056 +READLINE_API void rl_cleanup_after_signal PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1057 +READLINE_API void rl_reset_after_signal PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1058 +READLINE_API void rl_free_line_state PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1059
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1060 -extern void rl_echo_signal_char PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1061 +READLINE_API void rl_echo_signal_char PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1062
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1063 -extern int rl_set_paren_blink_timeout PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1064 +READLINE_API int rl_set_paren_blink_timeout PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1065
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1066 /* Undocumented. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1067 -extern int rl_maybe_save_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1068 -extern int rl_maybe_unsave_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1069 -extern int rl_maybe_replace_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1070 +READLINE_API int rl_maybe_save_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1071 +READLINE_API int rl_maybe_unsave_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1072 +READLINE_API int rl_maybe_replace_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1073
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1074 /* Completion functions. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1075 -extern int rl_complete_internal PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1076 -extern void rl_display_match_list PARAMS((char **, int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1077 +READLINE_API int rl_complete_internal PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1078 +READLINE_API void rl_display_match_list PARAMS((char **, int, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1079
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1080 -extern char **rl_completion_matches PARAMS((const char *, rl_compentry_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1081 -extern char *rl_username_completion_function PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1082 -extern char *rl_filename_completion_function PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1083 +READLINE_API char **rl_completion_matches PARAMS((const char *, rl_compentry_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1084 +READLINE_API char *rl_username_completion_function PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1085 +READLINE_API char *rl_filename_completion_function PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1086
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1087 -extern int rl_completion_mode PARAMS((rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1088 +READLINE_API int rl_completion_mode PARAMS((rl_command_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1089
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1090 #if 0
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1091 /* Backwards compatibility (compat.c). These will go away sometime. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1092 -extern void free_undo_list PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1093 -extern int maybe_save_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1094 -extern int maybe_unsave_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1095 -extern int maybe_replace_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1096 -
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1097 -extern int ding PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1098 -extern int alphabetic PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1099 -extern int crlf PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1100 -
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1101 -extern char **completion_matches PARAMS((char *, rl_compentry_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1102 -extern char *username_completion_function PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1103 -extern char *filename_completion_function PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1104 +READLINE_API void free_undo_list PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1105 +READLINE_API int maybe_save_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1106 +READLINE_API int maybe_unsave_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1107 +READLINE_API int maybe_replace_line PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1108 +
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1109 +READLINE_API int ding PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1110 +READLINE_API int alphabetic PARAMS((int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1111 +READLINE_API int crlf PARAMS((void));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1112 +
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1113 +READLINE_API char **completion_matches PARAMS((char *, rl_compentry_func_t *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1114 +READLINE_API char *username_completion_function PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1115 +READLINE_API char *filename_completion_function PARAMS((const char *, int));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1116 #endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1117
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1118 /* **************************************************************** */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1119 @@ -474,144 +474,144 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1120 /* **************************************************************** */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1121
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1122 /* The version of this incarnation of the readline library. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1123 -extern const char *rl_library_version; /* e.g., "4.2" */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1124 -extern int rl_readline_version; /* e.g., 0x0402 */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1125 +READLINE_API const char *rl_library_version; /* e.g., "4.2" */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1126 +READLINE_API int rl_readline_version; /* e.g., 0x0402 */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1127
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1128 /* True if this is real GNU readline. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1129 -extern int rl_gnu_readline_p;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1130 +READLINE_API int rl_gnu_readline_p;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1131
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1132 /* Flags word encapsulating the current readline state. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1133 -extern int rl_readline_state;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1134 +READLINE_API int rl_readline_state;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1135
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1136 /* Says which editing mode readline is currently using. 1 means emacs mode;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1137 0 means vi mode. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1138 -extern int rl_editing_mode;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1139 +READLINE_API int rl_editing_mode;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1140
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1141 /* Insert or overwrite mode for emacs mode. 1 means insert mode; 0 means
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1142 overwrite mode. Reset to insert mode on each input line. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1143 -extern int rl_insert_mode;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1144 +READLINE_API int rl_insert_mode;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1145
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1146 /* The name of the calling program. You should initialize this to
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1147 whatever was in argv[0]. It is used when parsing conditionals. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1148 -extern const char *rl_readline_name;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1149 +READLINE_API const char *rl_readline_name;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1150
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1151 /* The prompt readline uses. This is set from the argument to
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1152 readline (), and should not be assigned to directly. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1153 -extern char *rl_prompt;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1154 +READLINE_API char *rl_prompt;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1155
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1156 /* The prompt string that is actually displayed by rl_redisplay. Public so
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1157 applications can more easily supply their own redisplay functions. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1158 -extern char *rl_display_prompt;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1159 +READLINE_API char *rl_display_prompt;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1160
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1161 /* The line buffer that is in use. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1162 -extern char *rl_line_buffer;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1163 +READLINE_API char *rl_line_buffer;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1164
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1165 /* The location of point, and end. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1166 -extern int rl_point;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1167 -extern int rl_end;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1168 +READLINE_API int rl_point;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1169 +READLINE_API int rl_end;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1170
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1171 /* The mark, or saved cursor position. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1172 -extern int rl_mark;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1173 +READLINE_API int rl_mark;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1174
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1175 /* Flag to indicate that readline has finished with the current input
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1176 line and should return it. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1177 -extern int rl_done;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1178 +READLINE_API int rl_done;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1179
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1180 /* If set to a character value, that will be the next keystroke read. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1181 -extern int rl_pending_input;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1182 +READLINE_API int rl_pending_input;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1183
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1184 /* Non-zero if we called this function from _rl_dispatch(). It's present
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1185 so functions can find out whether they were called from a key binding
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1186 or directly from an application. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1187 -extern int rl_dispatching;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1188 +READLINE_API int rl_dispatching;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1189
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1190 /* Non-zero if the user typed a numeric argument before executing the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1191 current function. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1192 -extern int rl_explicit_arg;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1193 +READLINE_API int rl_explicit_arg;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1194
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1195 /* The current value of the numeric argument specified by the user. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1196 -extern int rl_numeric_arg;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1197 +READLINE_API int rl_numeric_arg;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1198
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1199 /* The address of the last command function Readline executed. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1200 -extern rl_command_func_t *rl_last_func;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1201 +READLINE_API rl_command_func_t *rl_last_func;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1202
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1203 /* The name of the terminal to use. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1204 -extern const char *rl_terminal_name;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1205 +READLINE_API const char *rl_terminal_name;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1206
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1207 /* The input and output streams. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1208 -extern FILE *rl_instream;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1209 -extern FILE *rl_outstream;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1210 +READLINE_API FILE *rl_instream;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1211 +READLINE_API FILE *rl_outstream;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1212
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1213 /* If non-zero, Readline gives values of LINES and COLUMNS from the environment
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1214 greater precedence than values fetched from the kernel when computing the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1215 screen dimensions. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1216 -extern int rl_prefer_env_winsize;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1217 +READLINE_API int rl_prefer_env_winsize;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1218
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1219 /* If non-zero, then this is the address of a function to call just
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1220 before readline_internal () prints the first prompt. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1221 -extern rl_hook_func_t *rl_startup_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1222 +READLINE_API rl_hook_func_t *rl_startup_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1223
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1224 /* If non-zero, this is the address of a function to call just before
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1225 readline_internal_setup () returns and readline_internal starts
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1226 reading input characters. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1227 -extern rl_hook_func_t *rl_pre_input_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1228 +READLINE_API rl_hook_func_t *rl_pre_input_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1229
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1230 /* The address of a function to call periodically while Readline is
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1231 awaiting character input, or NULL, for no event handling. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1232 -extern rl_hook_func_t *rl_event_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1233 +READLINE_API rl_hook_func_t *rl_event_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1234
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1235 /* The address of the function to call to fetch a character from the current
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1236 Readline input stream */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1237 -extern rl_getc_func_t *rl_getc_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1238 +READLINE_API rl_getc_func_t *rl_getc_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1239
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1240 -extern rl_voidfunc_t *rl_redisplay_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1241 +READLINE_API rl_voidfunc_t *rl_redisplay_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1242
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1243 -extern rl_vintfunc_t *rl_prep_term_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1244 -extern rl_voidfunc_t *rl_deprep_term_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1245 +READLINE_API rl_vintfunc_t *rl_prep_term_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1246 +READLINE_API rl_voidfunc_t *rl_deprep_term_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1247
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1248 /* Dispatch variables. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1249 -extern Keymap rl_executing_keymap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1250 -extern Keymap rl_binding_keymap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1251 +READLINE_API Keymap rl_executing_keymap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1252 +READLINE_API Keymap rl_binding_keymap;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1253
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1254 /* Display variables. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1255 /* If non-zero, readline will erase the entire line, including any prompt,
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1256 if the only thing typed on an otherwise-blank line is something bound to
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1257 rl_newline. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1258 -extern int rl_erase_empty_line;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1259 +READLINE_API int rl_erase_empty_line;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1260
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1261 /* If non-zero, the application has already printed the prompt (rl_prompt)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1262 before calling readline, so readline should not output it the first time
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1263 redisplay is done. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1264 -extern int rl_already_prompted;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1265 +READLINE_API int rl_already_prompted;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1266
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1267 /* A non-zero value means to read only this many characters rather than
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1268 up to a character bound to accept-line. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1269 -extern int rl_num_chars_to_read;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1270 +READLINE_API int rl_num_chars_to_read;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1271
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1272 /* The text of a currently-executing keyboard macro. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1273 -extern char *rl_executing_macro;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1274 +READLINE_API char *rl_executing_macro;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1275
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1276 /* Variables to control readline signal handling. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1277 /* If non-zero, readline will install its own signal handlers for
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1278 SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1279 -extern int rl_catch_signals;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1280 +READLINE_API int rl_catch_signals;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1281
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1282 /* If non-zero, readline will install a signal handler for SIGWINCH
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1283 that also attempts to call any calling application's SIGWINCH signal
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1284 handler. Note that the terminal is not cleaned up before the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1285 application's signal handler is called; use rl_cleanup_after_signal()
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1286 to do that. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1287 -extern int rl_catch_sigwinch;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1288 +READLINE_API int rl_catch_sigwinch;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1289
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1290 /* Completion variables. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1291 /* Pointer to the generator function for completion_matches ().
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1292 NULL means to use rl_filename_completion_function (), the default
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1293 filename completer. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1294 -extern rl_compentry_func_t *rl_completion_entry_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1295 +READLINE_API rl_compentry_func_t *rl_completion_entry_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1296
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1297 /* Optional generator for menu completion. Default is
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1298 rl_completion_entry_function (rl_filename_completion_function). */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1299 - extern rl_compentry_func_t *rl_menu_completion_entry_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1300 +READLINE_API rl_compentry_func_t *rl_menu_completion_entry_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1301
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1302 /* If rl_ignore_some_completions_function is non-NULL it is the address
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1303 of a function to call after all of the possible matches have been
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1304 @@ -619,7 +619,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1305 The function is called with one argument; a NULL terminated array
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1306 of (char *). If your function removes any of the elements, they
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1307 must be free()'ed. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1308 -extern rl_compignore_func_t *rl_ignore_some_completions_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1309 +READLINE_API rl_compignore_func_t *rl_ignore_some_completions_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1310
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1311 /* Pointer to alternative function to create matches.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1312 Function is called with TEXT, START, and END.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1313 @@ -628,39 +628,39 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1314 If this function exists and returns NULL then call the value of
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1315 rl_completion_entry_function to try to match, otherwise use the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1316 array of strings returned. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1317 -extern rl_completion_func_t *rl_attempted_completion_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1318 +READLINE_API rl_completion_func_t *rl_attempted_completion_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1319
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1320 /* The basic list of characters that signal a break between words for the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1321 completer routine. The initial contents of this variable is what
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1322 breaks words in the shell, i.e. "n\"\\'`@$>". */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1323 -extern const char *rl_basic_word_break_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1324 +READLINE_API const char *rl_basic_word_break_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1325
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1326 /* The list of characters that signal a break between words for
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1327 rl_complete_internal. The default list is the contents of
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1328 rl_basic_word_break_characters. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1329 -extern /*const*/ char *rl_completer_word_break_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1330 +READLINE_API /*const*/ char *rl_completer_word_break_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1331
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1332 /* Hook function to allow an application to set the completion word
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1333 break characters before readline breaks up the line. Allows
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1334 position-dependent word break characters. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1335 -extern rl_cpvfunc_t *rl_completion_word_break_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1336 +READLINE_API rl_cpvfunc_t *rl_completion_word_break_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1337
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1338 /* List of characters which can be used to quote a substring of the line.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1339 Completion occurs on the entire substring, and within the substring
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1340 rl_completer_word_break_characters are treated as any other character,
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1341 unless they also appear within this list. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1342 -extern const char *rl_completer_quote_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1343 +READLINE_API const char *rl_completer_quote_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1344
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1345 /* List of quote characters which cause a word break. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1346 -extern const char *rl_basic_quote_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1347 +READLINE_API const char *rl_basic_quote_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1348
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1349 /* List of characters that need to be quoted in filenames by the completer. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1350 -extern const char *rl_filename_quote_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1351 +READLINE_API const char *rl_filename_quote_characters;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1352
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1353 /* List of characters that are word break characters, but should be left
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1354 in TEXT when it is passed to the completion function. The shell uses
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1355 this to help determine what kind of completing to do. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1356 -extern const char *rl_special_prefixes;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1357 +READLINE_API const char *rl_special_prefixes;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1358
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1359 /* If non-zero, then this is the address of a function to call when
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1360 completing on a directory name. The function is called with
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1361 @@ -671,7 +671,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1362 the directory name pointer passed as an argument. If the directory
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1363 completion hook returns 0, it should not modify the directory name
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1364 pointer passed as an argument. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1365 -extern rl_icppfunc_t *rl_directory_completion_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1366 +READLINE_API rl_icppfunc_t *rl_directory_completion_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1367
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1368 /* If non-zero, this is the address of a function to call when completing
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1369 a directory name. This function takes the address of the directory name
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1370 @@ -684,7 +684,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1371
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1372 I'm not happy with how this works yet, so it's undocumented. I'm trying
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1373 it in bash to see how well it goes. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1374 -extern rl_icppfunc_t *rl_directory_rewrite_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1375 +READLINE_API rl_icppfunc_t *rl_directory_rewrite_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1376
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1377 /* If non-zero, this is the address of a function to call when reading
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1378 directory entries from the filesystem for completion and comparing
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1379 @@ -695,7 +695,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1380 keyboard. The returned value is what is added to the list of
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1381 matches. The second argument is the length of the filename to be
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1382 converted. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1383 -extern rl_dequote_func_t *rl_filename_rewrite_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1384 +READLINE_API rl_dequote_func_t *rl_filename_rewrite_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1385
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1386 /* Backwards compatibility with previous versions of readline. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1387 #define rl_symbolic_link_hook rl_directory_completion_hook
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1388 @@ -707,76 +707,76 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1389 where MATCHES is the array of strings that matched, NUM_MATCHES is the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1390 number of strings in that array, and MAX_LENGTH is the length of the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1391 longest string in that array. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1392 -extern rl_compdisp_func_t *rl_completion_display_matches_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1393 +READLINE_API rl_compdisp_func_t *rl_completion_display_matches_hook;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1394
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1395 /* Non-zero means that the results of the matches are to be treated
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1396 as filenames. This is ALWAYS zero on entry, and can only be changed
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1397 within a completion entry finder function. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1398 -extern int rl_filename_completion_desired;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1399 +READLINE_API int rl_filename_completion_desired;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1401 /* Non-zero means that the results of the matches are to be quoted using
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1402 double quotes (or an application-specific quoting mechanism) if the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1403 filename contains any characters in rl_word_break_chars. This is
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1404 ALWAYS non-zero on entry, and can only be changed within a completion
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1405 entry finder function. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1406 -extern int rl_filename_quoting_desired;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1407 +READLINE_API int rl_filename_quoting_desired;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1408
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1409 /* Set to a function to quote a filename in an application-specific fashion.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1410 Called with the text to quote, the type of match found (single or multiple)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1411 and a pointer to the quoting character to be used, which the function can
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1412 reset if desired. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1413 -extern rl_quote_func_t *rl_filename_quoting_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1414 +READLINE_API rl_quote_func_t *rl_filename_quoting_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1415
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1416 /* Function to call to remove quoting characters from a filename. Called
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1417 before completion is attempted, so the embedded quotes do not interfere
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1418 with matching names in the file system. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1419 -extern rl_dequote_func_t *rl_filename_dequoting_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1420 +READLINE_API rl_dequote_func_t *rl_filename_dequoting_function;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1421
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1422 /* Function to call to decide whether or not a word break character is
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1423 quoted. If a character is quoted, it does not break words for the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1424 completer. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1425 -extern rl_linebuf_func_t *rl_char_is_quoted_p;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1426 +READLINE_API rl_linebuf_func_t *rl_char_is_quoted_p;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1427
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1428 /* Non-zero means to suppress normal filename completion after the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1429 user-specified completion function has been called. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1430 -extern int rl_attempted_completion_over;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1431 +READLINE_API int rl_attempted_completion_over;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1432
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1433 /* Set to a character describing the type of completion being attempted by
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1434 rl_complete_internal; available for use by application completion
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1435 functions. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1436 -extern int rl_completion_type;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1437 +READLINE_API int rl_completion_type;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1438
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1439 /* Set to the last key used to invoke one of the completion functions */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1440 -extern int rl_completion_invoking_key;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1441 +READLINE_API int rl_completion_invoking_key;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1442
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1443 /* Up to this many items will be displayed in response to a
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1444 possible-completions call. After that, we ask the user if she
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1445 is sure she wants to see them all. The default value is 100. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1446 -extern int rl_completion_query_items;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1447 +READLINE_API int rl_completion_query_items;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1448
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1449 /* Character appended to completed words when at the end of the line. The
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1450 default is a space. Nothing is added if this is '\0'. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1451 -extern int rl_completion_append_character;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1452 +READLINE_API int rl_completion_append_character;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1453
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1454 /* If set to non-zero by an application completion function,
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1455 rl_completion_append_character will not be appended. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1456 -extern int rl_completion_suppress_append;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1457 +READLINE_API int rl_completion_suppress_append;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1458
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1459 /* Set to any quote character readline thinks it finds before any application
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1460 completion function is called. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1461 -extern int rl_completion_quote_character;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1462 +READLINE_API int rl_completion_quote_character;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1463
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1464 /* Set to a non-zero value if readline found quoting anywhere in the word to
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1465 be completed; set before any application completion function is called. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1466 -extern int rl_completion_found_quote;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1467 +READLINE_API int rl_completion_found_quote;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1468
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1469 /* If non-zero, the completion functions don't append any closing quote.
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1470 This is set to 0 by rl_complete_internal and may be changed by an
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1471 application-specific completion function. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1472 -extern int rl_completion_suppress_quote;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1473 +READLINE_API int rl_completion_suppress_quote;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1474
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1475 /* If non-zero, readline will sort the completion matches. On by default. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1476 -extern int rl_sort_completion_matches;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1477 +READLINE_API int rl_sort_completion_matches;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1478
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1479 /* If non-zero, a slash will be appended to completed filenames that are
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1480 symbolic links to directory names, subject to the value of the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1481 @@ -787,14 +787,14 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1482 rl_complete_internal before any application-specific completion
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1483 function is called, so without that function doing anything, the user's
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1484 preferences are honored. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1485 -extern int rl_completion_mark_symlink_dirs;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1486 +READLINE_API int rl_completion_mark_symlink_dirs;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1487
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1488 /* If non-zero, then disallow duplicates in the matches. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1489 -extern int rl_ignore_completion_duplicates;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1490 +READLINE_API int rl_ignore_completion_duplicates;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1491
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1492 /* If this is non-zero, completion is (temporarily) inhibited, and the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1493 completion character will be inserted as any other. */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1494 -extern int rl_inhibit_completion;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1495 +READLINE_API int rl_inhibit_completion;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1496
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1497 /* Input error; can be returned by (*rl_getc_function) if readline is reading
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1498 a top-level command (RL_ISSTATE (RL_STATE_READCMD)). */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1499 @@ -883,8 +883,8 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1500 char reserved[64];
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1501 };
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1502
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1503 -extern int rl_save_state PARAMS((struct readline_state *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1504 -extern int rl_restore_state PARAMS((struct readline_state *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1505 +READLINE_API int rl_save_state PARAMS((struct readline_state *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1506 +READLINE_API int rl_restore_state PARAMS((struct readline_state *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1507
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1508 #ifdef __cplusplus
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1509 }
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1510 diff -ur readline-6.2-orig/rldefs.h readline-6.2-new/rldefs.h
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1511 --- readline-6.2-orig/rldefs.h 2009-01-04 14:32:33 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1512 +++ readline-6.2-new/rldefs.h 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1513 @@ -63,7 +63,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1514 # include <strings.h>
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1515 #endif /* !HAVE_STRING_H */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1516
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1517 -#if !defined (strchr) && !defined (__STDC__)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1518 +#if !defined (strchr) && !defined (__STDC__) && !defined(_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1519 extern char *strchr (), *strrchr ();
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1520 #endif /* !strchr && !__STDC__ */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1521
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1522 diff -ur readline-6.2-orig/rlstdc.h readline-6.2-new/rlstdc.h
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1523 --- readline-6.2-orig/rlstdc.h 2009-01-04 14:32:33 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1524 +++ readline-6.2-new/rlstdc.h 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1525 @@ -42,4 +42,14 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1526 # endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1527 #endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1528
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1529 +#if defined (_MSC_VER)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1530 +# if defined (READLINE_DLL)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1531 +# define READLINE_API __declspec(dllexport)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1532 +# else
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1533 +# define READLINE_API __declspec(dllimport)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1534 +# endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1535 +#else
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1536 +# define READLINE_API extern
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1537 +#endif
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1538 +
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1539 #endif /* !_RL_STDC_H_ */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1540 diff -ur readline-6.2-orig/support/shlib-install readline-6.2-new/support/shlib-install
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1541 --- readline-6.2-orig/support/shlib-install 2009-10-28 09:30:18 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1542 +++ readline-6.2-new/support/shlib-install 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1543 @@ -75,8 +75,9 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1544 chmod 555 ${INSTALLDIR}/${LIBNAME}
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1545 fi ;;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1546 cygwin*|mingw*)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1547 + VCLIBNAME=`echo ${LIBNAME} | sed -e 's,\.dll,\.lib,'`
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1548 IMPLIBNAME=`echo ${LIBNAME} \
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1549 - | sed -e 's,^cyg,lib,' -e 's,[0-9]*.dll$,.dll.a,'`
3152
4ce61d3172f0 [MSVC] align readline behavior to MinGW, remove _MSC_VER specifics
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3122
diff changeset
1550 + | sed -e 's,^@@LIBRARY_PREFIX@@,,' -e 's,-[0-9]*@@LIBRARY_SUFFIX@@.dll$,.lib,'`
3122
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1551 if [ -z "$uninstall" ]; then
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1552 ${echo} $RM ${BINDIR}/${LIBNAME}.${OLDSUFF}
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1553 if [ -f "$BINDIR/$LIBNAME" ]; then
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1554 @@ -84,7 +85,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1555 fi
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1556 ${echo} $MV ${INSTALLDIR}/${LIBNAME} ${BINDIR}/${LIBNAME}
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1557 ${echo} chmod a+x ${BINDIR}/${LIBNAME}
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1558 - ${echo} eval ${INSTALLPROG} ${LIBNAME}.a \
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1559 + ${echo} eval ${INSTALLPROG} ${VCLIBNAME} \
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1560 ${INSTALLDIR}/${IMPLIBNAME}
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1561 else
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1562 ${echo} ${RM} ${BINDIR}/${LIBNAME}
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1563 diff -ur readline-6.2-orig/support/shobj-conf readline-6.2-new/support/shobj-conf
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1564 --- readline-6.2-orig/support/shobj-conf 2009-10-28 09:20:21 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1565 +++ readline-6.2-new/support/shobj-conf 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1566 @@ -522,10 +522,12 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1567
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1568 mingw*)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1569 SHOBJ_LD='$(CC)'
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1570 - SHOBJ_LDFLAGS='-shared -Wl,--enable-auto-import -Wl,--enable-auto-image-base -Wl,--export-all -Wl,--out-implib=$(@).a'
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1571 + SHOBJ_LDFLAGS='-shared'
3152
4ce61d3172f0 [MSVC] align readline behavior to MinGW, remove _MSC_VER specifics
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3122
diff changeset
1572 + SHLIB_LIBPREF='@@LIBRARY_PREFIX@@'
3122
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1573 SHLIB_LIBSUFF='dll'
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1574 - SHLIB_LIBVERSION='$(SHLIB_DLLVERSION).$(SHLIB_LIBSUFF)'
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1575 + SHLIB_LIBVERSION='-$(SHLIB_DLLVERSION)@@LIBRARY_SUFFIX@@.$(SHLIB_LIBSUFF)'
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1576 SHLIB_LIBS='$(TERMCAP_LIB)'
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1577 + SHOBJ_CFLAGS='-D__MINGW32__ -DREADLINE_DLL'
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1578
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1579 SHLIB_DOT=
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1580 # For official cygwin releases, DLLVERSION will be defined in the
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1581 diff -ur readline-6.2-orig/util.c readline-6.2-new/util.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1582 --- readline-6.2-orig/util.c 2010-05-30 18:36:02 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1583 +++ readline-6.2-new/util.c 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1584 @@ -389,7 +389,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1585 break;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1586 s2++;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1587 }
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1588 - while (--count != 0)
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1589 + while (--count != 0);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1590
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1591 return (0);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1592 }
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1593 diff -ur readline-6.2-orig/vi_mode.c readline-6.2-new/vi_mode.c
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1594 --- readline-6.2-orig/vi_mode.c 2010-11-20 19:51:39 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1595 +++ readline-6.2-new/vi_mode.c 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1596 @@ -1006,7 +1006,7 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1597 {
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1598 _rl_vimotion_cxt *m;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1599
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1600 - m = xmalloc (sizeof (_rl_vimotion_cxt));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1601 + m = (_rl_vimotion_cxt *) xmalloc (sizeof (_rl_vimotion_cxt));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1602 _rl_mvcxt_init (m, op, key);
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1603 return m;
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1604 }
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1605 diff -ur readline-6.2-orig/xmalloc.h readline-6.2-new/xmalloc.h
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1606 --- readline-6.2-orig/xmalloc.h 2009-01-04 14:32:34 -0500
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1607 +++ readline-6.2-new/xmalloc.h 2013-07-05 21:41:36 -0400
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1608 @@ -38,8 +38,8 @@
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1609
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1610 #endif /* !PTR_T */
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1611
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1612 -extern PTR_T xmalloc PARAMS((size_t));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1613 -extern PTR_T xrealloc PARAMS((void *, size_t));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1614 -extern void xfree PARAMS((void *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1615 +READLINE_API PTR_T xmalloc PARAMS((size_t));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1616 +READLINE_API PTR_T xrealloc PARAMS((void *, size_t));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1617 +READLINE_API void xfree PARAMS((void *));
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1618
c2864508b524 [MSVC] enable readline compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1619 #endif /* _XMALLOC_H_ */