summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2011-11-28 23:16:58 +0000
committerPeter Wu <lekensteyn@gmail.com>2011-11-28 23:16:58 +0000
commit90ec610f709dc7cb25bbb3c288ec3e80ae0bc97e (patch)
tree4682c700187e043659ccd10d3b689b3a51c21917 /README
parentbb3c12c5c31f637642936e3177ad211fa3053e3e (diff)
downloadpp2cc-90ec610f709dc7cb25bbb3c288ec3e80ae0bc97e.tar.gz
Support for switch statement, initialize global variables by 0 by default
You shouldn't rely on the values of uninitialized variables, but it should not be initialized by 1 by default (typo: DW had to be DS)
Diffstat (limited to 'README')
-rw-r--r--README5
1 files changed, 3 insertions, 2 deletions
diff --git a/README b/README
index db9c929..dcf6f4e 100644
--- a/README
+++ b/README
@@ -85,10 +85,11 @@ A9 Statements
A9.1 Labeled statements - not supported
A9.2 Expression statement - supported by parser
A9.3 Compound statement - supported
-A9.4 Selection statements - if and if/else are supported, switch is not
+A9.4 Selection statements - if and if/else are supported. switch is also
+ supported including fallthrough and case/ default labels support
A9.5 Iteration statements - while, do/while and for are supported. A missing
second expression in the for is equivalent to a non-zero constant
-A9.6 Jump statements - goto is unsupported. continue, break are supported.
+A9.6 Jump statements - goto is unsupported. continue and break are supported.
return is supported with and without value. The function result is
undefined for the second case