mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
Under ISO C the empty initializer is {0} not { }
This commit is contained in:
parent
5f45d9178b
commit
5e60e84fdf
@ -577,7 +577,7 @@ typedef struct cell {
|
|||||||
uint64_t channels; // + 8B == 16B
|
uint64_t channels; // + 8B == 16B
|
||||||
} cell;
|
} cell;
|
||||||
|
|
||||||
#define CELL_TRIVIAL_INITIALIZER { }
|
#define CELL_TRIVIAL_INITIALIZER {0}
|
||||||
#define CELL_CHAR_INITIALIZER(c) { .gcluster = (htole(c)), .gcluster_backstop = 0, .reserved = 0, .stylemask = 0, .channels = 0, }
|
#define CELL_CHAR_INITIALIZER(c) { .gcluster = (htole(c)), .gcluster_backstop = 0, .reserved = 0, .stylemask = 0, .channels = 0, }
|
||||||
#define CELL_INITIALIZER(c, s, chan) { .gcluster = (htole(c)), .gcluster_backstop = 0, .reserved = 0, .stylemask = (s), .channels = (chan), }
|
#define CELL_INITIALIZER(c, s, chan) { .gcluster = (htole(c)), .gcluster_backstop = 0, .reserved = 0, .stylemask = (s), .channels = (chan), }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user