Mercurial > vim
comparison src/libvterm/include/vterm.h @ 18802:3be01cf0a632 v8.1.2389
patch 8.1.2389: using old C style comments
Commit: https://github.com/vim/vim/commit/707d226ac58da752ecc6b7620055fb1df3957a27
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 4 22:16:54 2019 +0100
patch 8.1.2389: using old C style comments
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Dec 2019 22:30:07 +0100 |
parents | e8d1f3209dcd |
children | c15dd3da4f47 |
comparison
equal
deleted
inserted
replaced
18801:484c63777038 | 18802:3be01cf0a632 |
---|---|
214 | 214 |
215 // ------------ | 215 // ------------ |
216 // Parser layer | 216 // Parser layer |
217 // ------------ | 217 // ------------ |
218 | 218 |
219 /* Flag to indicate non-final subparameters in a single CSI parameter. | 219 // Flag to indicate non-final subparameters in a single CSI parameter. |
220 * Consider | 220 // Consider |
221 * CSI 1;2:3:4;5a | 221 // CSI 1;2:3:4;5a |
222 * 1 4 and 5 are final. | 222 // 1 4 and 5 are final. |
223 * 2 and 3 are non-final and will have this bit set | 223 // 2 and 3 are non-final and will have this bit set |
224 * | 224 // |
225 * Don't confuse this with the final byte of the CSI escape; 'a' in this case. | 225 // Don't confuse this with the final byte of the CSI escape; 'a' in this case. |
226 */ | |
227 #define CSI_ARG_FLAG_MORE (1U<<31) | 226 #define CSI_ARG_FLAG_MORE (1U<<31) |
228 #define CSI_ARG_MASK (~(1U<<31)) | 227 #define CSI_ARG_MASK (~(1U<<31)) |
229 | 228 |
230 #define CSI_ARG_HAS_MORE(a) ((a) & CSI_ARG_FLAG_MORE) | 229 #define CSI_ARG_HAS_MORE(a) ((a) & CSI_ARG_FLAG_MORE) |
231 #define CSI_ARG(a) ((a) & CSI_ARG_MASK) | 230 #define CSI_ARG(a) ((a) & CSI_ARG_MASK) |
355 * changed. "user" is passed into to the callback. | 354 * changed. "user" is passed into to the callback. |
356 */ | 355 */ |
357 void vterm_screen_set_callbacks(VTermScreen *screen, const VTermScreenCallbacks *callbacks, void *user); | 356 void vterm_screen_set_callbacks(VTermScreen *screen, const VTermScreenCallbacks *callbacks, void *user); |
358 void *vterm_screen_get_cbdata(VTermScreen *screen); | 357 void *vterm_screen_get_cbdata(VTermScreen *screen); |
359 | 358 |
360 /* Only invokes control, csi, osc, dcs */ | 359 // Only invokes control, csi, osc, dcs |
361 void vterm_screen_set_unrecognised_fallbacks(VTermScreen *screen, const VTermParserCallbacks *fallbacks, void *user); | 360 void vterm_screen_set_unrecognised_fallbacks(VTermScreen *screen, const VTermParserCallbacks *fallbacks, void *user); |
362 void *vterm_screen_get_unrecognised_fbdata(VTermScreen *screen); | 361 void *vterm_screen_get_unrecognised_fbdata(VTermScreen *screen); |
363 | 362 |
364 // Enable support for using the alternate screen if "altscreen" is non-zero. | 363 // Enable support for using the alternate screen if "altscreen" is non-zero. |
365 // Before that switching to the alternate screen won't work. | 364 // Before that switching to the alternate screen won't work. |