comparison src/globals.h @ 15271:a6319aca721b v8.1.0644

patch 8.1.0644: finding next sign ID is inefficient commit https://github.com/vim/vim/commit/6436cd83f90a0efc326798792e49e8ff96a43dce Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 27 00:28:33 2018 +0100 patch 8.1.0644: finding next sign ID is inefficient Problem: Finding next sign ID is inefficient. Solution: Add next_sign_id. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/3717)
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Dec 2018 00:30:06 +0100
parents 95678f27a704
children 54457fc4af0b
comparison
equal deleted inserted replaced
15270:18c956b49ee5 15271:a6319aca721b
607 EXTERN buf_T *curbuf INIT(= NULL); /* currently active buffer */ 607 EXTERN buf_T *curbuf INIT(= NULL); /* currently active buffer */
608 608
609 #define FOR_ALL_BUFFERS(buf) for (buf = firstbuf; buf != NULL; buf = buf->b_next) 609 #define FOR_ALL_BUFFERS(buf) for (buf = firstbuf; buf != NULL; buf = buf->b_next)
610 610
611 // Iterate through all the signs placed in a buffer 611 // Iterate through all the signs placed in a buffer
612 #define FOR_ALL_SIGNS_IN_BUF(buf) \ 612 #define FOR_ALL_SIGNS_IN_BUF(buf, sign) \
613 for (sign = buf->b_signlist; sign != NULL; sign = sign->next) 613 for (sign = buf->b_signlist; sign != NULL; sign = sign->next)
614 614
615 /* Flag that is set when switching off 'swapfile'. It means that all blocks 615 /* Flag that is set when switching off 'swapfile'. It means that all blocks
616 * are to be loaded into memory. Shouldn't be global... */ 616 * are to be loaded into memory. Shouldn't be global... */
617 EXTERN int mf_dont_release INIT(= FALSE); /* don't release blocks */ 617 EXTERN int mf_dont_release INIT(= FALSE); /* don't release blocks */