[hackers] [scc] Change return code from y to r || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 23 Sep 2015 20:11:11 +0200 (CEST)

commit 7376b2361f7d4155d48e7d3a18a3e41e35eba2a0
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Sep 23 19:45:22 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Sep 23 20:06:16 2015 +0200

    Change return code from y to r
    
    It is more logical, no?

diff --git a/cc1/code.c b/cc1/code.c
index 913b964..e369212 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -65,7 +65,7 @@ char *optxt[] = {
         [OEFUN] = "}\n",
         [OELOOP] = "\tb\n",
         [OBLOOP] = "\td\n",
- [ORET] = "\ty",
+ [ORET] = "\tr",
         [OPAR] = "p",
         [OCALL] = "c",
         [OFIELD] = "."
diff --git a/cc1/ir.md b/cc1/ir.md
index 5101005..1d7630d 100644
--- a/cc1/ir.md
+++ b/cc1/ir.md
_AT_@ -242,7 +242,7 @@ generates:
> }
 
 Another form of jump is the return statement, which uses the
-letter 'y' with an optional expression.
+letter 'r' with an optional expression.
 For example:
 
> int
_AT_@ -257,7 +257,7 @@ produces:
> G1 F1 main
> {
> -
-> y #I10
+> r #I10
> }
 
 
diff --git a/cc1/tests/test001.c b/cc1/tests/test001.c
index 00a2064..05c043d 100644
--- a/cc1/tests/test001.c
+++ b/cc1/tests/test001.c
_AT_@ -9,7 +9,7 @@ G2 F1 main
 {
 -
         X1 "68656C6C6F20776F726C640A 'P pP cI
- y #I0
+ r #I0
 }
 */
 
diff --git a/cc1/tests/test003.c b/cc1/tests/test003.c
index c7965c4..823d32b 100644
--- a/cc1/tests/test003.c
+++ b/cc1/tests/test003.c
_AT_@ -6,17 +6,17 @@ F1
 G1 F1 foo
 {
 -
- y #I2A
+ r #I2A
 }
 G2 F1 bar
 {
 -
- y #I18
+ r #I18
 }
 G3 F1 main
 {
 -
- y G1 cI
+ r G1 cI
 }
 */
 
diff --git a/cc1/tests/test004.c b/cc1/tests/test004.c
index 8f971ba..2a1d78b 100644
--- a/cc1/tests/test004.c
+++ b/cc1/tests/test004.c
_AT_@ -23,9 +23,9 @@ A2 I x
         A2 A2 A2 #I1 >I +I :I
         A2 A2 A2 #I4 <I +I :I
         j L3 A2 #I4 =I
- y #I1
+ r #I1
 L3
- y #I0
+ r #I0
 }
 */
 
diff --git a/cc1/tests/test005.c b/cc1/tests/test005.c
index 80fa59b..b27fd35 100644
--- a/cc1/tests/test005.c
+++ b/cc1/tests/test005.c
_AT_@ -13,9 +13,9 @@ A2 I x
         A2 A2 ~I :I
         A2 A2 _I :I
         j L3 A2 #I2 =I
- y #I1
+ r #I1
 L3
- y #I0
+ r #I0
 }
 */
 
diff --git a/cc1/tests/test006.c b/cc1/tests/test006.c
index 04ef3e3..ee0f626 100644
--- a/cc1/tests/test006.c
+++ b/cc1/tests/test006.c
_AT_@ -11,7 +11,7 @@ G2 F1 main
 {
 -
         j L2 #I0
- y #I1
+ r #I1
         j L3
 L2
         j L4 #I0
_AT_@ -19,18 +19,18 @@ L2
 L4
         j L6 #I1
         j L7 G1 KI #I0 =I
- y #I1
+ r #I1
         j L8
 L7
- y #I0
+ r #I0
 L8
         j L9
 L6
- y #I1
+ r #I1
 L9
 L5
 L3
- y #I1
+ r #I1
 }
 */
 
