shithub: scc

Download patch

ref: 7f794f6356aa288402b0b1b60a47741d987a7e07
parent: 2e2a465fb6824ea30a921aef2e545859fc1ccf9e
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Mar 20 12:21:09 EDT 2017

Add more comments in README

Some ppl believed that I was wrong about my comments, but this too small
examples will help them to see what are the points.

--- a/README
+++ b/README
@@ -53,6 +53,14 @@
         (int (f))  -> function returning int with one parameter of type f
         (int (f))  -> integer variable f
 
+If you don't believe me try this code:
+
+int
+f(int g())
+{
+	return g();
+}
+
 Function type names are stupid, because they are used as an alias
 of the function pointer types, but it is stupid that something
 like sizeof(int (int)) is not allowed (because here it should be
@@ -71,3 +79,11 @@
 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.
+
+If you don't believe me try this code:
+
+struct foo x;
+
+struct foo {
+	int i;
+};