Path: utzoo!attcan!utgpu!watmath!iuvax!mailrus!jarvis.csri.toronto.edu!me!eastick From: eastick@me.utoronto.ca (Doug Eastick) Newsgroups: comp.sys.ibm.pc Subject: Re: C beautifier wanted Message-ID: <89Nov4.122952est.18448@me.utoronto.ca> Date: 4 Nov 89 17:29:41 GMT References: <128@tenset.UUCP> Organization: University of Toronto, Department of Mechanical Engineering Lines: 48 colin@tenset.UUCP (Colin Manning) writes: >Anyone know of a decent pd C beautifier program for the PC (source >or binary; sources preferred) ? indent(1) on unix systems is easily ported to TurboC 2.0. I did it last summer, but haven't used it since. The code was written years ago. Don't ask me for source. Although the same source exists on all the machines we have (Sun, MIPS, IBM-RT, IRIS) it still has the vendor's copyright on it. Here's the copyright comment from one of the source files: /*- Copyright (C) 1976 by the Board of Trustees of the University of Illinois All rights reserved NAME: indent main program FUNCTION: This is the main program of the indent program. Indent will take a C program source and reformat it into a semi-reasonable form. ALGORITHM: The routine lexi scans tokens and passes them back one at a time to the main routine. The subroutine parse takes care of much of the work of figuring indentation level. 1) Call lexi 2) Enter a monster switch statement on the code returned by lexi. If the indentation level for the line yet to be printed should be changed, set the variable ps.ind_level. If the indentation level for the following line should be changed, set the variable ps.i_l_follow. */ -- Doug Eastick eastick@me.UTORONTO.BITNET UUCP: ...!utai!me!eastick eastick@me.utoronto.ca