[hackers] [scc] Add comment about incomplete types in README || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 10 Aug 2016 08:53:15 +0200 (CEST)

commit ff4af4d2c1a4fcf5e3e13ed4c03578b4495b993f
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Aug 10 08:40:16 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Aug 10 08:40:16 2016 +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.

diff --git a/README b/README
index f65a08c..5012be1 100644
--- a/README
+++ b/README
_AT_@ -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.
Received on Wed Aug 10 2016 - 08:53:15 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 10 2016 - 09:00:35 CEST