commit ff4af4d2c1a4fcf5e3e13ed4c03578b4495b993f parent a6ff2209d755e9ee362fd9eee3fa6b7c1ba603bb Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Wed, 10 Aug 2016 08:40:16 +0200 Add comment about incomplete types in README This is a small desviation over the correct behaviour expected for a compliant C89/90/11 compiler, so we have to document it in the README file. Diffstat:
M | README | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/README b/README @@ -63,3 +63,11 @@ This complexity is not needed at all as function pointers fix all these problems without this complexity (and they are the more usual way of writing such code). +- Definition of variables with incomplete type + --------------------------------------------- + +C89 allows the definition of variables with incomplete type that +have external linkage and file scope. The type of the variable +is the composition of all the definitions find in the file. The exact +rules are a bit complex (3.7.2), and SCC ignores them at this moment +and it does not allow any definition of variables with incomplete type.