Mercurial > vim
comparison src/vim9execute.c @ 25475:038eb6d9003a v8.2.3274
patch 8.2.3274: macro for printf format check can be simplified
Commit: https://github.com/vim/vim/commit/952d9d827e5bfc66a6b1d39956e4e5596b09e2bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 2 18:07:18 2021 +0200
patch 8.2.3274: macro for printf format check can be simplified
Problem: Macro for printf format check can be simplified.
Solution: Add ATTRIBUTE_FORMAT_PRINTF(). (Dominique Pell?, issue https://github.com/vim/vim/issues/8635)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 Aug 2021 18:15:06 +0200 |
parents | 891d08245543 |
children | a8f526c9b172 |
comparison
equal
deleted
inserted
replaced
25474:c79b2530406a | 25475:038eb6d9003a |
---|---|
19 #ifdef VMS | 19 #ifdef VMS |
20 # include <float.h> | 20 # include <float.h> |
21 #endif | 21 #endif |
22 | 22 |
23 #include "vim9.h" | 23 #include "vim9.h" |
24 | |
25 #if defined(__GNUC__) || defined(__clang__) | |
26 # define likely(x) __builtin_expect((x), 1) | |
27 # define unlikely(x) __builtin_expect((x), 0) | |
28 #else | |
29 # define unlikely(x) (x) | |
30 # define likely(x) (x) | |
31 #endif | |
32 | 24 |
33 // Structure put on ec_trystack when ISN_TRY is encountered. | 25 // Structure put on ec_trystack when ISN_TRY is encountered. |
34 typedef struct { | 26 typedef struct { |
35 int tcd_frame_idx; // ec_frame_idx at ISN_TRY | 27 int tcd_frame_idx; // ec_frame_idx at ISN_TRY |
36 int tcd_stack_len; // size of ectx.ec_stack at ISN_TRY | 28 int tcd_stack_len; // size of ectx.ec_stack at ISN_TRY |