This Space for Rent

New Code!

As I've been working on cron, I've been slowly commenting up the code as I follow the case of the mysterious zombie children, and this makes it difficult to figure out how much code bloat there is versus commentary bloat. I looked around online to see what I could find, and couldn't find anything that looked simple and/or written in C. So I wrote a quick and dirty version that runs cpp and picks out the code lines that belong to the module I'm trying to count.

It's painfully naive (if a macro expands into multiple lines, they're counted, and code that's #ifdeffed out isn't counted,) but it gives me a better idea of the amount of codebloat than wc gives me.

And it's got a manpage! Which makes it a perfect candidate to be listed as New Code!