tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] { .field = value } struct initialization alternative


From: Michael Matz
Subject: Re: [Tinycc-devel] { .field = value } struct initialization alternative
Date: Sun, 21 Jul 2019 18:50:05 +0200 (CEST)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)

Hi,

On Sun, 21 Jul 2019, Ivan Medoedov wrote:

Hello,
{ .field = value } syntax is not supported by TCC.

Why do you think so?

% cat designated-init.c
struct S {
    int a, b;
};

struct S s = {.a = 2, .b = 3};
% ./tcc -c designated-init.c && echo ok
ok
%


Ciao,
Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]