1105244Scharnier
2105244Scharnier  $FreeBSD$
3105244Scharnier
41590SrgrimesThis is the C indenter, it originally came from the University of Illinois
51590Srgrimesvia some distribution tape for PDP-11 Unix.  It has subsequently been
61590Srgrimeshacked upon by James Gosling @ CMU.  It isn't very pretty, and really needs
71590Srgrimesto be completely redone, but it is probably the nicest C pretty printer
81590Srgrimesaround.
91590Srgrimes
101590SrgrimesFurther additions to provide "Kernel Normal Form" were contributed
111590Srgrimesby the folks at Sun Microsystems.
121590Srgrimes
131590Srgrimes++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
141590Srgrimes> From mnetor!yunexus!oz@uunet.UU.NET Wed Mar  9 15:30:55 1988
151590Srgrimes> Date: Tue, 8 Mar 88 18:36:25 EST
161590Srgrimes> From: yunexus!oz@uunet.UU.NET (Ozan Yigit)
171590Srgrimes> To: bostic@okeeffe.berkeley.edu
181590Srgrimes> Cc: ccvaxa!willcox@uunet.UU.NET, jag@sun.com, rsalz@uunet.UU.NET
191590Srgrimes> In-Reply-To: Keith Bostic's message of Tue, 16 Feb 88 16:09:06 PST 
201590Srgrimes> Subject: Re: Indent...
211590Srgrimes
221590SrgrimesThank you for your response about indent. I was wrong in my original
231590Srgrimesobservation (or mis-observation :-). UCB did keep the Illinois
241590Srgrimescopyright intact.
251590Srgrimes
261590SrgrimesThe issue still is whether we can distribute indent, and if we can, which
271590Srgrimesversion. David Willcox (the author) states that:
281590Srgrimes
291590Srgrimes| Several people have asked me on what basis I claim that indent is in
301590Srgrimes| the public domain.  I knew I would be sorry I made that posting.
311590Srgrimes| 
321590Srgrimes| Some history.  Way back in 1976, the project I worked on at the
331590Srgrimes| University of Illinois Center for Advanced Computation had a huge
341590Srgrimes| battle about how to format C code.  After about a week of fighting, I
351590Srgrimes| got disgusted and wrote a program, which I called indent, to reformat C
361590Srgrimes| code.  It had a bunch of different options that would let you format
371590Srgrimes| the output the way you liked.  In particular, all of the different
381590Srgrimes| formats being championed were supported.
391590Srgrimes| 
401590Srgrimes| It was my first big C program.  It was ugly.  It wasn't designed, it
411590Srgrimes| just sort of grew.  But it pretty much worked, and it stopped most of
421590Srgrimes| the fighting.
431590Srgrimes| 
441590Srgrimes| As a matter of form, I included a University of Illinois Copyright
451590Srgrimes| notice.  However, my understanding was that, since the work was done
461590Srgrimes| on an ARPA contract, it was in the public domain.
471590Srgrimes| 
481590Srgrimes| Time passed.  Some years later, indent showed up on one of the early
491590Srgrimes| emacs distributions.
501590Srgrimes| 
51105244Scharnier| Later still, someone from UC Berkeley called the UofI and asked if
521590Srgrimes| indent was in the public domain.  They wanted to include it in their
531590Srgrimes| UNIX distributions, along with the emacs stuff.  I was no longer at the
541590Srgrimes| UofI, but Rob Kolstad, who was, asked me about it.  I told him I didn't
551590Srgrimes| care if they used it, and since then it has been on the BSD distributions.
561590Srgrimes| 
571590Srgrimes| Somewhere along the way, several other unnamed people have had their
581590Srgrimes| hands in it.  It was converted to understand version 7 C.  (The
591590Srgrimes| original was version 6.)  It was converted from its original filter
601590Srgrimes| interface to its current "blow away the user's file" interface.
611590Srgrimes| The $HOME/.indent.pro file parsing was added.  Some more formatting
621590Srgrimes| options were added.
631590Srgrimes| 
641590Srgrimes| The source I have right now has two copyright notices.  One is the
651590Srgrimes| original from the UofI.  One is from Berkeley.
661590Srgrimes| 
671590Srgrimes| I am not a lawyer, and I certainly do not understand copyright law.  As
681590Srgrimes| far as I am concerned, the bulk of this program, everything covered by
691590Srgrimes| the UofI copyright, is in the public domain, and worth every penny.
701590Srgrimes| Berkeley's copyright probably should only cover their changes, and I
711590Srgrimes| don't know their feelings about sending it out.  
721590Srgrimes
73105244ScharnierIn any case, there appears to be none at UofI to clarify/and change
741590Srgrimesthat copyright, but I am confident (based on the statements of its
751590Srgrimesauthor) that the code, as it stands with its copyright, is
761590Srgrimesdistributable, and will not cause any legal problems.
771590Srgrimes
781590SrgrimesHence, the issue reduces to *which* one to distribute through
791590Srgrimescomp.sources.unix. I would suggest that with the permission of you
801590Srgrimesfolks (given that you have parts copyrighted), we distribute the 4.3
811590Srgrimesversion of indent, which appears to be the most up-to-date version. I
821590Srgrimeshappen to have just about every known version of indent, including the
831590Srgrimesvery original submission from the author to a unix tape, later the
841590SrgrimesG-Emacs version, any 4.n version, sun version and the Unipress
851590Srgrimesversion.  I still think we should not have to "go-back-in-time" and
861590Srgrimesre-do all the work you people have done.
871590Srgrimes
881590SrgrimesI hope to hear from you as to what you think about this. You may of
891590Srgrimescourse send 4.3 version to the moderator directly, or you can let me
901590Srgrimesknow of your permission, and I will send the sources, or you can let
911590Srgrimesme know that 4.3 version is off-limits, in which case we would probably
921590Srgrimeshave to revert to an older version. One way or another, I hope to get
931590Srgrimesa version of indent to comp.sources.unix.
941590Srgrimes
951590Srgrimesregards..	oz
961590Srgrimes
971590Srgrimescc: ccvaxa!willcox
981590Srgrimes    sun.com!jar
991590Srgrimes    uunet!rsalz
1001590Srgrimes
101