comparison src/globals.h @ 15209:3a99b2e6d136 v8.1.0614

patch 8.1.0614: placing signs can be complicated commit https://github.com/vim/vim/commit/162b71479bd4dcdb3a2ef9198a1444f6f99e6843 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 21 15:17:36 2018 +0100 patch 8.1.0614: placing signs can be complicated Problem: Placing signs can be complicated. Solution: Add functions for defining and placing signs. Introduce a group name to avoid different plugins using the same signs. (Yegappan Lakshmanan, closes #3652)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Dec 2018 15:30:07 +0100
parents 67e3103d6e18
children 95678f27a704
comparison
equal deleted inserted replaced
15208:acf68008ca43 15209:3a99b2e6d136
604 EXTERN buf_T *lastbuf INIT(= NULL); /* last buffer */ 604 EXTERN buf_T *lastbuf INIT(= NULL); /* last buffer */
605 EXTERN buf_T *curbuf INIT(= NULL); /* currently active buffer */ 605 EXTERN buf_T *curbuf INIT(= NULL); /* currently active buffer */
606 606
607 #define FOR_ALL_BUFFERS(buf) for (buf = firstbuf; buf != NULL; buf = buf->b_next) 607 #define FOR_ALL_BUFFERS(buf) for (buf = firstbuf; buf != NULL; buf = buf->b_next)
608 608
609 // Iterate through all the signs placed in a buffer
610 #define FOR_ALL_SIGNS_IN_BUF(buf) \
611 for (sign = buf->b_signlist; sign != NULL; sign = sign->next)
612
609 /* Flag that is set when switching off 'swapfile'. It means that all blocks 613 /* Flag that is set when switching off 'swapfile'. It means that all blocks
610 * are to be loaded into memory. Shouldn't be global... */ 614 * are to be loaded into memory. Shouldn't be global... */
611 EXTERN int mf_dont_release INIT(= FALSE); /* don't release blocks */ 615 EXTERN int mf_dont_release INIT(= FALSE); /* don't release blocks */
612 616
613 /* 617 /*