commit b2df91a22431610138ea1900289158ace1527bc4
parent 07570ac9cb0af4a8fa0005675880ff9526a6afb9
Author: Jacob R. Edwards <n/a>
Date: Sat, 20 Nov 2021 21:31:15 -0800
Handle [] C pointers in cnoname
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/local/bin/bin/cnoname b/local/bin/bin/cnoname
@@ -3,9 +3,9 @@
# License: GPLv3
# Remove parameter names from C function declarations
#
-# NOTE: Excepting the void type, if it is already nameless the type
-# itself will be eaten away. This could be avoided with extra
+# NOTE: Excepting the void type, if it is already nameless, the
+# type itself will be eaten away. This could be avoided with extra
# processing but seems a minor issue.
s/void([,)])/void void\1/g
-s/[ ]*[A-Z_a-z][0-9A-Z_a-z]*([,)])/\1/g
+s/[ ]*[A-Z_a-z][0-9A-Z_a-z]*([,)]|\[[0-9]*\])/\1/g