Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libcurses/director tests/libcurses: use consistent...



details:   https://anonhg.NetBSD.org/src/rev/ecc4ac811d6d
branches:  trunk
changeset: 951957:ecc4ac811d6d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Feb 08 20:55:42 2021 +0000

description:
tests/libcurses: use consistent indentation for grammar rules

diffstat:

 tests/lib/libcurses/director/testlang_parse.y |  34 +++++++++++++++++++-------
 1 files changed, 25 insertions(+), 9 deletions(-)

diffs (49 lines):

diff -r 649cc5d58931 -r ecc4ac811d6d tests/lib/libcurses/director/testlang_parse.y
--- a/tests/lib/libcurses/director/testlang_parse.y     Mon Feb 08 20:39:33 2021 +0000
+++ b/tests/lib/libcurses/director/testlang_parse.y     Mon Feb 08 20:55:42 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: testlang_parse.y,v 1.41 2021/02/08 20:39:33 rillig Exp $       */
+/*     $NetBSD: testlang_parse.y,v 1.42 2021/02/08 20:55:42 rillig Exp $       */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -333,14 +333,30 @@
                | reference
                ;
 
-returns                : numeric { assign_rets(data_number, $1); }
-               | LPAREN expr RPAREN { assign_rets(data_number, $2); }
-               | STRING { assign_rets(data_string, $1); }
-               | BYTE { assign_rets(data_byte, (void *) $1); }
-               | ERR_RET { assign_rets(data_err, NULL); }
-               | OK_RET { assign_rets(data_ok, NULL); }
-               | NULL_RET { assign_rets(data_null, NULL); }
-               | NON_NULL { assign_rets(data_nonnull, NULL); }
+returns                : numeric {
+                       assign_rets(data_number, $1);
+               }
+               | LPAREN expr RPAREN {
+                       assign_rets(data_number, $2);
+               }
+               | STRING {
+                       assign_rets(data_string, $1);
+               }
+               | BYTE {
+                       assign_rets(data_byte, (void *) $1);
+               }
+               | ERR_RET {
+                       assign_rets(data_err, NULL);
+               }
+               | OK_RET {
+                       assign_rets(data_ok, NULL);
+               }
+               | NULL_RET {
+                       assign_rets(data_null, NULL);
+               }
+               | NON_NULL {
+                       assign_rets(data_nonnull, NULL);
+               }
                | var
                ;
 



Home | Main Index | Thread Index | Old Index