Mercurial > vim
comparison src/proto.h @ 18753:6e3dc2d630c2 v8.1.2366
patch 8.1.2366: using old C style comments
Commit: https://github.com/vim/vim/commit/9bf703d46a79fbffeb829246ea5ce385bddc4166
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 19:44:38 2019 +0100
patch 8.1.2366: using old C style comments
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 19:45:03 +0100 |
parents | e9b2ade1adbd |
children | 49b78d6465e5 |
comparison
equal
deleted
inserted
replaced
18752:9ec3c9cb4533 | 18753:6e3dc2d630c2 |
---|---|
17 #if !defined(PROTO) && !defined(NOPROTO) | 17 #if !defined(PROTO) && !defined(NOPROTO) |
18 | 18 |
19 /* | 19 /* |
20 * Machine-dependent routines. | 20 * Machine-dependent routines. |
21 */ | 21 */ |
22 /* avoid errors in function prototypes */ | 22 // avoid errors in function prototypes |
23 # if !defined(FEAT_X11) && !defined(FEAT_GUI_GTK) | 23 # if !defined(FEAT_X11) && !defined(FEAT_GUI_GTK) |
24 # define Display int | 24 # define Display int |
25 # define Widget int | 25 # define Widget int |
26 # endif | 26 # endif |
27 # ifndef FEAT_GUI_GTK | 27 # ifndef FEAT_GUI_GTK |
114 # endif | 114 # endif |
115 # ifdef FEAT_VIMINFO | 115 # ifdef FEAT_VIMINFO |
116 # include "viminfo.pro" | 116 # include "viminfo.pro" |
117 # endif | 117 # endif |
118 | 118 |
119 /* These prototypes cannot be produced automatically. */ | 119 // These prototypes cannot be produced automatically. |
120 int smsg(const char *, ...) | 120 int smsg(const char *, ...) |
121 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE | 121 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE |
122 __attribute__((format(printf, 1, 0))) | 122 __attribute__((format(printf, 1, 0))) |
123 #endif | 123 #endif |
124 ; | 124 ; |
133 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE | 133 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE |
134 __attribute__((format(printf, 2, 3))) | 134 __attribute__((format(printf, 2, 3))) |
135 #endif | 135 #endif |
136 ; | 136 ; |
137 | 137 |
138 /* These prototypes cannot be produced automatically. */ | 138 // These prototypes cannot be produced automatically. |
139 int semsg(const char *, ...) | 139 int semsg(const char *, ...) |
140 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE | 140 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE |
141 __attribute__((format(printf, 1, 0))) | 141 __attribute__((format(printf, 1, 0))) |
142 #endif | 142 #endif |
143 ; | 143 ; |
144 | 144 |
145 /* These prototypes cannot be produced automatically. */ | 145 // These prototypes cannot be produced automatically. |
146 void siemsg(const char *, ...) | 146 void siemsg(const char *, ...) |
147 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE | 147 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE |
148 __attribute__((format(printf, 1, 0))) | 148 __attribute__((format(printf, 1, 0))) |
149 #endif | 149 #endif |
150 ; | 150 ; |
165 int vim_vsnprintf_typval(char *str, size_t str_m, const char *fmt, va_list ap, typval_T *tvs); | 165 int vim_vsnprintf_typval(char *str, size_t str_m, const char *fmt, va_list ap, typval_T *tvs); |
166 | 166 |
167 # include "message.pro" | 167 # include "message.pro" |
168 # include "misc1.pro" | 168 # include "misc1.pro" |
169 # include "misc2.pro" | 169 # include "misc2.pro" |
170 #ifndef HAVE_STRPBRK /* not generated automatically from misc2.c */ | 170 #ifndef HAVE_STRPBRK // not generated automatically from misc2.c |
171 char_u *vim_strpbrk(char_u *s, char_u *charset); | 171 char_u *vim_strpbrk(char_u *s, char_u *charset); |
172 #endif | 172 #endif |
173 #ifndef HAVE_QSORT | 173 #ifndef HAVE_QSORT |
174 /* Use our own qsort(), don't define the prototype when not used. */ | 174 // Use our own qsort(), don't define the prototype when not used. |
175 void qsort(void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *)); | 175 void qsort(void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void *, const void *)); |
176 #endif | 176 #endif |
177 # include "mouse.pro" | 177 # include "mouse.pro" |
178 # include "move.pro" | 178 # include "move.pro" |
179 # include "mbyte.pro" | 179 # include "mbyte.pro" |
265 # include "netbeans.pro" | 265 # include "netbeans.pro" |
266 # endif | 266 # endif |
267 # ifdef FEAT_JOB_CHANNEL | 267 # ifdef FEAT_JOB_CHANNEL |
268 # include "channel.pro" | 268 # include "channel.pro" |
269 | 269 |
270 /* Not generated automatically, to add extra attribute. */ | 270 // Not generated automatically, to add extra attribute. |
271 void ch_log(channel_T *ch, const char *fmt, ...) | 271 void ch_log(channel_T *ch, const char *fmt, ...) |
272 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE | 272 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE |
273 __attribute__((format(printf, 2, 3))) | 273 __attribute__((format(printf, 2, 3))) |
274 #endif | 274 #endif |
275 ; | 275 ; |
283 # endif | 283 # endif |
284 | 284 |
285 # ifdef FEAT_GUI | 285 # ifdef FEAT_GUI |
286 # include "gui.pro" | 286 # include "gui.pro" |
287 # if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS) | 287 # if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS) |
288 extern int putenv(const char *string); /* in misc2.c */ | 288 extern int putenv(const char *string); // in misc2.c |
289 # ifdef USE_VIMPTY_GETENV | 289 # ifdef USE_VIMPTY_GETENV |
290 extern char_u *vimpty_getenv(const char_u *string); /* in misc2.c */ | 290 extern char_u *vimpty_getenv(const char_u *string); // in misc2.c |
291 # endif | 291 # endif |
292 # endif | 292 # endif |
293 # ifdef FEAT_GUI_MSWIN | 293 # ifdef FEAT_GUI_MSWIN |
294 # include "gui_w32.pro" | 294 # include "gui_w32.pro" |
295 # endif | 295 # endif |
314 # include "gui_x11.pro" | 314 # include "gui_x11.pro" |
315 # endif | 315 # endif |
316 # ifdef FEAT_GUI_PHOTON | 316 # ifdef FEAT_GUI_PHOTON |
317 # include "gui_photon.pro" | 317 # include "gui_photon.pro" |
318 # endif | 318 # endif |
319 # endif /* FEAT_GUI */ | 319 # endif // FEAT_GUI |
320 | 320 |
321 # ifdef FEAT_OLE | 321 # ifdef FEAT_OLE |
322 # include "if_ole.pro" | 322 # include "if_ole.pro" |
323 # endif | 323 # endif |
324 # if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11) | 324 # if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11) |
340 | 340 |
341 #ifdef MACOS_CONVERT | 341 #ifdef MACOS_CONVERT |
342 # include "os_mac_conv.pro" | 342 # include "os_mac_conv.pro" |
343 #endif | 343 #endif |
344 #if defined(MACOS_X_DARWIN) && defined(FEAT_CLIPBOARD) && !defined(FEAT_GUI) | 344 #if defined(MACOS_X_DARWIN) && defined(FEAT_CLIPBOARD) && !defined(FEAT_GUI) |
345 /* functions in os_macosx.m */ | 345 // functions in os_macosx.m |
346 void clip_mch_lose_selection(Clipboard_T *cbd); | 346 void clip_mch_lose_selection(Clipboard_T *cbd); |
347 int clip_mch_own_selection(Clipboard_T *cbd); | 347 int clip_mch_own_selection(Clipboard_T *cbd); |
348 void clip_mch_request_selection(Clipboard_T *cbd); | 348 void clip_mch_request_selection(Clipboard_T *cbd); |
349 void clip_mch_set_selection(Clipboard_T *cbd); | 349 void clip_mch_set_selection(Clipboard_T *cbd); |
350 #endif | 350 #endif |
351 #endif /* !PROTO && !NOPROTO */ | 351 #endif // !PROTO && !NOPROTO |