scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 828c43bb708253129804d15ebf32a711be93cd47
parent c54c5103f16ffdd3d437f1e7caa125edc79cf639
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 23 Sep 2015 20:18:50 +0200

Change end of parameters symbol

- was used for subs, so it was ambiguous.

Diffstat:
Mcc1/code.c | 2+-
Mcc1/tests/test001.c | 2+-
Mcc1/tests/test002.c | 2+-
Mcc1/tests/test003.c | 6+++---
Mcc1/tests/test004.c | 2+-
Mcc1/tests/test005.c | 2+-
Mcc1/tests/test006.c | 2+-
Mcc1/tests/test007.c | 2+-
Mcc1/tests/test008.c | 2+-
Mcc1/tests/test009.c | 2+-
Mcc1/tests/test010.c | 2+-
Mcc1/tests/test011.c | 2+-
Mcc1/tests/test012.c | 2+-
Mcc1/tests/test013.c | 2+-
Mcc1/tests/test014.c | 6+++---
Mcc1/tests/test015.c | 2+-
Mcc1/tests/test016.c | 4++--
Mcc1/tests/test017.c | 2+-
Mcc1/tests/test018.c | 2+-
Mcc1/tests/test019.c | 2+-
Mcc1/tests/test020.c | 2+-
Mcc1/tests/test021.c | 2+-
Mcc1/tests/test022.c | 2+-
Mcc1/tests/test023.c | 2+-
Mcc1/tests/test024.c | 2+-
25 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/cc1/code.c b/cc1/code.c @@ -361,7 +361,7 @@ emitfun(unsigned op, void *arg) (*sp)->flags &= ~ISUSED; emit(ODECL, *sp); } - puts("-"); + puts("\\"); } static void diff --git a/cc1/tests/test001.c b/cc1/tests/test001.c @@ -7,7 +7,7 @@ X1 F3 printf F1 G2 F1 main { -- +\ X1 "68656C6C6F20776F726C640A 'P pP cI r #I0 } diff --git a/cc1/tests/test002.c b/cc1/tests/test002.c @@ -6,7 +6,7 @@ G4 P x F1 G7 F1 main { -- +\ S2 S M5 I i M6 P next diff --git a/cc1/tests/test003.c b/cc1/tests/test003.c @@ -5,17 +5,17 @@ output: F1 G1 F1 foo { -- +\ r #I2A } G2 F1 bar { -- +\ r #I18 } G3 F1 main { -- +\ r G1 cI } */ diff --git a/cc1/tests/test004.c b/cc1/tests/test004.c @@ -5,7 +5,7 @@ output: F1 G1 F1 main { -- +\ A2 I x A2 #I0 :I A2 A2 #I2 +I :I diff --git a/cc1/tests/test005.c b/cc1/tests/test005.c @@ -5,7 +5,7 @@ output: F1 G1 F1 main { -- +\ A2 I x A2 #I3 :I A2 A2 #I0 =I :I diff --git a/cc1/tests/test006.c b/cc1/tests/test006.c @@ -9,7 +9,7 @@ G1 K c F1 G2 F1 main { -- +\ j L2 #I0 r #I1 j L3 diff --git a/cc1/tests/test007.c b/cc1/tests/test007.c @@ -5,7 +5,7 @@ output: F1 G1 F1 main { -- +\ A2 I x A2 #IA :I j L5 diff --git a/cc1/tests/test008.c b/cc1/tests/test008.c @@ -5,7 +5,7 @@ output: F1 G1 F1 main { -- +\ A2 I x A2 #I0 :I d diff --git a/cc1/tests/test009.c b/cc1/tests/test009.c @@ -5,7 +5,7 @@ output: F1 G1 F1 main { -- +\ A2 I x A2 #I0 :I j L5 diff --git a/cc1/tests/test010.c b/cc1/tests/test010.c @@ -8,7 +8,7 @@ test010.c:31: warning: conditional expression is constant F1 G1 F1 main { -- +\ A2 I x A2 #I0 :I j L5 diff --git a/cc1/tests/test011.c b/cc1/tests/test011.c @@ -7,7 +7,7 @@ test011.c:14: warning: 'start' defined but not used F1 G1 F1 main { -- +\ L2 j L3 r #I1 diff --git a/cc1/tests/test012.c b/cc1/tests/test012.c @@ -6,7 +6,7 @@ test012.c:39: warning: 'foo' defined but not used F1 G1 F1 main { -- +\ A2 I x A2 #I0 :I s L4 A2 diff --git a/cc1/tests/test013.c b/cc1/tests/test013.c @@ -19,7 +19,7 @@ G11 N k F1 G12 F1 main { -- +\ G1 G2 NI :I G1 G3 KI :I G1 G4 CI :I diff --git a/cc1/tests/test014.c b/cc1/tests/test014.c @@ -17,7 +17,7 @@ X3 I c F1 G5 F1 func1 { -- +\ A2 I h T3 K i R4 W j @@ -29,13 +29,13 @@ F2 I G6 F2 func2 { R1 I par -- +\ A3 I par } T7 F2 func3 { R1 I par -- +\ } test014.c:29: error: invalid storage class for function 'd' test014.c:32: error: bad storage class in function parameter diff --git a/cc1/tests/test015.c b/cc1/tests/test015.c @@ -14,7 +14,7 @@ G12 S2 s2 F1 G13 F1 main { -- +\ j L2 A3 S2 s A4 I s diff --git a/cc1/tests/test016.c b/cc1/tests/test016.c @@ -7,7 +7,7 @@ G1 I g F1 G2 F1 func1 { -- +\ A2 I x A4 P p G1 #I1 :I @@ -26,7 +26,7 @@ L6 } G3 F1 func2 { -- +\ A1 I x A2 P p A4 P pp diff --git a/cc1/tests/test017.c b/cc1/tests/test017.c @@ -5,7 +5,7 @@ output: F1 G9 F1 main { -- +\ S2 s1 M3 I y M4 I z diff --git a/cc1/tests/test018.c b/cc1/tests/test018.c @@ -5,7 +5,7 @@ output: F1 G1 F1 main { -- +\ V2 K #4 V3 V2 #2 A4 V3 arr diff --git a/cc1/tests/test019.c b/cc1/tests/test019.c @@ -8,7 +8,7 @@ test019.c:14: warning: division by 0 F1 G1 F1 main { -- +\ A2 I i A2 #I3 :I A2 #I1 :I diff --git a/cc1/tests/test020.c b/cc1/tests/test020.c @@ -8,7 +8,7 @@ test020.c:82: warning: division by 0 F1 G1 F1 main { -- +\ A2 I i A2 A2 #I0 !I :I A2 A2 #I0 !I #I1 ,I :I diff --git a/cc1/tests/test021.c b/cc1/tests/test021.c @@ -7,7 +7,7 @@ output: F1 G1 F1 main { -- +\ A2 K uc A3 C sc A2 #KFF :K diff --git a/cc1/tests/test022.c b/cc1/tests/test022.c @@ -7,7 +7,7 @@ output: F1 G1 F1 main { -- +\ A2 I i A3 N u A2 #I1 :I diff --git a/cc1/tests/test023.c b/cc1/tests/test023.c @@ -7,7 +7,7 @@ output: F1 G1 F1 main { -- +\ A2 W i A3 Z u A2 #W1 :W diff --git a/cc1/tests/test024.c b/cc1/tests/test024.c @@ -7,7 +7,7 @@ output: F1 G1 F1 main { -- +\ A2 Q i A3 O u A2 #Q1 :Q