[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] C99 static array indices in function args
From: |
foobar |
Subject: |
[Tinycc-devel] C99 static array indices in function args |
Date: |
Tue, 19 Dec 2017 22:10:46 +0000 |
tcc chokes on encountering a function definition like
void foo(char bar[static 16]) { ... }
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzarg/static_array_index.htm
are there plans to support this feature ?
i think basically tcc could just ignore the static or const keyword there
and treat it as if the declaration was:
void foo(char bar[16]) { ... }
(the feature is described in the C11 specs in §6.7.6.2, §6.7.6.3 part 7, but
IIRC it's also in C99)
- [Tinycc-devel] C99 static array indices in function args,
foobar <=