Mercurial > vim
comparison src/vim.h @ 11:4424b47a0797
updated for version 7.0003
author | vimboss |
---|---|
date | Wed, 30 Jun 2004 16:16:41 +0000 |
parents | 4e2284e71352 |
children | bdeee1504ac1 |
comparison
equal
deleted
inserted
replaced
10:4e2284e71352 | 11:4424b47a0797 |
---|---|
86 || defined(FEAT_GUI_MAC) \ | 86 || defined(FEAT_GUI_MAC) \ |
87 || defined(FEAT_GUI_W32) \ | 87 || defined(FEAT_GUI_W32) \ |
88 || defined(FEAT_GUI_W16) \ | 88 || defined(FEAT_GUI_W16) \ |
89 || defined(FEAT_GUI_BEOS) \ | 89 || defined(FEAT_GUI_BEOS) \ |
90 || defined(FEAT_GUI_AMIGA) \ | 90 || defined(FEAT_GUI_AMIGA) \ |
91 || defined(FEAT_GUI_PHOTON) | 91 || defined(FEAT_GUI_PHOTON) \ |
92 || defined(FEAT_GUI_KDE) | |
92 # ifndef FEAT_GUI | 93 # ifndef FEAT_GUI |
93 # define FEAT_GUI | 94 # define FEAT_GUI |
94 # endif | 95 # endif |
95 #endif | 96 #endif |
96 | 97 |
210 /* __ARGS and __PARMS are the same thing. */ | 211 /* __ARGS and __PARMS are the same thing. */ |
211 #ifndef __PARMS | 212 #ifndef __PARMS |
212 # define __PARMS(x) __ARGS(x) | 213 # define __PARMS(x) __ARGS(x) |
213 #endif | 214 #endif |
214 | 215 |
215 #if defined(UNIX) && !defined(MACOS_X) /* MACOS_X doesn't yet support osdef.h */ | 216 /* if we're compiling in C++ (currently only KVim), the system |
217 * headers must have the correct prototypes or nothing will build. | |
218 * conversely, our prototypes might clash due to throw() specifiers and | |
219 * cause compilation failures even though the headers are correct. for | |
220 * a concrete example, gcc-3.2 enforces exception specifications, and | |
221 * glibc-2.2.5 has them in their system headers. | |
222 */ | |
223 #if !defined(__cplusplus) && defined(UNIX) \ | |
224 && !defined(MACOS_X) /* MACOS_X doesn't yet support osdef.h */ | |
216 # include "auto/osdef.h" /* bring missing declarations in */ | 225 # include "auto/osdef.h" /* bring missing declarations in */ |
217 #endif | 226 #endif |
218 | 227 |
219 #ifdef __EMX__ | 228 #ifdef __EMX__ |
220 # define getcwd _getcwd2 | 229 # define getcwd _getcwd2 |
1020 EVENT_FILTERWRITEPOST, /* after writing to a filter */ | 1029 EVENT_FILTERWRITEPOST, /* after writing to a filter */ |
1021 EVENT_FILTERWRITEPRE, /* before writing to a filter */ | 1030 EVENT_FILTERWRITEPRE, /* before writing to a filter */ |
1022 EVENT_FOCUSGAINED, /* got the focus */ | 1031 EVENT_FOCUSGAINED, /* got the focus */ |
1023 EVENT_FOCUSLOST, /* lost the focus to another app */ | 1032 EVENT_FOCUSLOST, /* lost the focus to another app */ |
1024 EVENT_GUIENTER, /* after starting the GUI */ | 1033 EVENT_GUIENTER, /* after starting the GUI */ |
1034 EVENT_INSERTCHANGE, /* when changing Insert/Replace mode */ | |
1035 EVENT_INSERTENTER, /* when entering Insert mode */ | |
1036 EVENT_INSERTLEAVE, /* when leaving Insert mode */ | |
1025 EVENT_STDINREADPOST, /* after reading from stdin */ | 1037 EVENT_STDINREADPOST, /* after reading from stdin */ |
1026 EVENT_STDINREADPRE, /* before reading from stdin */ | 1038 EVENT_STDINREADPRE, /* before reading from stdin */ |
1027 EVENT_SYNTAX, /* syntax selected */ | 1039 EVENT_SYNTAX, /* syntax selected */ |
1028 EVENT_TERMCHANGED, /* after changing 'term' */ | 1040 EVENT_TERMCHANGED, /* after changing 'term' */ |
1029 EVENT_TERMRESPONSE, /* after setting "v:termresponse" */ | 1041 EVENT_TERMRESPONSE, /* after setting "v:termresponse" */ |
1471 #define VV_DYING 28 | 1483 #define VV_DYING 28 |
1472 #define VV_EXCEPTION 29 | 1484 #define VV_EXCEPTION 29 |
1473 #define VV_THROWPOINT 30 | 1485 #define VV_THROWPOINT 30 |
1474 #define VV_REG 31 | 1486 #define VV_REG 31 |
1475 #define VV_CMDBANG 32 | 1487 #define VV_CMDBANG 32 |
1476 #define VV_LEN 33 /* number of v: vars */ | 1488 #define VV_INSERTMODE 33 |
1489 #define VV_LEN 34 /* number of v: vars */ | |
1477 | 1490 |
1478 #ifdef FEAT_CLIPBOARD | 1491 #ifdef FEAT_CLIPBOARD |
1479 | 1492 |
1480 /* VIM_ATOM_NAME is the older Vim-specific selection type for X11. Still | 1493 /* VIM_ATOM_NAME is the older Vim-specific selection type for X11. Still |
1481 * supported for when a mix of Vim versions is used. VIMENC_ATOM_NAME includes | 1494 * supported for when a mix of Vim versions is used. VIMENC_ATOM_NAME includes |
1570 /* This has to go after the include of proto.h, as proto/gui.pro declares | 1583 /* This has to go after the include of proto.h, as proto/gui.pro declares |
1571 * functions of these names. The declarations would break if the defines had | 1584 * functions of these names. The declarations would break if the defines had |
1572 * been seen at that stage. But it must be before globals.h, where error_ga | 1585 * been seen at that stage. But it must be before globals.h, where error_ga |
1573 * is declared. */ | 1586 * is declared. */ |
1574 #if !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_X11) \ | 1587 #if !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_X11) \ |
1575 && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MAC) | 1588 && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_KDE) && !defined(FEAT_GUI_MAC) |
1576 # define mch_errmsg(str) fprintf(stderr, "%s", (str)) | 1589 # define mch_errmsg(str) fprintf(stderr, "%s", (str)) |
1577 # define display_errors() fflush(stderr) | 1590 # define display_errors() fflush(stderr) |
1578 # define mch_msg(str) printf("%s", (str)) | 1591 # define mch_msg(str) printf("%s", (str)) |
1579 #else | 1592 #else |
1580 # define USE_MCH_ERRMSG | 1593 # define USE_MCH_ERRMSG |