home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 103.lha / PrettyPrint.doc < prev    next >
Text File  |  1986-11-20  |  2KB  |  45 lines

  1. Here is a pd utility that can fix the way c code looks. Ever run into
  2. "Yechhy" C code? We do - all the time. In our continuous nosing around
  3. through the enormous amount of PD C code out there, we constantly find
  4. interesting programs... that we can hardly make sense out of.
  5.  
  6. This program will fix the bad code.... Maybe... It only depends on your
  7. perceptions of what "fixed" means. UNIX style? <Blechhh!>
  8. K&R Style? <Gack!> IBM internal style <Aieeeee!> No, these styles are
  9. clearly rude, crude, and socially unacceptable.
  10.  
  11. Enter the SoftCircuits C code structuring tool;
  12.  
  13. Created by Timothy R. Keating and Charles B. Blish due to an
  14. uncontrollable urge to be able to read other's programs.
  15.  
  16. Think it's funny? Well, maybe. But not at 3 am, when you have a
  17. source file with 9 braces on 1 line, 6 parens and one brace on
  18. the next, and so on...
  19.  
  20. Usage:
  21.  
  22. PrettyPrint >outputfile inputfile
  23.  
  24. This program will print to the stdio port, so:
  25.  
  26. PrettyPrint inputfile
  27.  
  28. will send the output to the console...
  29.  
  30. PrettyPrint >ram:temp.c mysource.c
  31.  
  32. will send the output to ram:temp.c
  33.  
  34. PrettyPrint makes no assumptions about file extensions; You want 'em,
  35. then specify them.
  36.  
  37. Have a nice day! And run any code you're going to post through this
  38. thing for the benefit of those new to the language, ok?
  39.  
  40. Ben Blish, Tim Keating     SoftCircuits Inc.
  41. Released into the public domain January 7th, 1987
  42. Please include this file if you re-post on another service.
  43. Posted to CIS first: CIS AmigaForum has 10,000 members! Come Join!
  44.  
  45.