Mercurial > vim
annotate src/proto.h @ 2428:33148c37f3c9 vim73
Changes for VMS. Mostly by Zoltan Arpadffy.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 28 Jul 2010 19:38:16 +0200 |
parents | ad2889f48843 |
children | 8bd38abda314 |
rev | line source |
---|---|
7 | 1 /* vi:set ts=8 sts=4 sw=4: |
2 * | |
3 * VIM - Vi IMproved by Bram Moolenaar | |
4 * | |
5 * Do ":help uganda" in Vim to read copying and usage conditions. | |
6 * Do ":help credits" in Vim to see a list of people who contributed. | |
7 */ | |
8 | |
9 /* | |
10 * proto.h: include the (automatically generated) function prototypes | |
11 */ | |
12 | |
13 /* | |
14 * Don't include these while generating prototypes. Prevents problems when | |
15 * files are missing. | |
16 */ | |
17 #if !defined(PROTO) && !defined(NOPROTO) | |
18 | |
19 /* | |
20 * Machine-dependent routines. | |
21 */ | |
22 /* avoid errors in function prototypes */ | |
573 | 23 # if !defined(FEAT_X11) && !defined(FEAT_GUI_GTK) |
7 | 24 # define Display int |
25 # define Widget int | |
26 # endif | |
27 # ifndef FEAT_GUI_GTK | |
28 # define GdkEvent int | |
29 # define GdkEventKey int | |
30 # endif | |
31 # ifndef FEAT_X11 | |
32 # define XImage int | |
33 # endif | |
34 | |
35 # ifdef AMIGA | |
36 # include "os_amiga.pro" | |
37 # endif | |
38 # if defined(UNIX) || defined(__EMX__) || defined(VMS) | |
39 # include "os_unix.pro" | |
40 # endif | |
41 # if defined(MSDOS) || defined(WIN16) | |
42 # include "os_msdos.pro" | |
43 # endif | |
44 # ifdef WIN16 | |
45 typedef LPSTR LPWSTR; | |
46 typedef LPCSTR LPCWSTR; | |
47 typedef int LPBOOL; | |
48 # include "os_win16.pro" | |
49 # include "os_mswin.pro" | |
50 # endif | |
51 # ifdef WIN3264 | |
52 # include "os_win32.pro" | |
53 # include "os_mswin.pro" | |
54 # if (defined(__GNUC__) && !defined(__MINGW32__)) \ | |
55 || (defined(__BORLANDC__) && __BORLANDC__ < 0x502) | |
56 extern int _stricoll __ARGS((char *a, char *b)); | |
57 # endif | |
58 # endif | |
59 # ifdef VMS | |
60 # include "os_vms.pro" | |
61 # endif | |
62 # ifdef __BEOS__ | |
63 # include "os_beos.pro" | |
64 # endif | |
65 # ifdef RISCOS | |
66 # include "os_riscos.pro" | |
67 # endif | |
68 # ifdef __QNX__ | |
69 # include "os_qnx.pro" | |
70 # endif | |
71 | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
72 # ifdef FEAT_CRYPT |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
73 # include "blowfish.pro" |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
74 # endif |
7 | 75 # include "buffer.pro" |
76 # include "charset.pro" | |
77 # ifdef FEAT_CSCOPE | |
78 # include "if_cscope.pro" | |
79 # endif | |
80 # include "diff.pro" | |
81 # include "digraph.pro" | |
82 # include "edit.pro" | |
83 # include "eval.pro" | |
84 # include "ex_cmds.pro" | |
85 # include "ex_cmds2.pro" | |
86 # include "ex_docmd.pro" | |
87 # include "ex_eval.pro" | |
88 # include "ex_getln.pro" | |
89 # include "fileio.pro" | |
90 # include "fold.pro" | |
91 # include "getchar.pro" | |
92 # ifdef FEAT_HANGULIN | |
93 # include "hangulin.pro" | |
94 # endif | |
440 | 95 # include "hardcopy.pro" |
799 | 96 # include "hashtab.pro" |
7 | 97 # include "main.pro" |
98 # include "mark.pro" | |
99 # include "memfile.pro" | |
100 # include "memline.pro" | |
101 # ifdef FEAT_MENU | |
102 # include "menu.pro" | |
103 # endif | |
272 | 104 |
105 # if !defined MESSAGE_FILE || defined(HAVE_STDARG_H) | |
106 /* These prototypes cannot be produced automatically and conflict with | |
107 * the old-style prototypes in message.c. */ | |
108 int | |
109 # ifdef __BORLANDC__ | |
110 _RTLENTRYF | |
111 # endif | |
112 smsg __ARGS((char_u *, ...)); | |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
113 |
272 | 114 int |
115 # ifdef __BORLANDC__ | |
116 _RTLENTRYF | |
117 # endif | |
118 smsg_attr __ARGS((int, char_u *, ...)); | |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
119 |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
120 int |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
121 # ifdef __BORLANDC__ |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
122 _RTLENTRYF |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
123 # endif |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
124 vim_snprintf_add __ARGS((char *, size_t, char *, ...)); |
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
125 |
272 | 126 int |
127 # ifdef __BORLANDC__ | |
128 _RTLENTRYF | |
129 # endif | |
130 vim_snprintf __ARGS((char *, size_t, char *, ...)); | |
2280
941ff1cd317a
Add file save counter to undo information. Add undotree() function.
Bram Moolenaar <bram@vim.org>
parents:
2265
diff
changeset
|
131 |
451 | 132 # if defined(HAVE_STDARG_H) |
449 | 133 int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs); |
451 | 134 # endif |
272 | 135 # endif |
136 | |
7 | 137 # include "message.pro" |
138 # include "misc1.pro" | |
139 # include "misc2.pro" | |
140 #ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */ | |
141 char_u *vim_strpbrk __ARGS((char_u *s, char_u *charset)); | |
142 #endif | |
143 #ifndef HAVE_QSORT | |
144 /* Use our own qsort(), don't define the prototype when not used. */ | |
145 void qsort __ARGS((void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *))); | |
146 #endif | |
147 # include "move.pro" | |
148 # if defined(FEAT_MBYTE) || defined(FEAT_XIM) || defined(FEAT_KEYMAP) \ | |
149 || defined(FEAT_POSTSCRIPT) | |
150 # include "mbyte.pro" | |
151 # endif | |
152 # include "normal.pro" | |
153 # include "ops.pro" | |
154 # include "option.pro" | |
799 | 155 # include "popupmnu.pro" |
156 # ifdef FEAT_QUICKFIX | |
157 # include "quickfix.pro" | |
158 # endif | |
7 | 159 # include "regexp.pro" |
160 # include "screen.pro" | |
2265
b7cb69ab616d
Added salt to blowfish encryption.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
161 # if defined(FEAT_CRYPT) || defined(FEAT_PERSISTENT_UNDO) |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
162 # include "sha256.pro" |
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
799
diff
changeset
|
163 # endif |
7 | 164 # include "search.pro" |
220 | 165 # include "spell.pro" |
7 | 166 # include "syntax.pro" |
167 # include "tag.pro" | |
168 # include "term.pro" | |
169 # if defined(HAVE_TGETENT) && (defined(AMIGA) || defined(VMS)) | |
170 # include "termlib.pro" | |
171 # endif | |
172 # include "ui.pro" | |
173 # include "undo.pro" | |
174 # include "version.pro" | |
175 # include "window.pro" | |
176 | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2310
diff
changeset
|
177 # ifdef FEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2310
diff
changeset
|
178 # include "if_lua.pro" |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2310
diff
changeset
|
179 # endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2310
diff
changeset
|
180 |
14 | 181 # ifdef FEAT_MZSCHEME |
182 # include "if_mzsch.pro" | |
183 # endif | |
184 | |
7 | 185 # ifdef FEAT_PYTHON |
186 # include "if_python.pro" | |
187 # endif | |
188 | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
189 # ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
190 # include "if_python3.pro" |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
191 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
192 |
7 | 193 # ifdef FEAT_TCL |
194 # include "if_tcl.pro" | |
195 # endif | |
196 | |
197 # ifdef FEAT_RUBY | |
198 # include "if_ruby.pro" | |
199 # endif | |
200 | |
2209
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
201 /* Ugly solution for "BalloonEval" not being defined while it's used in some |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
202 * .pro files. */ |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
203 # ifndef FEAT_BEVAL |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
204 # define BalloonEval int |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
205 # endif |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
206 |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
207 # ifdef FEAT_NETBEANS_INTG |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
208 # include "netbeans.pro" |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
209 # endif |
d0ddf7ba1630
Included the patch to support netbeans in a terminal.
Bram Moolenaar <bram@vim.org>
parents:
2180
diff
changeset
|
210 |
7 | 211 # ifdef FEAT_GUI |
212 # include "gui.pro" | |
213 # if defined(UNIX) || defined(MACOS) | |
214 # include "pty.pro" | |
215 # endif | |
216 # if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS) | |
217 extern int putenv __ARGS((const char *string)); /* from pty.c */ | |
218 # ifdef USE_VIMPTY_GETENV | |
219 extern char_u *vimpty_getenv __ARGS((const char_u *string)); /* from pty.c */ | |
220 # endif | |
221 # endif | |
222 # ifdef FEAT_GUI_W16 | |
223 # include "gui_w16.pro" | |
224 # endif | |
225 # ifdef FEAT_GUI_W32 | |
226 # include "gui_w32.pro" | |
227 # endif | |
228 # ifdef FEAT_GUI_GTK | |
229 # include "gui_gtk.pro" | |
230 # include "gui_gtk_x11.pro" | |
231 # endif | |
232 # ifdef FEAT_GUI_MOTIF | |
233 # include "gui_motif.pro" | |
44 | 234 # include "gui_xmdlg.pro" |
7 | 235 # endif |
236 # ifdef FEAT_GUI_ATHENA | |
237 # include "gui_athena.pro" | |
238 # ifdef FEAT_BROWSE | |
239 extern char *vim_SelFile __ARGS((Widget toplevel, char *prompt, char *init_path, int (*show_entry)(), int x, int y, guicolor_T fg, guicolor_T bg, guicolor_T scroll_fg, guicolor_T scroll_bg)); | |
240 # endif | |
241 # endif | |
242 # ifdef FEAT_GUI_MAC | |
243 # include "gui_mac.pro" | |
244 # endif | |
245 # ifdef FEAT_GUI_X11 | |
246 # include "gui_x11.pro" | |
247 # endif | |
248 # ifdef RISCOS | |
249 # include "gui_riscos.pro" | |
250 # endif | |
251 # ifdef FEAT_GUI_PHOTON | |
252 # include "gui_photon.pro" | |
253 # endif | |
254 # ifdef FEAT_SUN_WORKSHOP | |
255 # include "workshop.pro" | |
256 # endif | |
257 # endif /* FEAT_GUI */ | |
258 | |
259 # ifdef FEAT_OLE | |
260 # include "if_ole.pro" | |
261 # endif | |
262 # if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11) | |
263 # include "if_xcmdsrv.pro" | |
264 # endif | |
265 | |
266 /* | |
539 | 267 * The perl include files pollute the namespace, therefore proto.h must be |
7 | 268 * included before the perl include files. But then CV is not defined, which |
269 * is used in if_perl.pro. To get around this, the perl prototype files are | |
270 * not included here for the perl files. Use a dummy define for CV for the | |
271 * other files. | |
272 */ | |
273 #if defined(FEAT_PERL) && !defined(IN_PERL_FILE) | |
274 # define CV void | |
275 # ifdef __BORLANDC__ | |
127 | 276 #pragma option -pc |
7 | 277 # endif |
278 # include "if_perl.pro" | |
279 # ifdef __BORLANDC__ | |
127 | 280 #pragma option -p. |
7 | 281 # endif |
282 # include "if_perlsfio.pro" | |
283 #endif | |
284 | |
763 | 285 #ifdef MACOS_CONVERT |
501 | 286 # include "os_mac_conv.pro" |
287 #endif | |
2310
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
288 #if defined(MACOS_X_UNIX) && defined(FEAT_CLIPBOARD) && !defined(FEAT_GUI) |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
289 /* functions in os_macosx.m */ |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
290 void clip_mch_lose_selection(VimClipboard *cbd); |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
291 int clip_mch_own_selection(VimClipboard *cbd); |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
292 void clip_mch_request_selection(VimClipboard *cbd); |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
293 void clip_mch_set_selection(VimClipboard *cbd); |
3e4574a4b627
Fix a few compiler warnings.
Bram Moolenaar <bram@vim.org>
parents:
2280
diff
changeset
|
294 #endif |
501 | 295 |
7 | 296 #ifdef __BORLANDC__ |
297 # define _PROTO_H | |
298 #endif | |
299 #endif /* !PROTO && !NOPROTO */ |