Updating the K&R parameters

Are there any utilities (along the unix indent lines) that will automatically reformat the code using c & R-style function parameters for modern (well, post-1989) style?

I'm working on some pretty old old scientific code that's littered with declarations like:

int cylind_volumes(w, icomp)
    WindPtr w;
    int icomp;
{
    [...code...]

      

It seems like this should be doable and would make it easier to maintain and further develop (and possibly upgrade to C ++, etc.). Should this be the problem?

+3


source to share





All Articles