Module Name:    src
Committed By:   rillig
Date:           Sun Oct 31 21:31:55 UTC 2021

Modified Files:
        src/tests/usr.bin/indent: opt_pcs.c

Log Message:
tests/indent: test function declaration with '-pcs' and '-npcs'

The conditions in want_blank_before_lparen are not ordered correctly.
opt.proc_calls_space should override ')('.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/indent/opt_pcs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.bin/indent/opt_pcs.c
diff -u src/tests/usr.bin/indent/opt_pcs.c:1.6 src/tests/usr.bin/indent/opt_pcs.c:1.7
--- src/tests/usr.bin/indent/opt_pcs.c:1.6	Sun Oct 31 21:06:56 2021
+++ src/tests/usr.bin/indent/opt_pcs.c	Sun Oct 31 21:31:55 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: opt_pcs.c,v 1.6 2021/10/31 21:06:56 rillig Exp $ */
+/* $NetBSD: opt_pcs.c,v 1.7 2021/10/31 21:31:55 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -43,12 +43,17 @@ example(void)
 
 
 #indent input
+void ( * signal ( void ( * handler ) ( int ) ) ) ( int ) ;
 int var = (function)(arg);
 #indent end
 
-/* TODO: add space between the parentheses. */
-#indent run-equals-input -di0 -pcs
-#indent run-equals-input -di0 -npcs
+/* TODO: add a blank between ')' and '('. */
+#indent run -npsl -di0 -pcs
+void (*signal(void (*handler)(int)))(int);
+int var = (function)(arg);
+#indent end
+
+#indent run-equals-prev-output -npsl -di0 -npcs
 
 
 /*

Reply via email to