home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / indent / ochangelog < prev    next >
Text File  |  2008-02-20  |  15KB  |  439 lines

  1. Thu Jan  3 14:35:15 1991  Richard Stallman  (rms at mole.ai.mit.edu)
  2.  
  3.     * lexi.c (lexi): Recognize <<= and >>= as a single token.
  4.  
  5. Sat Mar 17 17:43:45 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
  6.  
  7.     * Version 1.1.3.
  8.  
  9.     * indent.c (main, case ident): Only treat thing as decl if
  10.     parser_state_tos->p_l_follow == 0 as well as parser_state_tos->in_decl.
  11.  
  12.     * indent.c (main, case decl): Only indent parameters if
  13.     parser_state_tos->p_l_follow == 0.
  14.  
  15.     * indent_globs.h (parser_state): Add field noncast_mask.
  16.     indent.c (main, case lparen): Replace code of 21 Feb with
  17.     code to set or clear bit in parser_state_tos->noncast_mask.
  18.     lexi.c (lexi, case rw_decl & rw_struct_like): Check noncast_mask.
  19.  
  20. Wed Feb 21 16:49:24 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  21.  
  22.     * indent.c (main, case lparen): At end, set not_cast (need
  23.     to think about this more.  when to clear it.  does it need to
  24.     be a mask type thing).
  25.  
  26.     * pr_comment.c (pr_comment): Indent comments in K&R1 style parameter
  27.     declaration.
  28.  
  29. Tue Jan 23 21:04:31 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  30.  
  31.     * lexi.c (is_reserved): Check if len == strlen (s).
  32.  
  33. Thu Jan 11 13:12:15 1990  Jim Kingdon  (kingdon at mole)
  34.  
  35.     * lexi.c (lexi): In procname loop, start scanning after '('.
  36.  
  37.     * indent.c (main): Change 0 to false in one place.
  38.  
  39.     * args.c: Remove declaration of index() (never used).
  40.  
  41. Mon Jan  8 20:52:21 1990  Jim Kingdon  (kingdon at pogo)
  42.  
  43.     * lexi.c (lexi): Rewrite loop that looks for procname so
  44.     that it deals with stuff (e.g. '\n', '(') between ().
  45.  
  46. Fri Dec 29 20:05:45 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  47.  
  48.     * io.c (fill_buffer): Compare against in_prog_size to detect
  49.     end of file when scanning for \n.
  50.  
  51. Thu Dec 28 18:13:35 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  52.  
  53.     * io.c (fill_buffer): Check p - in_prog not just p against
  54.     in_prog_size.
  55.  
  56.     * lexi.c (lexi, user_specials lookup): Set p to NULL if not found.
  57.  
  58. Mon Dec 18 15:49:44 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  59.  
  60.     * io.c (fill_buffer): Compare against in_prog_size to detect
  61.     EOF rather than looking for '\0'.
  62.  
  63. Sun Dec 17 13:55:26 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  64.  
  65.     * lexi.c (lexi): Call diag correctly on "x=-1".  Also
  66.     only call it ambiguous if it is (+,-,*,&).
  67.  
  68. Sat Dec 16 15:36:17 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  69.  
  70.     * lexi.c (lexi): Remove extraneous unmatched ')' that
  71.     prevented the file from compiling.
  72.  
  73. Thu Dec 14 15:24:58 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  74.  
  75.     * lexi.c (lexi): print warning for "x=-1".
  76.  
  77. Thu Nov 30 22:39:42 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  78.  
  79.     * ident.c (main): Initialize all fields of parser_state_tos.
  80.  
  81.     * indent_globs.h, indent.c, io.c, pr_comment.c: Move out_coms,
  82.         out_lines, and com_lines out of struct parser_state.
  83.  
  84.     * lexi.c (lexi): Remove unused variables tok and j.
  85.  
  86.     * globs.c (xmalloc) [DEBUG]: Fill allocated memory with
  87.     junk.
  88.  
  89. Wed Nov  1 11:01:39 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  90.  
  91.     * parse.c (parse_lparen_in_decl): New function.
  92.     indent.c (main, case lparen): Call parse_lparen_in_decl.
  93.  
  94.     * Move definition of break_comma from args.c to indent.c
  95.  
  96. Tue Oct 31 11:07:54 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  97.  
  98.     * args.c (pro, "gnu"): Change -di1 to -di2.
  99.     indent.texinfo: Add to description of -di.
  100.  
  101. Wed Oct 11 15:32:49 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  102.  
  103.     * lexi.c (lexi): Check for user_specials keywords as well as
  104.     is_reserved.
  105.     
  106. Tue Oct 10 17:20:36 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  107.  
  108.     * lexi.c (addkey): Don't write past end of user_specials.
  109.  
  110.     * lexi.c (addkey): Remove test for 0 return from xmalloc.
  111.  
  112.     * lexi.c (lexi): Handle "<<=".
  113.  
  114. Thu Oct  5 14:50:48 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  115.  
  116.     * many: Make all variables "extern" in indent_globs.h and
  117.     define them in files associated with their function.
  118.  
  119.     * indent_globs.h: Comment out <strings.h>
  120.  
  121. Mon Oct  2 13:49:01 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  122.  
  123.     * indent.c (indent, "the turkey..."): Do not put a space before
  124.     the comment if it is the first thing on the line.
  125.  
  126. Mon Sep 25 12:42:55 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  127.  
  128.     * globs.c (x{m,re}alloc): Change long to unsigned.
  129.  
  130.     * args.c (set_profile): Add ONE_DOT_PER_FILENAME stuff.
  131.  
  132.     * args.c (set_profile): Check for null return from getenv("HOME").
  133.  
  134. Mon Sep 11 20:03:56 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  135.  
  136.         * Indent 1.1 released.
  137.  
  138.     * io.c (diag): Add "char *msg".
  139.  
  140.     * Makefile (indent.tar.Z): Use -h.
  141.  
  142.     * Makefile (indent.tar.Z): Fix so it uses dist-indent.
  143.  
  144. Tue Sep  5 21:11:00 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  145.  
  146.     * indent.c (main, case lparen): Do not call dump_line on '{' if
  147.     line is empty.
  148.  
  149. Sun Sep  3 13:37:17 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  150.  
  151.     * args.c: Remove PRO_STDIN and have -st just set use_stdinout.
  152.     indent.c (main): Check use_stdinout.
  153.     indent_globs.h: Add use_stdinout
  154.  
  155.     * indent.c (main, case lbrace): Set parser_state_tos->in_or_st
  156.     to false.
  157.  
  158. Sat Sep  2 20:53:11 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  159.  
  160.     * parse.c (reduce): Tidy up comment before reduce.
  161.  
  162.     * lexi.c (lexi): Change (*tp == ';') to (*tp == ';' || *tp == ',')
  163.  
  164.     * lexi.c: Change #include "ctype.h" to #include <ctype.h>
  165.  
  166.     * io.c (count_spaces): Replace quoted actual ^H in source file
  167.     with 010.
  168.  
  169.     * various: Remove formfeeds (and one spurious ^\ that snuck into
  170.     a comment in parse.c).
  171.  
  172.     * io.c (dump_line): Convert random text after #else and #endif
  173.     to comments.
  174.  
  175.     * various: Remove unnecessary semicolons after "}".
  176.  
  177.     * indent.c (main, case comment) Remove unnecesary label proc_comment.
  178.  
  179.     * indent.c (main): Allow space between '#' and preprocessor
  180.     directives (two changes: 1. skip over the space; 2. change
  181.     strncmp's with "#if", "#else", and "#endif" to compare with
  182.     "if", etc. instead.).
  183.  
  184.     * indent.c (main): Break declarations after comma if the
  185.     declaration is getting too long.
  186.  
  187.     * args.c (set_option, PRO_INT): Check for !isdigit, not just
  188.     for end of string.
  189.  
  190.     * args.c (option_source): Add variable and code using it.
  191.  
  192.     * indent.c (main, search_brace, case lbrace): Put braces around
  193.     "else" code in "if (btype_2)".
  194.  
  195. Thu Aug 31 20:25:27 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  196.  
  197.     * indent_globs.h: Replace check_size with check_{code,com,lab}_size.
  198.     everywhere: Replace calls to check_size with calls to
  199.     check_{code,com,lab}_size.
  200.  
  201.     * indent.c (main, case rparen): Do not set last_token_ends_sp
  202.     if it is the while of a do-while.
  203.  
  204.     * indent.c (main, search_brace, case lbrace): If not BTYPE_2,
  205.     put '{' at end of save_com.
  206.  
  207.     * indent.c (main): Dynamically allocate di_stack.
  208.  
  209.     * globs.c, indent_globs.h (mymemcpy): New function.
  210.     indent.c: Use it instead of memcpy.
  211.  
  212.     * indent.c (main, case lparen): if encountered '{' in initializer
  213.     list, force it to a new line.
  214.  
  215. Tue Aug 22 01:12:53 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  216.  
  217.     * indent.c (main, case comment): Check for end of file (indicating
  218.     an unclosed comment).
  219.  
  220.     * args.c (pro, "gnu"): change -di0 to -di1.
  221.  
  222.     * lexi.c: Use gperf.
  223.  
  224. Thu Aug 10 18:21:39 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  225.  
  226.     * indent.c (bakcopy): Use mode 0666 for creat
  227.  
  228.     * indent.c (indent, case newline): Add "else_or_endif = false;"
  229.  
  230. Sun Aug  6 17:32:54 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  231.  
  232.     * indent.texinfo (Comments): Clarify that -gnu and -kr
  233.     include -nfca.
  234.  
  235. Thu Aug  3 18:23:17 1989  Jim Kingdon  (kingdon at susie)
  236.  
  237.     * args.c (pro): Added flags -cs, -ncs.
  238.     indent_globs.h: Added variable cast_space
  239.     indent.c (main) at rparen: Add test for cast and cast_space.
  240.     indent.texinfo (Statements, Option summary): Document -cs.
  241.  
  242.     * lexi.c (lexi): In the code that checks for keywords, comment
  243.     out performance hack that doesn't work right.
  244.  
  245.     * indent.c (main): Don't set parser_state_tos->last_token if
  246.     the token is a formfeed.
  247.  
  248.     * io.c (read_stdin): Remove unused variables i and pos.
  249.  
  250.     * indent.c (main): Remove unnecessary label do_binary.
  251.  
  252.     * many places: Clean up int<->enum conversions to avoid
  253.     compiler warnings (and to make debugging easy by declaring
  254.     everything as an enum which should be one).
  255.  
  256.     * indent.c (main): Initialize last_token_ends_sp to 0.
  257.  
  258.     * io.c (read_stdio): Change ch from char to int so that EOF
  259.     will work when it doesn't fit in a char.
  260.  
  261. Wed Aug  2 18:37:10 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  262.  
  263.     * lexi.c (specials): Correct misspelling of "typedef".
  264.  
  265. Sat Jul 15 19:37:56 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  266.  
  267.     * globs.c: Change copyright notice to be consistent with other
  268.     files. 
  269.  
  270. Wed Jul 12 00:16:59 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  271.  
  272.     * Makefile: Change it so that all files in the tar file are in
  273.     a directory dist-indent.
  274.  
  275.     * Remove LIBC from Makefile.
  276.  
  277.     * Released GNU indent 1.0
  278.  
  279.     * io.c: Remove #ifdef USG and always include <fcntl.h>.
  280.  
  281.     * version.h:  New file containing version number.
  282.     Makefile:  Add version.h.
  283.     args.c (pro, set_option): Add -version option and PRO_PRSTRING.
  284.     indent.texinfo (Miscellaneous options): Document -version.
  285.  
  286. Tue Jul  4 22:19:36 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  287.  
  288.     * indent.c (main): Put call to bakcopy() inside if (output == 0)
  289.  
  290.     * io.c: Include <fcntl.h> rather than <sys/file.h> (#ifdef USG)
  291.  
  292.     * indent_globs.h, io.c, lexi.c: Replace realloc with xrealloc
  293.  
  294.     * indent_globs.h, parse.c, args.c, io.c: Remove function
  295.     prototypes, void *, (read_file)variable size array.
  296.  
  297. Mon Jul  3 15:04:29 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  298.  
  299.     * Everywhere: use xrealloc and xmalloc instead of realloc and malloc.
  300.  
  301.     * globs.c: Give the program name in the error messages.
  302.  
  303.     * io.c (diag): Change error messages to <filename>: <line #>: form.
  304.  
  305.     * lexi.c (lexi): Rewrite string/character constant copying
  306.     loop to fix problems with backslashes.  Change error message
  307.     for unterminated constant to use terminology consistent with
  308.     K&R and to use the diag routine.
  309.  
  310. Sun Jul  2 16:51:23 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  311.  
  312.     * parse.c (parse): Replaced parser_state_tos->tos++ with inc_pstack
  313.     in one place it had been missed before.
  314.  
  315.     * parse.c, indent_globs.h: Move Inc_pstack to parse.c and make
  316.     it a function to facilitate debugging (it is probably getting
  317.     a bit big to be inline anyway).
  318.  
  319.     * indent_globs.h: Have all of the parser stacks (p_stack, il,
  320.     and cstk) share a common allocated size (p_stack_size).
  321.     (Inc_pstack) realloc them all, not just p_stack.
  322.     indent.c (main): Change all references to {il,cstk}_size to
  323.     p_stack_size.
  324.  
  325.     * indent.c (main): In initialization of
  326.     parser_state_tos->p_stack, etc., multiply size given to malloc
  327.     by sizeof (@var{whatever}).
  328.  
  329.         * indent_globs.h (Inc_pstack): multiply size given to realloc
  330.     by sizeof (enum codes).
  331.     
  332.     * indent.c (main): In the main case statement, in the lparen
  333.     case, change parser_state_tos->p_stack =
  334.     xrealloc(parser_state_tos, . . . to . . . xrealloc
  335.     (parser_state_tos->p_stack, . . .
  336.                      ^^^^^^^^^
  337.         This fixes a bug which caused core dumps.
  338.  
  339. Sat Jul  1 23:02:50 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  340.  
  341.     * args.c: Add -kr option to pro.
  342.  
  343. Fri Jun 30 14:06:50 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  344.     (actually these changes were made some time ago)
  345.     * indent.c: Treat va_dcl specially so we indent it right.
  346.  
  347.     * lexi.c (lexi): Make it so that initializations will get
  348.     lined up correctly by uncommenting out code that says
  349.     code = ps.block_init ? lparen : lbrace;
  350.     
  351.     * indent_codes.h: eliminated and put into indent_globs.h.
  352.     Converted from #defines to enum.
  353.     lexi.c, parse.c, indent.c, perhaps others: various variables changed
  354.     to enum    codes from int.
  355.  
  356.     * args.c: Add explicit flag to pro, and to set_option().
  357.     Add support for PRO_SETTINGS.  Streamline pro to eliminate
  358.     PRO_SPECIAL.  Use enum for PRO_*.
  359.     
  360.     * indent.c (bakcopy): Give error from perror instead of vague
  361.     error message.
  362.     
  363.     * indent.c (bakcopy): bakfile dynamically allocated.
  364.  
  365.     * io.c (dump_line): fix bug involving a formfeed on a line of
  366.     its own.
  367.  
  368.     * io.c (read_file, fill_buffer): read input file into memory.
  369.     change token, procname to be a pointer into input file.
  370.     indent.c (main): use token as pointer into input file.  Move
  371.     troff mode string constant stuff here from fill_buffer.
  372.     io.c, indent.c: change save_com to be realloc'd as necessary.
  373.  
  374.     * indent.c (main): Change it so 'indent foo bar baz' gives an
  375.     error message without clobbering bar.
  376.  
  377. Tue Jun 27 03:10:53 1989  Jim Kingdon  (kingdon at apple-gunkies.ai.mit.edu)
  378.  
  379.     Note: Up until this point this ChangeLog is fairly sketchy.
  380.     From here on I promise to log all changes.
  381.  
  382.     * all files: Change the parser_state structure and the stack
  383.     of parser states to be a dynamically allocated linked list
  384.     instead of a 5 member structure.  Also change the p_stack, il,
  385.     cstk, and paren_indents arrays within the parser state to be
  386.     dynamically allocated and realloc'd as necessary.
  387.  
  388. Wed Jun 21 21:28:37 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  389.  
  390.     * indent_globs.h: Use ANSI token pasting #ifdef __STDC__.
  391.     (check_size): Check the return value of realloc and exit if it's nil.
  392.  
  393.     * lexi.c (user_specials{_max,_idx}): New variables for user-defined
  394.     specials.
  395.     (addkey): Define new specials in user_specials, which is dynamically
  396.     expanded if necessary.
  397.  
  398. Thu Jun  8 15:45:07 1989  Jim Kingdon  (kingdon at spiff)
  399.  
  400.     * Add -fca option.  If -fca is set, comments will be reformatted.
  401.     If -nfca is set, comments will be left untouched (as with
  402.     comments starting with '*').  The default is -fca.
  403.  
  404.     * Add -cp option.  The column number for comments to the right
  405.     of #else and #endif.  The default is -cp33.
  406.  
  407.     * Add -ss and -nss option.  When specified, -ss places a space
  408.     before a semicolon when it occurs after a while or for, e.g.
  409.       while (*p++ == ' ') ;
  410.     whereas -nss would give
  411.       while (*p++ == ' ');
  412.     The default is -nss.
  413.  
  414. Tue Jun  6 10:43:20 1989  Jim Kingdon  (kingdon at hobbes.ai.mit.edu)
  415.  
  416.     * Add -bli option
  417.     This allows you to indent a compound statement within an if,
  418.     while, etc., e.g. -bli2 gives
  419.     if (foo == bar)
  420.       {
  421.         baz = 2;
  422.       }
  423.     whereas -bli0 (the default) gives
  424.     if (foo == bar)
  425.     {
  426.       baz = 2;
  427.     }
  428.  
  429.     * Make -ip numeric
  430.     The -ip parameter now is numeric--the value is the number of
  431.     spaces to indent them.  The -d, -ci, and -cli parameters are also
  432.     now in spaces rather than indent levels.
  433.  
  434. Local Variables:
  435. mode: indented-text
  436. left-margin: 8
  437. version-control: never
  438. End:
  439.