home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / indent / !Indent / kingdon < prev    next >
Encoding:
Internet Message Format  |  1991-02-22  |  2.4 KB

  1. To: kingdon%apple-gunkies.ai.mit.edu@uk.ac.nsfnet-relay
  2. From: Graham Toal <gtoal@uk.ac.uk>
  3.  
  4. Hello Jim -- are you still hacking GNU Indent?  If so, could you handle
  5. updates starting from the versions below or would you prefer to send
  6. me your current source so that we can start off in synch?
  7. (I presume gnu diff context diffs will be acceptable?)
  8.  
  9. I've made the following changes:
  10.  
  11.    1) Fixed a major portability bug:  the code was relying on variables
  12.       being zeroed by malloc.  This isn't always the case.
  13.  
  14.    2) Added support for ANSI unsigned constants such as 65535U
  15.  
  16.    3) Changed the source from a mixture of K&R and ANSI to all ANSI.
  17.       (Note - it has some enums in it so would not go through most
  18.        old K&R compilers anyway; it now compiles under a strict ANSI
  19.        compiler without warnings)
  20.  
  21.    4) Added a tiny amount of machine-specific help for the Acorn
  22.       Archimedes, compiled under suitable ifdef's.
  23.  
  24.    5) Renamed the files so that they work on systems with shorter names.
  25.  
  26.    6) Added .h files for all .c files (eg parse.c now has a parse.h which
  27.       declares all the external procedures defined in parse.c).
  28.       The original indent_glob.h is now externs.h, and has had several
  29.       bogus declarations repaired.
  30.       All the .c -> .h headers can be automatically generated by
  31.       mkptypes (or makeproto), and I'd suggest putting a dependency
  32.       in the makefile to do this.
  33.  
  34.    7) Added support for the Mnemosyne memory debugging package recently
  35.       posted to usenet. (all ifdef'd)  Cleans up heap and guarantees no
  36.       memory leakages.  Not really important at the moment, but might be
  37.       in the future if the indent code were to be called, say, as a 
  38.       subroutine from some other package.
  39.  
  40. I hope this is helpful to you.  It sounds like a lot of code but it isn't
  41. actually all that much.  It was only two evenings worth of hacking, and
  42. shouldn't take more than an hour or two to merge back in.  Before cleaning
  43. it up like this the code came nowhere near to running on my machine.
  44.  
  45. Best regards,
  46.    Graham.
  47.  
  48. static char sccsid[] = "@(#)args.c    5.8 (Berkeley) 5/15/89";
  49. static char sccsid[] = "@(#)pr_comment.c    5.9 (Berkeley) 9/15/88";
  50. static char sccsid[] = "@(#)indent.c    5.11 (Berkeley) 9/15/88";
  51. static char sccsid[] = "@(#)io.c    5.10 (Berkeley) 9/15/88";
  52. static char sccsid[] = "@(#)lexi.c    5.11 (Berkeley) 9/15/88";
  53. static char sccsid[] = "@(#)parse.c    5.8 (Berkeley) 9/15/88";
  54.