Skip to content

Commit c49d1ac

Browse files
Consistent compound literal style
1 parent 6e7683a commit c49d1ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

barebones.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ static inline char* antioch_show__(void* self)
6868
Show prep_antioch_show(Antioch* x)
6969
{
7070
/* Build the vtable once and attach a pointer to it every time */
71-
static ShowTC const tc = {.show = antioch_show__ };
72-
return (Show){.tc = &tc, .self = x};
71+
static ShowTC const tc = { .show = antioch_show__ };
72+
return (Show){ .tc = &tc, .self = x };
7373
}
7474

7575
int main(void)

name-constrained.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ typedef struct
3232
} \
3333
Show ImplName(T, Show)(T* x) \
3434
{ \
35-
static ShowTC const tc = {.show = (CONCAT(show_f, __)) }; \
36-
return (Show){.tc = &tc, .self = x}; \
35+
static ShowTC const tc = { .show = (CONCAT(show_f, __)) }; \
36+
return (Show){ .tc = &tc, .self = x }; \
3737
}
3838

3939
/* Polymorphic printing function */

0 commit comments

Comments
 (0)