diff --git a/cc1/tests/test007.c b/cc1/tests/test007.c
index a6490ae..d0ac131 100644
--- a/cc1/tests/test007.c
+++ b/cc1/tests/test007.c
_AT_@ -16,7 +16,7 @@ L5
         j L3 A2 #I0 !I
         b
 L4
- y A2
+ r A2
 }
 */
 
diff --git a/cc1/tests/test008.c b/cc1/tests/test008.c
index 3a09426..9542810 100644
--- a/cc1/tests/test008.c
+++ b/cc1/tests/test008.c
_AT_@ -20,7 +20,7 @@ L5
         j L5 A2 #I14 <I
         b
 L6
- y A2 #I14 -I
+ r A2 #I14 -I
 }
 */
 
diff --git a/cc1/tests/test009.c b/cc1/tests/test009.c
index c85d716..19994cb 100644
--- a/cc1/tests/test009.c
+++ b/cc1/tests/test009.c
_AT_@ -17,9 +17,9 @@ L5
         b
 L4
         j L6 A2 #IA =I
- y #I1
+ r #I1
 L6
- y #I0
+ r #I0
 }
 */
 
diff --git a/cc1/tests/test010.c b/cc1/tests/test010.c
index ab7151e..42ba06a 100644
--- a/cc1/tests/test010.c
+++ b/cc1/tests/test010.c
_AT_@ -55,7 +55,7 @@ L16
         j L14 #I1
         b
 L15
- y A2 #IF -I
+ r A2 #IF -I
 }
 */
 
diff --git a/cc1/tests/test011.c b/cc1/tests/test011.c
index 82d0606..937d7c5 100644
--- a/cc1/tests/test011.c
+++ b/cc1/tests/test011.c
_AT_@ -10,13 +10,13 @@ G1 F1 main
 -
 L2
         j L3
- y #I1
+ r #I1
 L4
- y #I0
+ r #I0
 L3
 L5
         j L4
- y #I1
+ r #I1
 }
 */
 
diff --git a/cc1/tests/test012.c b/cc1/tests/test012.c
index 2c579c5..014bd4e 100644
--- a/cc1/tests/test012.c
+++ b/cc1/tests/test012.c
_AT_@ -22,7 +22,7 @@ L8
 L11
         j L12
 L13
- y #I1
+ r #I1
         j L9
 L10
         t #2
_AT_@ -34,11 +34,11 @@ L7
         t #1
         v L8 #I0
 L6
- y #I2
+ r #I2
 L12
         s L15 A2
 L16
- y #I3
+ r #I3
         j L14
 L15
         t #1
_AT_@ -48,7 +48,7 @@ L14
         A2 #I2 :I
 L19
 L20
- y #I4
+ r #I4
         j L17
 L18
         t #1
_AT_@ -56,11 +56,11 @@ L18
 L17
         s L22 A2
 L23
- y A2
+ r A2
 L24
- y #I1
+ r #I1
 L25
- y #I1
+ r #I1
         j L21
 L22
         t #3
diff --git a/cc1/tests/test014.c b/cc1/tests/test014.c
index b0a42a9..ba8d16b 100644
--- a/cc1/tests/test014.c
+++ b/cc1/tests/test014.c
_AT_@ -23,7 +23,7 @@ T3 K i
 R4 W j
 X5 I k
 T6 Z a
- y #I0
+ r #I0
 }
 F2 I
 G6 F2 func2
diff --git a/cc1/tests/test015.c b/cc1/tests/test015.c
index cd2c8e0..ad24bad 100644
--- a/cc1/tests/test015.c
+++ b/cc1/tests/test015.c
_AT_@ -18,8 +18,8 @@ G13 F1 main
         j L2
 A3 S2 s
 A4 I s
