home *** CD-ROM | disk | FTP | other *** search
- GNU INDENT FOR MPW version 1.6r1 october 22, 1992
-
- This is GNU indent for MPW version 1.6r1.
- The version 1.6 is the latest version of Indent available from GNU.
- This port has been made on the 1.4 port, which I made also and was based on
- a port of v 1.1.
- The manual is the same as for v 1.4 which in turn is the same as v 1.3.
- There are no additional features documented, only several bug fixes.
- One bug fix avoided me to make a strange klugde to use commando. Previously
- Indent wanted -c33, -cd37 but NOT -c 33 , -cd 37 etc... Now the support for this
- has been added by the author so the port was even faster.
- The tool has been compiled for the 68000 and thus can now be run on every macintosh
- without having to recompile it. The speed difference between the version compiled
- with the -mc68020 flag and this one is less than 3% (on my tests, which consisted
- simply in timing the tool on the whole Indent source). This because Indent is
- heavily I/O based and code optimization can do little.
- For other things see the notes below. If there are conflicts with what is written
- above, then what is above is right, and what is below wrong. That is new notes
- supersede older ones.
-
- ------------------------------------------------------------------------------
- GNU INDENT FOR MPW version 1.4 october 15, 1992
-
- Well, some days ago I picked up J. Kowalski's port of GNU Indent v1.1
- to the MPW environment. Moreover I noticed that v1.4 was around, but only
- for u**x boxes (of course, being it currently mantained by GNU ...:{ )
- So I got the v1.4 dist and patched it as Kowalski did with v1.1, then
- fixed something, modified the commando to support the many new functions,
- and made the beachball spin. Yes, that was really needed, sometimes I
- leave the shell in the background to reformat big chunks of code, therefore
- cursor spinning (which is the MPW way to cooperatively multitask) was a
- must. Now it's here. It works.
- now false (v1.6r1) : NOTE THAT THE TOOL HERE IS FOR THE 68020/030/040, SO IT WORKS ON A LC, BUT
- now false (v1.6r1) : NOT ON A CLASSIC I OR SE. TO USE IT WITH SMALLER MACS CHANGE THE OPTIONS IN
- now false (v1.6r1) : THE MAKEFILE AND REBUILD IT.
- I hope you'll find it useful.
- Folder {MPW}Indent-1.4:docs: contains documentation.
- The documentation is found as a .dvi file (created by OzTeX. to use it with
- DirectTex change type/creator, to use it with TeXtures import it, I believe
- a tool for the purpose is around, but don't ask me), or i three postscript
- files. one contains all the pages, the secont the odd ones, another the
- even ones. The names are quite obvious (explanation for Dan Quayle's fans):
- oddpages.ps front cover, pages 1,3,5,7,...
- evenpages.ps 2nd cover page, pages 2,4,6,8,...
- indent.dvi the .dvi file
- indent0.02.ps version 0.02 of the documentation
- please keep in mind how you insert back your sheets in the laser printer
- when printing the odd pages and then the even ones.
- Original documentation sources in the GNU-Indent-1.4-original.sit archive.
- (AS FOR v1.6 : THE ARCHIVE NAME IS NOW : indent-1.6-original.sit.)
-
- Roberto Avanzi
- <gandalf@sabrina.dei.unipd.it> HEY ! ITALY !!!!!!!!
- "Those from Italy send you their greetings." (Hebrews 13:24-NIV)
-
- ----------------------------------------------------------------------------
- ORIGINAL NOTE OF JEFFREY KOWALSKI FOLLOWS UNCHANGED
- for GNU INDENT FOR MPW version 1.1
-
- Well here it is, as promised: The popular GNU indent program,
- all ready for you MPW fans.
-
- I'm distributing the whole thing, compiled for a generic Macintosh.
- You'll probably want to recompile it with the 68020 flag set if
- you can (a bit faster I guess).
-
- At the miniumum, to use the ready-made version, follow these easy
- steps (gee, just like Betty Crocker!) :
- 1. Put a copy of Indent in {MPW}Tools
- 2. Copy the Indent.Help.Entry and stick it into {MPW}MPW.Help.
- It goes in right before the *second* entry for Lib. That's the
- full-blown help entry. For the "quickie" summary
- (what you get when you type "help commands"), you'll
- have to look closer to the top of the file. You can make
- you own entry there. Be creative - be a star technical writer!
- 3. Dump the manual to a postscript printer. It's just a pre-ps'ed
- version for those of you without texinfo/tex/dvi2ps. The
- original is in indent.texinfo.
- 3. You might want to make a .indent.pro file. See the manual
- for further instructions.
- 4. Try it out on your favorite yucky code - presto!
-
-
- Some added features that you'll love:
- 1. A commando! Gee do people really write those? Sure!
- 2. Executable error messages, similar to those from C.
- Screw up your code a bit (remove a crucial brace) and you'll
- see what I mean.
- 3. A help entry (as mentioned above).
- 4. For those who love details, a *commented* diff file that
- explains what I did to hack indent into shape.
- 5. .indent.pro (see the manual) is now changed to "Indent Prefs"
- I think that makes more sense. The mac can't have filenames
- that start with a period anyway (remember why?).
-
- Some things I left out:
- 1. The backup file that's created doesn't have the same file
- type and creator as the original. This is no big deal,
- since you can just use SetFile.
- 2. Tabbing in MPW is usually 4 spaces per tab. Well, on every
- other machine it's 8. I changed it and then changed it back
- to the way it was. I figure if you really care about tabs
- you can use cmd-Y to change the faccess of the file. Or,
- better yet, use detab/entab to convert it.
- 3. I didn't spin the cursor. Indent works really fast, so this
- isn't really necessary. I might do that if enough people
- tell me to. Peer pressure you know.
-
- So there you are. Mail me your comments. If you like the
- program (my mods, I mean), why not mail me a chocolate chip cookie?
-
-
- Have fun,
- Jeffrey Kowalski
-
- jeff@acacia.cadif.cornell.edu
- jeff@oak...
- AppleLink U1309
-
- CADIF Swamp
- 172 Hollister Hall
- Cornell University
- Ithaca, NY 14853