home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d7xx / d702 / indent.lha / Indent / Indent.lha / indent-1.4ChangeLog < prev    next >
Text File  |  1992-06-12  |  11KB  |  284 lines

  1. Fri Jun 12 15:02:37 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  2.  
  3.     * globs.c (mymemcpy): Now a void function.  Don't return anything.
  4.  
  5.     * io.c (dump_line): When printing label, use `tabsize' to
  6.     increment target if `com_st' contains tabs.  Also use
  7.     `tabsize' to calculate target when it's less than zero.
  8.  
  9. Thu Jun 11 20:27:48 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  10.  
  11.     * indent.c (indent): When token_type is a binary_op, if
  12.     parser_state_tos->want_blank is not true, but the preceding
  13.     character is not a space, put one on the line.
  14.  
  15.     * Removed variable `sccsid' from all files.
  16.  
  17. Wed Jun 10 13:00:26 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  18.  
  19.     * args.c: Added long option name "dont-space-special-semicolon"
  20.     for -nss.
  21.  
  22. Tue Jun  9 13:01:21 1992  Joseph Arceneaux  (jla@geech.gnu.ai.mit.edu)
  23.  
  24.     * Makefile: Automatically make the files README and RELEASE-NOTES.
  25.  
  26.     * sys.h: Provide defines for using memcpy or bcopy.
  27.  
  28.     * globs.c: `mymemcpy ()' only defined #ifndef mymemcpy.
  29.  
  30.     * indent.c (main): Set `in_name' to the current input file name.
  31.  
  32.     * io.c (dumpline): Check parser_state_tos->paren_level before
  33.     using it to index parser_state_tos->paren_indents.
  34.  
  35. Mon Jun  8 17:55:07 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  36.  
  37.     * lexi.c (lexi): In conditional (paren_count == 0), add '=' to the
  38.     characters (along with ';', ',', and '(') which constitute a
  39.     function definition.  This was to cause an ugly declaration from
  40.     libc ("int (*foo) __P ((int bar)) = bax;") to remain on one line.
  41.     Note that this is not valid C.
  42.  
  43.     * indent.c (main): When indenting multiple output files, make sure
  44.     to close each output file before continuing.
  45.  
  46. Fri Jun  5 13:56:54 1992  Joseph Arceneaux  (jla@churchy.gnu.ai.mit.edu)
  47.  
  48.     * io.c (read_file): Use mymemcpy() instead of bcopy();
  49.  
  50.     * backup.c (max_version):  Don't free dirname unless it was malloc'd.
  51.  
  52. Wed May  6 02:01:18 1992  Joseph Arceneaux  (jla@geech.gnu.ai.mit.edu)
  53.  
  54.     * Version 1.3 released.
  55.  
  56.     * indent.texinfo:  Reorganization of the "Invocation" part, and a
  57.     new menu entry "Backup files", as well as corrections throughout.
  58.     A new option "nip" added.
  59.  
  60.     * indent.c (main): New variable `using_stdin', used to indicate
  61.     when `-' was specified on the command line.
  62.  
  63. Tue May  5 21:28:06 1992  Joseph Arceneaux  (jla@geech.gnu.ai.mit.edu)
  64.  
  65.     * args.c: Set default for `decl_com_ind' to 33.  If
  66.     BERKELEY_DEFAULTS is defined, default `continuation_indent' to 4.
  67.  
  68. Sun May  3 00:43:10 1992  Joseph Arceneaux  (jla at hugo)
  69.  
  70.     * parse.c (reduce):  when reducing <stmt><dolit>,
  71.     do set i_l_follow to il[parser_state_tos].  This was removed
  72.     earlier after a new reduction was added, but this obviously fixes
  73.     some bugs.  It will stay if indent passes all the old tests.
  74.  
  75.     * args.c (set_option):  When calling `addkey' to add a user
  76.     identifier, make it type 'rw_decl' since these are supposed to be
  77.     typedef identifiers.
  78.     Removed "-d4" spec in "-orig" option settings.
  79.     Made default for "-fca" be false.
  80.  
  81.     * args.c (set_profile): Only read one profile.  The one in the
  82.     current directory has priority.  Return the path of the profile read.
  83.     * indent.c (main): If `verbose' and we've read a profile, tell the
  84.     user on the stderr.
  85.  
  86. Sat May  2 18:33:14 1992  Joseph Arceneaux  (jla at hugo)
  87.  
  88.     * args.c: `Bill_Shannon' replaced with `blank_after_sizeof'.
  89.     indent.c: Likewise.
  90.     indent.h: Likewise.
  91.  
  92.     * args.c: New variable, exp_nip, for new option "-nip", which is
  93.     equivalent to "-ip0".  Long option name is
  94.     "no-parameter-indentation".
  95.  
  96.     * config.sh: New shell script which generates "dirent_def.h", and
  97.     include file with directory reading definitions.
  98.     * Makefile:  Take "config.sh" and "dirent_def.h" into account.
  99.  
  100.     * backup.c: Make only simple backups if we can't read directories
  101.     (NODIR is defined).  Functions for numbered backups conditionally
  102.     defined.
  103.     Documented all functions.
  104.  
  105.     * indent_globs.h:  Broken into two new files, indent.h and sys.h.
  106.     All files changed accordingly, including the Makefile.
  107.  
  108. Thu Apr 30 14:53:33 1992  Joseph Arceneaux  (jla at hugo)
  109.  
  110.     * backup.c, backup.h: New files with backup routines.
  111.     * io.c (make_backup): Moved into backup.c.
  112.     * io.c (sys_error): No longer static, called from make_backup.
  113.  
  114. Wed Apr 29 14:56:10 1992  Joseph Arceneaux  (jla at hugo)
  115.  
  116.     * args.c: Make default value for `else_endif_col' 1, as in "-gnu"
  117.     settings.
  118.  
  119. Tue Apr 28 23:18:07 1992  Joseph Arceneaux  (jla at hugo)
  120.  
  121.     * indent.c (main):  Only output to stdout if stdin is used and no
  122.     output file is specified, or one input stream is used and -st is
  123.     specified.
  124.     * args.c: New variable `use_stdout' set with option "-st".
  125.     * indent_globs.h: Declare `use_stdout'.
  126.  
  127. Sun Mar 22 14:59:35 1992  Joseph Arceneaux  (jla at hugo)
  128.  
  129.     * parse.c (init_parser, reset_parser):  Two new functions which
  130.     respectively allocate the neccessary parser data structures, and
  131.     initialize the parser state.
  132.     * indent.c (indent): New function which does the actual indenting
  133.     of it's input, which comes in the form of a file_buffer pointer.
  134.     (main): Command line scan changed to use new option "-o" and read
  135.     possibly multiple files into new variable `in_file_names'.
  136.     Main body changed to use new `indent' function on possibly
  137.     multiple files, and accomodate default standard io specification.
  138.  
  139.     * io.c (make_backup, read_file, read_stdin):  All file io routines
  140.     rewritten (`make_backup' formerly `bakcopy').  read routines
  141.     return pointer to new structure 'file_buffer'.
  142.     `make_backup' only makes backup file, no longer sets up original
  143.     file for writing.
  144.     * indent_globs.h:  Declare struct file_buffer, and io routines.
  145.  
  146. Fri Mar 20 18:33:18 1992  Joseph Arceneaux  (jla at hugo)
  147.  
  148.     * args.c: Option "-st" and associated variable `use_stdinout'
  149.     removed.  Option "-o" and associated variable `expect_output_file'
  150.     added.
  151.  
  152. Mon Feb  3 20:22:04 1992  Joseph Arceneaux  (jla at churchy.gnu.ai.mit.edu)
  153.  
  154.     * args.c: If BERKELEY_DEFAULTS is defined, use the original
  155.     defaults rather than GNU style.
  156.  
  157.     * Version 1.2 released.
  158.  
  159. Thu Jan 23 14:02:06 1992  Joseph Arceneaux  (jla at wombat.gnu.ai.mit.edu)
  160.  
  161.     * Makefile: info version of manual included in distribution.
  162.  
  163.     * args.c: New long options "berkeley-style", "berkeley" added
  164.     which correspond to original style.
  165.  
  166.     * lexi.c ():  Added explicit parens in checks for alphanums.
  167.     * indent.c (main):  On switch default when searching brace, added
  168.     explicit parens to 2nd if statment.
  169.     * indent_globs.h, io.c: Made variable `in_prog_size' unsigned.
  170.          
  171. Wed Jan 15 11:59:35 1992  Joseph Arceneaux  (jla at hugo)
  172.  
  173.     * args.c:  Accept "-gnu" option.
  174.  
  175.     * indent.c (main): In case rbrace, don't use ind_level and il[tos]
  176.     as criteria for setting search_brace.  This allows "-ce" to work
  177.     more strictly.
  178.  
  179.     * indent.c (main): In case lparen, let '(' after an ident which is
  180.     rw_return begin casts.
  181.     * lexi.c (lexi): If ident was a reserved word, save it in
  182.     parser_state_tos->last_rw.
  183.     Changed "return" from `rw_break' to new enum element `rw_return'.
  184.     * indent_globs.h: Moved type "enum codes" to this file from
  185.     lexi.c.  New element of parser state `last_rw'.
  186.  
  187. Sun Jan 12 01:40:23 1992  Joseph Arceneaux  (jla at hugo)
  188.  
  189.     * lexi.c (lexi): if in decl and looking at '(', additionally
  190.     accept, after closing ')',  '(' as constituting a function
  191.     declaration (along with ';' and ',').
  192.  
  193. Thu Jan  9 18:31:44 1992  Joseph Arceneaux  (jla at hugo)
  194.  
  195.     * io.c (dump_line):  When outputting nonblank lines, if
  196.     n_real_blanklines is > 1 and swallow_optional_blanklines is set,
  197.     make n_real_blanklines 1.
  198.  
  199. Wed Jan  8 10:06:43 1992  Joseph Arceneaux  (jla at hugo)
  200.  
  201.     * args.c (option_prefix):  New function to recognize option prefix
  202.     from table.  Now handles both "+" and "--" for long option prefixes.
  203.  
  204. Mon Jan  6 01:15:29 1992  Joseph Arceneaux  (jla at hugo)
  205.  
  206.     * Makefile:  Made more compatible with GNU standards.  Unix man
  207.     file removed from distribution.
  208.  
  209. Fri Dec 27 14:58:13 1991  Joseph Arceneaux  (jla at hugo)
  210.  
  211.     * parse.c:  Correctly handle "do ... while" statements, using new
  212.     stack symbol DOSTMT.
  213.     (parse):  For semicolon, if code DOSTMT is top of stack, replace it
  214.     with STMT.
  215.     (reduce):  New reduction <dohead><whilestmt> => <dostmt>.  Also,
  216.     when reducing <stmt><dolit>, don't change indentation.
  217.  
  218.     * indent.c (main):  In case rbrace, after parse(rbrace), set
  219.     force_nl if top of stack is dohead and ! btype_2.
  220.     (main):  Initialize noncast_mask to 0.
  221.  
  222. Mon Dec 23 18:34:11 1991  Joseph Arceneaux  (jla at hugo)
  223.  
  224.     * args.c (set_option): Recognize long options, using new struct
  225.     option_conversions, if option begins with POSIX_OPTION_PREFIX.
  226.  
  227.     * indent.c (main): Recognize "--no-profile" as well as "-npro".
  228.  
  229.     * indent.texinfo: Describe GNU style as default.  Section reworded.
  230.  
  231. Sat Dec 21 13:27:07 1991  Joseph Arceneaux  (jla at hugo)
  232.  
  233.     * indent.c (main):  In case preesc (~ line 1282), add !had_eof to
  234.     second while clause to avoid hanging in weird text (like test file
  235.     djm-torture-test/t11).
  236.  
  237.     * indent.c (main): In case rparen, (~ line 680) if cast mask was
  238.     set and is reset to zero, then set parser_state_tos->want_blank if
  239.     cast_space was set.  No longer do this (#if 0) in all cases where
  240.     (!parser_state_tos->cast_mask || cast_space).
  241.  
  242. Wed Dec  4 16:41:13 1991  Joseph Arceneaux  (jla at hugo)
  243.  
  244.     * version.h:  Version changed to be simply 1.1.4.  Comments added.
  245.  
  246. Mon Nov 25 15:16:51 1991  Joseph Arceneaux  (jla at hugo)
  247.  
  248.     * indent.c (main):  When handling decl case, don't reset
  249.     PREFIX_BLANKLINE_REQUESTED if we've just encountered the type of a
  250.     procedure delcaration.  This fixes the -bap bug for procedures
  251.     which begin with a line declaring their type, following the line with
  252.     `}' from the last procedure.
  253.  
  254. Fri Nov 22 15:26:59 1991  Joseph Arceneaux  (jla at hugo)
  255.  
  256.     * args.c: Default is now GNU style.  Original obtained by new
  257.     option "-orig".  New variable exp_orig.
  258.  
  259.     * indent.texinfo: Describe the new -ts option.  Removed the -ss
  260.     option from GNU style.
  261.  
  262. Thu Nov 21 17:50:48 1991  Joseph Arceneaux  (jla at hugo)
  263.  
  264.     * args.c: New variables `tabsize' and `exp_ts'.
  265.     * indent_globs.h: Declare `tabsize'.
  266.     * io.c (pad_output, count_spaces): Use `tabsize' to calculate padding.
  267.     * pr_comment.c (pr_comment): Use `tabsize' to compute column.
  268.  
  269.     * args.c: Removed the "-ss" option for GNU style.
  270.  
  271. Fri Sep 13 01:30:18 1991  Joseph Arceneaux  (jla at hugo)
  272.  
  273.     * indent_globs.c: New element to parser_state, `paren_depth',
  274.     which counts global paren nesting.
  275.     * indent.c: Use it in main loop to avoid setting `in_or_st' when
  276.     doing ansii prototyping.
  277.  
  278. Thu Sep 12 15:53:54 1991  Joseph Arceneaux  (jla at hugo)
  279.  
  280.     * io.c (dump_line): Initialize target_column to 0.
  281.  
  282.     * parse.c: New variable debug to control debugging output.
  283.  
  284.