comparison src/proto.h @ 16606:7e733046db1d v8.1.1306

patch 8.1.1306: Borland support is outdated and doesn't work commit https://github.com/vim/vim/commit/eae1b91fea74842000fc055afc74fe2e7934c6ee Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 9 15:12:55 2019 +0200 patch 8.1.1306: Borland support is outdated and doesn't work Problem: Borland support is outdated and doesn't work. Solution: Remove Borland support, there are other (free) compilers available. (Thomas Dziedzic, Ken Takata, closes #4364)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 May 2019 15:15:07 +0200
parents 5b5c5daf57de
children 30de89c1d090
comparison
equal deleted inserted replaced
16605:50115650f6c7 16606:7e733046db1d
40 # endif 40 # endif
41 # ifdef MSWIN 41 # ifdef MSWIN
42 # include "os_win32.pro" 42 # include "os_win32.pro"
43 # include "os_mswin.pro" 43 # include "os_mswin.pro"
44 # include "winclip.pro" 44 # include "winclip.pro"
45 # if (defined(__GNUC__) && !defined(__MINGW32__)) \ 45 # if (defined(__GNUC__) && !defined(__MINGW32__))
46 || (defined(__BORLANDC__) && __BORLANDC__ < 0x502)
47 extern int _stricoll(char *a, char *b); 46 extern int _stricoll(char *a, char *b);
48 # endif 47 # endif
49 # endif 48 # endif
50 # ifdef VMS 49 # ifdef VMS
51 # include "os_vms.pro" 50 # include "os_vms.pro"
106 # ifdef FEAT_ARABIC 105 # ifdef FEAT_ARABIC
107 # include "arabic.pro" 106 # include "arabic.pro"
108 # endif 107 # endif
109 108
110 /* These prototypes cannot be produced automatically. */ 109 /* These prototypes cannot be produced automatically. */
111 int 110 int smsg(const char *, ...)
112 # ifdef __BORLANDC__
113 _RTLENTRYF
114 # endif
115 smsg(const char *, ...)
116 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE 111 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
117 __attribute__((format(printf, 1, 0))) 112 __attribute__((format(printf, 1, 0)))
118 #endif 113 #endif
119 ; 114 ;
120 115
121 int 116 int smsg_attr(int, const char *, ...)
122 # ifdef __BORLANDC__
123 _RTLENTRYF
124 # endif
125 smsg_attr(int, const char *, ...)
126 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE 117 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
127 __attribute__((format(printf, 2, 3))) 118 __attribute__((format(printf, 2, 3)))
128 #endif 119 #endif
129 ; 120 ;
130 121
131 int 122 int smsg_attr_keep(int, const char *, ...)
132 # ifdef __BORLANDC__
133 _RTLENTRYF
134 # endif
135 smsg_attr_keep(int, const char *, ...)
136 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE 123 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
137 __attribute__((format(printf, 2, 3))) 124 __attribute__((format(printf, 2, 3)))
138 #endif 125 #endif
139 ; 126 ;
140 127
141 /* These prototypes cannot be produced automatically. */ 128 /* These prototypes cannot be produced automatically. */
142 int 129 int semsg(const char *, ...)
143 # ifdef __BORLANDC__
144 _RTLENTRYF
145 # endif
146 semsg(const char *, ...)
147 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE 130 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
148 __attribute__((format(printf, 1, 0))) 131 __attribute__((format(printf, 1, 0)))
149 #endif 132 #endif
150 ; 133 ;
151 134
152 /* These prototypes cannot be produced automatically. */ 135 /* These prototypes cannot be produced automatically. */
153 void 136 void siemsg(const char *, ...)
154 # ifdef __BORLANDC__
155 _RTLENTRYF
156 # endif
157 siemsg(const char *, ...)
158 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE 137 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
159 __attribute__((format(printf, 1, 0))) 138 __attribute__((format(printf, 1, 0)))
160 #endif 139 #endif
161 ; 140 ;
162 141
163 int 142 int vim_snprintf_add(char *, size_t, const char *, ...)
164 # ifdef __BORLANDC__
165 _RTLENTRYF
166 # endif
167 vim_snprintf_add(char *, size_t, const char *, ...)
168 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE 143 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
169 __attribute__((format(printf, 3, 4))) 144 __attribute__((format(printf, 3, 4)))
170 #endif 145 #endif
171 ; 146 ;
172 147
173 int 148 int vim_snprintf(char *, size_t, const char *, ...)
174 # ifdef __BORLANDC__
175 _RTLENTRYF
176 # endif
177 vim_snprintf(char *, size_t, const char *, ...)
178 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE 149 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
179 __attribute__((format(printf, 3, 4))) 150 __attribute__((format(printf, 3, 4)))
180 #endif 151 #endif
181 ; 152 ;
182 153
207 # if defined(FEAT_CRYPT) || defined(FEAT_PERSISTENT_UNDO) 178 # if defined(FEAT_CRYPT) || defined(FEAT_PERSISTENT_UNDO)
208 # include "sha256.pro" 179 # include "sha256.pro"
209 # endif 180 # endif
210 # include "search.pro" 181 # include "search.pro"
211 # ifdef FEAT_SIGNS 182 # ifdef FEAT_SIGNS
212 # include "sign.pro" 183 # include "sign.pro"
213 # endif 184 # endif
214 # include "spell.pro" 185 # include "spell.pro"
215 # include "spellfile.pro" 186 # include "spellfile.pro"
216 # include "syntax.pro" 187 # include "syntax.pro"
217 # include "tag.pro" 188 # include "tag.pro"
335 * not included here for the perl files. Use a dummy define for CV for the 306 * not included here for the perl files. Use a dummy define for CV for the
336 * other files. 307 * other files.
337 */ 308 */
338 #if defined(FEAT_PERL) && !defined(IN_PERL_FILE) 309 #if defined(FEAT_PERL) && !defined(IN_PERL_FILE)
339 # define CV void 310 # define CV void
340 # ifdef __BORLANDC__
341 #pragma option -pc
342 # endif
343 # include "if_perl.pro" 311 # include "if_perl.pro"
344 # ifdef __BORLANDC__
345 #pragma option -p.
346 # endif
347 # include "if_perlsfio.pro" 312 # include "if_perlsfio.pro"
348 #endif 313 #endif
349 314
350 #ifdef MACOS_CONVERT 315 #ifdef MACOS_CONVERT
351 # include "os_mac_conv.pro" 316 # include "os_mac_conv.pro"
355 void clip_mch_lose_selection(VimClipboard *cbd); 320 void clip_mch_lose_selection(VimClipboard *cbd);
356 int clip_mch_own_selection(VimClipboard *cbd); 321 int clip_mch_own_selection(VimClipboard *cbd);
357 void clip_mch_request_selection(VimClipboard *cbd); 322 void clip_mch_request_selection(VimClipboard *cbd);
358 void clip_mch_set_selection(VimClipboard *cbd); 323 void clip_mch_set_selection(VimClipboard *cbd);
359 #endif 324 #endif
360
361 #ifdef __BORLANDC__
362 # define _PROTO_H
363 #endif
364 #endif /* !PROTO && !NOPROTO */ 325 #endif /* !PROTO && !NOPROTO */