This is WAY out of date. I've not done any serious C/C++
coding in a long time, and the C/C++ coding I was doing, I was
too busy to resetup this stuff to work with. Consider this
temporarily dead. If you want to take it off my hands, feel
The coding-standards assistance was written largely in response
to a colleague's constant promotion of some similar hacks he had
done in vi. When I mentioned to Johnathan
that I was trying to do this sort of stuff, he forwarded me
prepress.el (which I'm sure I still have a copy of
somewhere), a collection of bits that he'd built on
another collection of bits by someone called Constantine
It's not much, but it does the following:
- Standard headers on files and functions (you need a bunch
of templates for this)
- Key mappings to generate and update said headers
- Source-code control history extraction - this used work on
Unix; I did some coding on Win95 but I didn't have the
opportunity to test it out. Essentially it extracts the file
creation date and the list of programmers involved from the
- Support for seperate project directories. This is also
based on a Unixism - projects lived in
~/dev/PROJECT/compile. I need to tweak this to make
it more customisable. The support features amounted to
knowing where SCCS for that project lived, and
handling compiles correctly.
- Assorted coding-standards checks and assists - lines must
fit into 77 characters, certain indenting rules must be
followed, not more than five levels of nested blocks, that
sort of thing. Some of the stuff is in a non-working state,
specifically the code to handle reformatting old
comments/headers, sort out spacing around parens and equals
Things it still needs.
- Better SCCS integration, preferably through vc.el
- More flexible template handling.
- Support for languages other than C.
Take it from
Back to the hacks
||I love dealines. I especially love the
swooshing sound they make as they go flying by.