[PATCH] Synchronize .c and .h files
Florian Bruhin
me at the-compiler.org
Tue Oct 22 07:02:22 CEST 2013
See commit message for details :)
One of these more usless commits, but it bothered me and I wanted to
check if there are other functions named differently in .c and .h.
Generated by doing:
$ for f in *.c; do grep '^\([^ ]\+ \)\+[^ ]\+(.*) {' "$f" | \
grep -v '^static' | sed 's/ {$/;/' | sort > "$f".fun; done
$ for f in *.h; do grep '(.*);' "$f" | sort > "$f".fun; done
And then comparing each foo.[ch].fun with vimdiff and doing some
filtering by hand. (Yes, it's quick & dirty)
Florian
--
() ascii ribbon campaign - stop html mail www.asciiribbon.org
/\ www.the-compiler.org | I love long mails http://email.is-not-s.ms/
"In the long run, every program becomes rococo, and then rubble." -- Alan
Perlis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Synchronize-.c-and-.h-files.patch
Type: text/x-diff
Size: 12938 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20131022/4fa1e0cf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20131022/4fa1e0cf/attachment.sig>
More information about the hlwm
mailing list