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 >
Wrap
Text File
|
1992-06-12
|
11KB
|
284 lines
Fri Jun 12 15:02:37 1992 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* globs.c (mymemcpy): Now a void function. Don't return anything.
* io.c (dump_line): When printing label, use `tabsize' to
increment target if `com_st' contains tabs. Also use
`tabsize' to calculate target when it's less than zero.
Thu Jun 11 20:27:48 1992 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* indent.c (indent): When token_type is a binary_op, if
parser_state_tos->want_blank is not true, but the preceding
character is not a space, put one on the line.
* Removed variable `sccsid' from all files.
Wed Jun 10 13:00:26 1992 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* args.c: Added long option name "dont-space-special-semicolon"
for -nss.
Tue Jun 9 13:01:21 1992 Joseph Arceneaux (jla@geech.gnu.ai.mit.edu)
* Makefile: Automatically make the files README and RELEASE-NOTES.
* sys.h: Provide defines for using memcpy or bcopy.
* globs.c: `mymemcpy ()' only defined #ifndef mymemcpy.
* indent.c (main): Set `in_name' to the current input file name.
* io.c (dumpline): Check parser_state_tos->paren_level before
using it to index parser_state_tos->paren_indents.
Mon Jun 8 17:55:07 1992 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* lexi.c (lexi): In conditional (paren_count == 0), add '=' to the
characters (along with ';', ',', and '(') which constitute a
function definition. This was to cause an ugly declaration from
libc ("int (*foo) __P ((int bar)) = bax;") to remain on one line.
Note that this is not valid C.
* indent.c (main): When indenting multiple output files, make sure
to close each output file before continuing.
Fri Jun 5 13:56:54 1992 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* io.c (read_file): Use mymemcpy() instead of bcopy();
* backup.c (max_version): Don't free dirname unless it was malloc'd.
Wed May 6 02:01:18 1992 Joseph Arceneaux (jla@geech.gnu.ai.mit.edu)
* Version 1.3 released.
* indent.texinfo: Reorganization of the "Invocation" part, and a
new menu entry "Backup files", as well as corrections throughout.
A new option "nip" added.
* indent.c (main): New variable `using_stdin', used to indicate
when `-' was specified on the command line.
Tue May 5 21:28:06 1992 Joseph Arceneaux (jla@geech.gnu.ai.mit.edu)
* args.c: Set default for `decl_com_ind' to 33. If
BERKELEY_DEFAULTS is defined, default `continuation_indent' to 4.
Sun May 3 00:43:10 1992 Joseph Arceneaux (jla at hugo)
* parse.c (reduce): when reducing <stmt><dolit>,
do set i_l_follow to il[parser_state_tos]. This was removed
earlier after a new reduction was added, but this obviously fixes
some bugs. It will stay if indent passes all the old tests.
* args.c (set_option): When calling `addkey' to add a user
identifier, make it type 'rw_decl' since these are supposed to be
typedef identifiers.
Removed "-d4" spec in "-orig" option settings.
Made default for "-fca" be false.
* args.c (set_profile): Only read one profile. The one in the
current directory has priority. Return the path of the profile read.
* indent.c (main): If `verbose' and we've read a profile, tell the
user on the stderr.
Sat May 2 18:33:14 1992 Joseph Arceneaux (jla at hugo)
* args.c: `Bill_Shannon' replaced with `blank_after_sizeof'.
indent.c: Likewise.
indent.h: Likewise.
* args.c: New variable, exp_nip, for new option "-nip", which is
equivalent to "-ip0". Long option name is
"no-parameter-indentation".
* config.sh: New shell script which generates "dirent_def.h", and
include file with directory reading definitions.
* Makefile: Take "config.sh" and "dirent_def.h" into account.
* backup.c: Make only simple backups if we can't read directories
(NODIR is defined). Functions for numbered backups conditionally
defined.
Documented all functions.
* indent_globs.h: Broken into two new files, indent.h and sys.h.
All files changed accordingly, including the Makefile.
Thu Apr 30 14:53:33 1992 Joseph Arceneaux (jla at hugo)
* backup.c, backup.h: New files with backup routines.
* io.c (make_backup): Moved into backup.c.
* io.c (sys_error): No longer static, called from make_backup.
Wed Apr 29 14:56:10 1992 Joseph Arceneaux (jla at hugo)
* args.c: Make default value for `else_endif_col' 1, as in "-gnu"
settings.
Tue Apr 28 23:18:07 1992 Joseph Arceneaux (jla at hugo)
* indent.c (main): Only output to stdout if stdin is used and no
output file is specified, or one input stream is used and -st is
specified.
* args.c: New variable `use_stdout' set with option "-st".
* indent_globs.h: Declare `use_stdout'.
Sun Mar 22 14:59:35 1992 Joseph Arceneaux (jla at hugo)
* parse.c (init_parser, reset_parser): Two new functions which
respectively allocate the neccessary parser data structures, and
initialize the parser state.
* indent.c (indent): New function which does the actual indenting
of it's input, which comes in the form of a file_buffer pointer.
(main): Command line scan changed to use new option "-o" and read
possibly multiple files into new variable `in_file_names'.
Main body changed to use new `indent' function on possibly
multiple files, and accomodate default standard io specification.
* io.c (make_backup, read_file, read_stdin): All file io routines
rewritten (`make_backup' formerly `bakcopy'). read routines
return pointer to new structure 'file_buffer'.
`make_backup' only makes backup file, no longer sets up original
file for writing.
* indent_globs.h: Declare struct file_buffer, and io routines.
Fri Mar 20 18:33:18 1992 Joseph Arceneaux (jla at hugo)
* args.c: Option "-st" and associated variable `use_stdinout'
removed. Option "-o" and associated variable `expect_output_file'
added.
Mon Feb 3 20:22:04 1992 Joseph Arceneaux (jla at churchy.gnu.ai.mit.edu)
* args.c: If BERKELEY_DEFAULTS is defined, use the original
defaults rather than GNU style.
* Version 1.2 released.
Thu Jan 23 14:02:06 1992 Joseph Arceneaux (jla at wombat.gnu.ai.mit.edu)
* Makefile: info version of manual included in distribution.
* args.c: New long options "berkeley-style", "berkeley" added
which correspond to original style.
* lexi.c (): Added explicit parens in checks for alphanums.
* indent.c (main): On switch default when searching brace, added
explicit parens to 2nd if statment.
* indent_globs.h, io.c: Made variable `in_prog_size' unsigned.
Wed Jan 15 11:59:35 1992 Joseph Arceneaux (jla at hugo)
* args.c: Accept "-gnu" option.
* indent.c (main): In case rbrace, don't use ind_level and il[tos]
as criteria for setting search_brace. This allows "-ce" to work
more strictly.
* indent.c (main): In case lparen, let '(' after an ident which is
rw_return begin casts.
* lexi.c (lexi): If ident was a reserved word, save it in
parser_state_tos->last_rw.
Changed "return" from `rw_break' to new enum element `rw_return'.
* indent_globs.h: Moved type "enum codes" to this file from
lexi.c. New element of parser state `last_rw'.
Sun Jan 12 01:40:23 1992 Joseph Arceneaux (jla at hugo)
* lexi.c (lexi): if in decl and looking at '(', additionally
accept, after closing ')', '(' as constituting a function
declaration (along with ';' and ',').
Thu Jan 9 18:31:44 1992 Joseph Arceneaux (jla at hugo)
* io.c (dump_line): When outputting nonblank lines, if
n_real_blanklines is > 1 and swallow_optional_blanklines is set,
make n_real_blanklines 1.
Wed Jan 8 10:06:43 1992 Joseph Arceneaux (jla at hugo)
* args.c (option_prefix): New function to recognize option prefix
from table. Now handles both "+" and "--" for long option prefixes.
Mon Jan 6 01:15:29 1992 Joseph Arceneaux (jla at hugo)
* Makefile: Made more compatible with GNU standards. Unix man
file removed from distribution.
Fri Dec 27 14:58:13 1991 Joseph Arceneaux (jla at hugo)
* parse.c: Correctly handle "do ... while" statements, using new
stack symbol DOSTMT.
(parse): For semicolon, if code DOSTMT is top of stack, replace it
with STMT.
(reduce): New reduction <dohead><whilestmt> => <dostmt>. Also,
when reducing <stmt><dolit>, don't change indentation.
* indent.c (main): In case rbrace, after parse(rbrace), set
force_nl if top of stack is dohead and ! btype_2.
(main): Initialize noncast_mask to 0.
Mon Dec 23 18:34:11 1991 Joseph Arceneaux (jla at hugo)
* args.c (set_option): Recognize long options, using new struct
option_conversions, if option begins with POSIX_OPTION_PREFIX.
* indent.c (main): Recognize "--no-profile" as well as "-npro".
* indent.texinfo: Describe GNU style as default. Section reworded.
Sat Dec 21 13:27:07 1991 Joseph Arceneaux (jla at hugo)
* indent.c (main): In case preesc (~ line 1282), add !had_eof to
second while clause to avoid hanging in weird text (like test file
djm-torture-test/t11).
* indent.c (main): In case rparen, (~ line 680) if cast mask was
set and is reset to zero, then set parser_state_tos->want_blank if
cast_space was set. No longer do this (#if 0) in all cases where
(!parser_state_tos->cast_mask || cast_space).
Wed Dec 4 16:41:13 1991 Joseph Arceneaux (jla at hugo)
* version.h: Version changed to be simply 1.1.4. Comments added.
Mon Nov 25 15:16:51 1991 Joseph Arceneaux (jla at hugo)
* indent.c (main): When handling decl case, don't reset
PREFIX_BLANKLINE_REQUESTED if we've just encountered the type of a
procedure delcaration. This fixes the -bap bug for procedures
which begin with a line declaring their type, following the line with
`}' from the last procedure.
Fri Nov 22 15:26:59 1991 Joseph Arceneaux (jla at hugo)
* args.c: Default is now GNU style. Original obtained by new
option "-orig". New variable exp_orig.
* indent.texinfo: Describe the new -ts option. Removed the -ss
option from GNU style.
Thu Nov 21 17:50:48 1991 Joseph Arceneaux (jla at hugo)
* args.c: New variables `tabsize' and `exp_ts'.
* indent_globs.h: Declare `tabsize'.
* io.c (pad_output, count_spaces): Use `tabsize' to calculate padding.
* pr_comment.c (pr_comment): Use `tabsize' to compute column.
* args.c: Removed the "-ss" option for GNU style.
Fri Sep 13 01:30:18 1991 Joseph Arceneaux (jla at hugo)
* indent_globs.c: New element to parser_state, `paren_depth',
which counts global paren nesting.
* indent.c: Use it in main loop to avoid setting `in_or_st' when
doing ansii prototyping.
Thu Sep 12 15:53:54 1991 Joseph Arceneaux (jla at hugo)
* io.c (dump_line): Initialize target_column to 0.
* parse.c: New variable debug to control debugging output.