- y A4
- y A3 M11 .S5 M6 .I A3 M11 .S5 M10 .S8 M9 .I +I
+ r A4
+ r A3 M11 .S5 M6 .I A3 M11 .S5 M10 .S8 M9 .I +I
 L2
 */
 
diff --git a/cc1/tests/test016.c b/cc1/tests/test016.c
index 8231497..33b5638 100644
--- a/cc1/tests/test016.c
+++ b/cc1/tests/test016.c
_AT_@ -15,14 +15,14 @@ A4 P p
         A4 A2 'P :P
         A4 _AT_I #I0 :I
         j L5 A2 #I0 =I
- y #I1
+ r #I1
 L5
         A4 G1 'P :P
         A4 _AT_I #I0 :I
         j L6 A4 #P0 !I
- y #I1
+ r #I1
 L6
- y #I0
+ r #I0
 }
 G3 F1 func2
 {
_AT_@ -37,7 +37,7 @@ A4 P pp
         A4 _AT_P @I #I0 :I
 L5
         A2 #P0 :P
- y A1
+ r A1
 }
 test016.c:47: error: incompatible types when assigning
 */
diff --git a/cc1/tests/test017.c b/cc1/tests/test017.c
index 16e9e84..3ff620b 100644
--- a/cc1/tests/test017.c
+++ b/cc1/tests/test017.c
_AT_@ -17,12 +17,12 @@ A3 S6 v
         A3 M8 .P _AT_S2 M3 .I #I1 :I
         A3 M8 .P _AT_S2 M4 .I #I2 :I
         j L4 A2 M3 .I #I1 =I
- y #I1
+ r #I1
 L4
         j L5 A2 M4 .I #I2 =I
- y #I2
+ r #I2
 L5
- y #I0
+ r #I0
 }
 */
 
diff --git a/cc1/tests/test018.c b/cc1/tests/test018.c
index b7953ca..cff1f9b 100644
--- a/cc1/tests/test018.c
+++ b/cc1/tests/test018.c
_AT_@ -18,18 +18,18 @@ A10 V9 v
         A4 'P #P4 +P #P3 +P _AT_K #K2 :K
         A10 #I2 :I
         j L12 A4 'P #P4 +P #P3 +P _AT_K KI #I2 =I
- y #I1
+ r #I1
 L12
         j L13 A6 #P4 +P #P3 +P _AT_K KI #I2 =I
- y #I1
+ r #I1
 L13
         j L14 A8 _AT_K KI #I2 =I
- y #I1
+ r #I1
 L14
         j L15 A10 #I2 =I
- y #I1
+ r #I1
 L15
- y #I0
+ r #I0
 }
 */
 
diff --git a/cc1/tests/test022.c b/cc1/tests/test022.c
index 91a2c12..5ca7e76 100644
--- a/cc1/tests/test022.c
+++ b/cc1/tests/test022.c
_AT_@ -26,7 +26,7 @@ A3 N u
         A3 #N0 :N
         A3 #N3 :N
         A3 #N0 :N
- y #I0
+ r #I0
 }
 */
 
diff --git a/cc1/tests/test023.c b/cc1/tests/test023.c
index 942db82..db32046 100644
--- a/cc1/tests/test023.c
+++ b/cc1/tests/test023.c
_AT_@ -26,7 +26,7 @@ A3 Z u
         A3 #Z3 :Z
         A3 #Z1 :Z
         A3 #Z0 :Z
- y #I0
+ r #I0
 }
 */
 
diff --git a/cc1/tests/test024.c b/cc1/tests/test024.c
index e70e3cc..2ba1de0 100644
--- a/cc1/tests/test024.c
+++ b/cc1/tests/test024.c
_AT_@ -24,7 +24,7 @@ A3 O u
         A3 #OFFFFFFFF :O
         A3 #O3 :O
         A3 #O0 :O
- y #I0
+ r #I0
 }
 */
 
Received on Wed Sep 23 2015 - 20:11:11 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 23 2015 - 20:12:12 CEST