Mercurial > vim
comparison src/os_msdos.c @ 3927:e6d8b44065bc v7.3.719
updated for version 7.3.719
Problem: Cannot run new version of cproto, it fails on missing include
files.
Solution: Add lots of #ifndef PROTO
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 20 Nov 2012 16:53:39 +0100 |
parents | 286ba0251c0a |
children | 04736b4030ec |
comparison
equal
deleted
inserted
replaced
3926:3ea4cfe2d1df | 3927:e6d8b44065bc |
---|---|
21 * Some functions are also used for Win16 (MS-Windows 3.1). | 21 * Some functions are also used for Win16 (MS-Windows 3.1). |
22 */ | 22 */ |
23 | 23 |
24 #include "vim.h" | 24 #include "vim.h" |
25 | 25 |
26 #include <conio.h> | 26 /* cproto fails on missing include files */ |
27 #ifndef PROTO | |
28 # include <conio.h> | |
29 #endif | |
27 | 30 |
28 /* | 31 /* |
29 * MS-DOS only code, not used for Win16. | 32 * MS-DOS only code, not used for Win16. |
30 */ | 33 */ |
31 #ifndef WIN16 | 34 #ifndef WIN16 |
32 | 35 |
33 | 36 |
34 #include <bios.h> | 37 #ifndef PROTO |
35 #ifdef DJGPP | 38 # include <bios.h> |
36 # include <dpmi.h> | 39 # ifdef DJGPP |
37 # include <signal.h> | 40 # include <dpmi.h> |
38 # include <sys/movedata.h> | 41 # include <signal.h> |
39 # include <crt0.h> | 42 # include <sys/movedata.h> |
40 # ifdef FEAT_CLIPBOARD | 43 # include <crt0.h> |
41 # include <sys/segments.h> | 44 # ifdef FEAT_CLIPBOARD |
45 # include <sys/segments.h> | |
46 # endif | |
47 # else | |
48 # include <alloc.h> | |
42 # endif | 49 # endif |
43 #else | |
44 # include <alloc.h> | |
45 #endif | 50 #endif |
46 | 51 |
47 #if defined(DJGPP) || defined(PROTO) | 52 #if defined(DJGPP) || defined(PROTO) |
48 # define _cdecl /* DJGPP doesn't have this */ | 53 # define _cdecl /* DJGPP doesn't have this */ |
49 #endif | 54 #endif |
2128 * Scaled down a lot for use by Vim: Only support setlocale(LC_ALL, ""). | 2133 * Scaled down a lot for use by Vim: Only support setlocale(LC_ALL, ""). |
2129 */ | 2134 */ |
2130 | 2135 |
2131 #undef setlocale | 2136 #undef setlocale |
2132 | 2137 |
2133 #include <go32.h> | 2138 #ifndef PROTO |
2134 #include <inlines/ctype.ha> | 2139 # include <go32.h> |
2140 # include <inlines/ctype.ha> | |
2141 #endif | |
2135 #include <locale.h> | 2142 #include <locale.h> |
2136 | 2143 |
2137 #define UPCASE (__dj_ISALNUM | __dj_ISALPHA | __dj_ISGRAPH | __dj_ISPRINT | __dj_ISUPPER) | 2144 #define UPCASE (__dj_ISALNUM | __dj_ISALPHA | __dj_ISGRAPH | __dj_ISPRINT | __dj_ISUPPER) |
2138 #define LOCASE (__dj_ISALNUM | __dj_ISALPHA | __dj_ISGRAPH | __dj_ISPRINT | __dj_ISLOWER) | 2145 #define LOCASE (__dj_ISALNUM | __dj_ISALPHA | __dj_ISGRAPH | __dj_ISPRINT | __dj_ISLOWER) |
2139 | 2146 |