[comp.unix.questions] C beautifier

gaw@mercury.acc.com (...Glen............) (05/08/90)

Hi,

Does anyone have or know where I may obtain source for public domain
C beautifier?  The version on our BSD machine here does not support
the -l option to limit the lengths of lines.  Our Suns (OS4.0.1)
have this feature but of course we have no source.  I need something
that I can drop onto our IBM 4381 and recompile so that I can shorten
a bunch of code to 72 columns or less.  Yes IBM still believes in the
80 column punch card with sequence numbers in columns 73-80.

Thanks for any and all help,
Glen A. Warholic 
gaw@mercury.acc.com 
Advanced Computer Communications

acarlson%laurel@cs.umass.edu (Adam Carlson) (05/09/90)

Glen A. Warholic writes:

----- Begin Included Message -----

Hi,

Does anyone have or know where I may obtain source for public domain
C beautifier?  The version on our BSD machine here does not support
the -l option to limit the lengths of lines.  Our Suns (OS4.0.1)
have this feature but of course we have no source.  I need something
that I can drop onto our IBM 4381 and recompile so that I can shorten
a bunch of code to 72 columns or less.  Yes IBM still believes in the
80 column punch card with sequence numbers in columns 73-80.

Thanks for any and all help,
Glen A. Warholic
gaw@mercury.acc.com
Advanced Computer Communications


----- End Included Message -----


The simtel20 archives have indent source code available.  It can be
obtained from WSMR-SIMTEL20.ARMY.MIL (26.2.0.74) by anonymous FTP.  The
file to get is PD2:<UNIX-C.LANGUAGES.C>INDENT.TAR-Z (it must be
uncompressed and tar -xvf'ed before compilation).  I compiled this with
no problem on a Sun 3/80, with SunOS 4.0.3, but I don't know what you
will have to do to it to get it to run on your IBM.

The compiled indent seems to work just the same as the regular Sun
indent command, but I'm not sure how much help this will be to you.  I
tried it and although the -l option does keep comment lines below the
limit, if you have long lines of actual code, it doesn't split them
up.

Anyway, good luck

-:|* ---------------------------- *|:-
-:|*         Adam Carlson         *|:-
-:|* acarlson@laurel.cs.umass.edu *|:-
-:|* ---------------------------- *|:-
-:|* The universe is an island    *|:-
-:|* surrounded by whatever it is *|:-
-:|* that surrounds universes.    *|:-
-:|* ----------Ashleigh Brilliant *|:-