SF.net SVN: geany:[4336] trunk/scripts/fix-alignment.pl
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Oct 19 11:49:23 UTC 2009
Revision: 4336
http://geany.svn.sourceforge.net/geany/?rev=4336&view=rev
Author: ntrel
Date: 2009-10-19 11:49:22 +0000 (Mon, 19 Oct 2009)
Log Message:
-----------
Enforce 'fn(void);' in function prototypes.
Modified Paths:
--------------
trunk/scripts/fix-alignment.pl
Modified: trunk/scripts/fix-alignment.pl
===================================================================
--- trunk/scripts/fix-alignment.pl 2009-10-19 08:54:36 UTC (rev 4335)
+++ trunk/scripts/fix-alignment.pl 2009-10-19 11:49:22 UTC (rev 4336)
@@ -72,6 +72,9 @@
# no space on inside of brackets
$line =~ s/\(\s+/(/g;
$line =~ s/(\S)\s+\)/$1)/g;
+
+ # enforce 'fn(void);' in prototypes
+ $line =~ s/^(\w.+\w\()\);$/$1void);/;
}
# strip trailing space again (e.g. a trailing operator now has space afterwards)
$line =~ s/\s+$//g;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list