diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-09-10 16:34:20 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-12 18:35:24 +0200 |
commit | 68c00b9cdb8ea9a841f322effb385efce1436573 (patch) | |
tree | dfb51f3a00d0b1c15972fd6346ca6f61b83457a5 /Header.h | |
parent | 3c8d586a1c936bc5e2c9424485485f1911b54e77 (diff) |
Header: cache number of columns in HeaderLayout_getColumns
The header layout, and therefore the number of columns, should never
be changed within such loop.
Diffstat (limited to 'Header.h')
-rw-r--r-- | Header.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ typedef struct Header_ { int height; } Header; -#define Header_forEachColumn(this_, i_) for (size_t (i_)=0; (i_) < HeaderLayout_getColumns((this_)->headerLayout); ++(i_)) +#define Header_forEachColumn(this_, i_) for (size_t (i_)=0, H_fEC_numColumns_ = HeaderLayout_getColumns((this_)->headerLayout); (i_) < H_fEC_numColumns_; ++(i_)) Header* Header_new(ProcessList* pl, Settings* settings, HeaderLayout hLayout); |