Filename: NEWS
|
| Revision 1.44 | carlo
| 2000/11/17 02:13:50 | +1 -1
|
Bumped version number to 2.2.6.
|
| Revision 1.43 | carlo
| 2000/11/17 00:04:56 | +1 -1
|
Add note that nested functions are a GNU extension.
|
| Revision 1.42 | carlo
| 2000/11/16 02:09:52 | +12 -0
|
Added new option --break-function-decl-args (-bfda).
Initial patch provided by Robert Lipe <robertl@sco.com>.
|
| Revision 1.41 | carlo
| 2000/11/16 00:05:58 | +3 -0
|
Date: Wed, 22 Mar 2000 16:00:18 -0500 (EST)
From: Jim Rogers <jimrogers@writeme.com>
I don't expect the -di option to apply to function declartions when -npsl is
used. for example, if -npsl and -di16 is used:
void main()
{
}
--
I think he is right and I changed this behaviour. However, it does not
work for nested functions: those are still indented.
|
| Revision 1.40 | carlo
| 2000/11/15 20:57:40 | +4 -0
|
New options to suppress spaces after if, for and while respectively.
|
| Revision 1.39 | carlo
| 2000/11/15 19:36:12 | +2 -0
|
Fixed indentation of nested function. Bug report by Michael Deutsch.
|
| Revision 1.38 | carlo
| 2000/11/15 02:10:52 | +4 -0
|
Don't add blank lines after declarations when we're in the middle of
a C-style comment that continues on the next line. Reported by David Hui.
|
| Revision 1.37 | carlo
| 2000/11/12 14:09:47 | +4 -0
|
Fixed the -nlp bug (finally)
|
| Revision 1.36 | carlo
| 2000/10/10 20:38:05 | +4 -0
|
Eat backslashes of backslash-newline when occuring outside a macro
definition or literal string. Bug report by Alex Cherepanov:
Indent cannot handle trailing '\' outside of the macro
or string. Don't ask me why some programs use it there.
|
| Revision 1.35 | carlo
| 2000/09/11 14:19:14 | +7 -3
|
Update.
|
| Revision 1.34 | carlo
| 2000/09/08 19:11:49 | +7 -0
|
Bug fixes for -fca, reported by John C. Oppenheimer.
|
| Revision 1.33 | carlo
| 2000/07/17 22:08:06 | +5 -0
|
Renamed --blank-lines-after-block-comments to --blank-lines-before-block-comments.
|
| Revision 1.32 | carlo
| 2000/07/06 11:57:18 | +8 -0
|
New option --cuddle-do-while. Sorry, I forgot who wrote this patch...
|
| Revision 1.31 | carlo
| 2000/04/02 10:04:13 | +4 -0
|
New options -ut and -nut (--use-tabs, --no-tabs).
Fixed a few bugs and added documentation for these options, starting
of with a patch from Sean Cavanaugh.
From: "Sean Cavanaugh" <sean@dimensionalrift.com>
To: <indent@alinoe.com>
Subject: indent 2.2.5 patch
Date: Sat, 1 Apr 2000 15:31:21 -0800
I recently pulled down indent 2.2.5 and was surprised to find it didn't have
an option to convert tabs to spaces. I've added a command line switch
'-no-tabs' or '-nt' which lets you alter the default behavior.
It is a pretty simple change, and handy for those of us who hate tabs :)
- Sean
|
| Revision 1.30 | carlo
| 2000/03/23 15:34:29 | +2 -0
|
Fixed -dN again (bug report by Marc Herbert)
|
| Revision 1.29 | carlo
| 2000/03/01 22:36:08 | +6 -1
|
Fixed a bug reported by David Hull <hull@paracel.com>.
|
| Revision 1.28 | carlo
| 2000/02/25 19:59:32 | +12 -0
|
Bug fix per suggestion by Igor Lyubashevskiy
|
Filename: args.c
|
| Revision 1.28 | carlo
| 2000/11/17 03:01:04 | +12 -22
|
Ran indent through indent, using -gnu -nhnl -l120.
Updated copyright info.
|
| Revision 1.27 | carlo
| 2000/11/16 02:09:52 | +12 -4
|
Added new option --break-function-decl-args (-bfda).
Initial patch provided by Robert Lipe <robertl@sco.com>.
|
| Revision 1.26 | carlo
| 2000/11/15 21:16:17 | +2 -2
|
Date: Wed, 12 Apr 2000 15:07:58 +0200
From: "Borkhuis, Johan" <Johan.Borkhuis@peektraffic.nl>
The defaults are read from the struct pro. For boolean types there are 2
entries in this table, the positive and the negative (with an n in front).
One of the items in the struct is p_special. This items is used to indicate
if a the value of a boolean should be inserted as a default or not. But this
does not work. The code as it is now (in the current 2.2.5 release) in the
function set_defaults:
for (p = pro; p->p_name; p++)
if (p->p_type == PRO_BOOL || p->p_type == PRO_INT)
*p->p_obj = p->p_default;
To get this to work the code should be changed to:
for (p = pro; p->p_name; p++)
if ((p->p_type == PRO_BOOL) && (p->p_special == ON) || p->p_type == PRO_INT)
*p->p_obj = p->p_default;
Here a check if p_special is set to ON is inserted to check if this value
may be used as a default.
|
| Revision 1.25 | carlo
| 2000/11/15 20:57:40 | +42 -18
|
New options to suppress spaces after if, for and while respectively.
|
| Revision 1.24 | carlo
| 2000/10/06 12:10:16 | +9 -1
|
Set the max. comment column to the max. code column if no -lc option
was given. Fixes a compiler warning in io.c.
Patch by John Bridges" <jbridges@netcom.com>
|
| Revision 1.23 | carlo
| 2000/07/17 22:08:06 | +3 -3
|
Renamed --blank-lines-after-block-comments to --blank-lines-before-block-comments.
|
| Revision 1.22 | carlo
| 2000/07/06 11:57:18 | +9 -1
|
New option --cuddle-do-while. Sorry, I forgot who wrote this patch...
|
| Revision 1.21 | carlo
| 2000/04/02 10:04:13 | +9 -1
|
New options -ut and -nut (--use-tabs, --no-tabs).
Fixed a few bugs and added documentation for these options, starting
of with a patch from Sean Cavanaugh.
From: "Sean Cavanaugh" <sean@dimensionalrift.com>
To: <indent@alinoe.com>
Subject: indent 2.2.5 patch
Date: Sat, 1 Apr 2000 15:31:21 -0800
I recently pulled down indent 2.2.5 and was surprised to find it didn't have
an option to convert tabs to spaces. I've added a command line switch
'-no-tabs' or '-nt' which lets you alter the default behavior.
It is a pretty simple change, and handy for those of us who hate tabs :)
- Sean
|
Filename: comments.c
|
| Revision 1.26 | carlo
| 2000/11/17 03:01:04 | +22 -37
|
Ran indent through indent, using -gnu -nhnl -l120.
Updated copyright info.
|
| Revision 1.25 | carlo
| 2000/11/17 02:11:34 | +2 -3
|
Date: Thu, 16 Nov 2000 10:28:34 +0100
From: Robert Laufer <rlaufer1@lucent.com>
I get a memory fault for the attached file foobar.c, if i execute the
command indent -st --dont-break-procedure-type foobar.c
If i write void bar (void) the error does not occur. Also the identing
does not work correct for comments between the procedure declaration
and the opening bracket, see procedure foo. This does only happen with
the option --dont-break-procedure-type.
|
| Revision 1.24 | carlo
| 2000/11/17 00:51:28 | +2 -2
|
Date: Wed, 15 Nov 2000 23:12:24 -0800 (PST)
From: Michael Deutschmann <michael@talamasca.ocis.net>
BTW, I have one other problem to report. This one I've actually known
about for awhile, but hadn't thought to report it as the workaround is
easy:
int
main (int argc, char **argv)
{
/* The mostly-blank line following:
*
* Can cause trouble with indent if -sc is not used.
*/
return 0;
}
If "indent -sc" is used, this file is not changed. But indent without
"-sc" removes the star on the blank line. Worse, if indent -sc is used on
the damaged file, the star is restored but then extra stars are added to
the remaining lines. (So a cycle of "indent foo.c; indent -sc foo.c;
indent foo.c; indent -sc foo.c" and on does progressively worse damage to
the file.
---
Actually, it only removed a star on a blank line when it was the second
line of the comment (this line is used to determine if something is a
block comment or not). --Carlo
|
| Revision 1.23 | carlo
| 2000/11/15 02:10:52 | +3 -1
|
Don't add blank lines after declarations when we're in the middle of
a C-style comment that continues on the next line. Reported by David Hui.
|
| Revision 1.22 | carlo
| 2000/09/11 14:09:21 | +23 -4
|
Bug fix: do NOT collapse spaces in comments unless actually formatting them!
|
| Revision 1.21 | carlo
| 2000/09/11 13:53:51 | +3 -2
|
Don't eat spaces that follow a '.'. <-- Like those (allow two spaces).
|
| Revision 1.20 | carlo
| 2000/09/09 14:56:41 | +12 -26
|
Ok... collapse all adjacent spaces in comments into one when formatting
comments.
|
| Revision 1.19 | carlo
| 2000/09/09 09:33:34 | +9 -5
|
Bug fix for previous change.
|
| Revision 1.18 | carlo
| 2000/09/08 21:03:08 | +2 -2
|
bug fix for previous change
|
| Revision 1.17 | carlo
| 2000/09/08 19:11:49 | +14 -2
|
Bug fixes for -fca, reported by John C. Oppenheimer.
|
| Revision 1.16 | carlo
| 2000/03/23 15:34:29 | +7 -2
|
Fixed -dN again (bug report by Marc Herbert)
|
| Revision 1.15 | carlo
| 2000/02/25 19:46:26 | +2 -1
|
Bug reported by Wayne Green (-npls switch and c++ style comments)
|
| Revision 1.14 | carlo
| 2000/02/14 11:44:28 | +6 -3
|
Date: Wed, 9 Feb 2000 17:55:55 -0600
From: Robert Lipe <robertl@sco.com>
Subject: patch for --cdb
To: indent@alinoe.com
Here is a patch to "fix" -cdb. According to comments.c
`comment_delimiter_on_blankline' ("cdb"): If set, place the comment
delimiters on lines by themselves. This only affects comments
which are not to the right of code.
Unfortunately, the code doesn't seem to successfully take the presence
or absence of preceeding code into account.
$ cat /tmp/x.c
int foo; /* This is a single line comment */
/* this is a column zero real single line comment */
/* this is elgible for cdb. */
$ ./indent -st -cdb /tmp/x.c
int foo; /*
This is a single line comment
*/
/* this is a column zero real single line comment */
/*
this is elgible for cdb.
*/
With this patch installed, it returns:
$ ./indent -st -cdb /tmp/x.c
int foo; /* This is a single line comment */
/* this is a column zero real single line comment */
/*
this is elgible for cdb.
*/
Though this specific example might look silly, it's very useful for
cases where you're closing up a chain of loops and have
} /* loop of l */
} /* loop of k */
} /* loop of j */
} /* loop of i */
|
Filename: indent.c
|
| Revision 1.60 | carlo
| 2000/11/17 03:01:04 | +426 -555
|
Ran indent through indent, using -gnu -nhnl -l120.
Updated copyright info.
|
| Revision 1.59 | carlo
| 2000/11/17 02:11:35 | +5 -6
|
Date: Thu, 16 Nov 2000 10:28:34 +0100
From: Robert Laufer <rlaufer1@lucent.com>
I get a memory fault for the attached file foobar.c, if i execute the
command indent -st --dont-break-procedure-type foobar.c
If i write void bar (void) the error does not occur. Also the identing
does not work correct for comments between the procedure declaration
and the opening bracket, see procedure foo. This does only happen with
the option --dont-break-procedure-type.
|
| Revision 1.58 | carlo
| 2000/11/17 00:01:26 | +5 -16
|
Give force_nl the meaning it really has. Then actually force a newline
when it is set at the last place where we didn't. This fixes the bug
that under certain cicumstances a line wasn't broken where it should.
|
| Revision 1.57 | carlo
| 2000/11/16 17:04:47 | +5 -2
|
This fixes an old bug, reported by <igorlord@alum.mit.edu> at the
beginning of 2000. Possible break points were skipped under
circumstances that did dependant on where a line was broken, resulting
in an alternating output (after subsequent runs of indent).
This was a hard one to find :/
|
| Revision 1.56 | carlo
| 2000/11/16 02:09:52 | +8 -1
|
Added new option --break-function-decl-args (-bfda).
Initial patch provided by Robert Lipe <robertl@sco.com>.
|
| Revision 1.55 | carlo
| 2000/11/16 00:05:58 | +3 -1
|
Date: Wed, 22 Mar 2000 16:00:18 -0500 (EST)
From: Jim Rogers <jimrogers@writeme.com>
I don't expect the -di option to apply to function declartions when -npsl is
used. for example, if -npsl and -di16 is used:
void main()
{
}
--
I think he is right and I changed this behaviour. However, it does not
work for nested functions: those are still indented.
|
| Revision 1.54 | carlo
| 2000/11/15 20:57:40 | +8 -1
|
New options to suppress spaces after if, for and while respectively.
|
| Revision 1.53 | carlo
| 2000/11/15 19:36:12 | +2 -3
|
Fixed indentation of nested function. Bug report by Michael Deutsch.
|
| Revision 1.52 | carlo
| 2000/11/15 16:03:33 | +2 -2
|
Treat return types of functions correctly even when they are not
explicitely given with the -T option.
|
| Revision 1.51 | carlo
| 2000/11/10 13:14:19 | +7 -1
|
Wild card expansion for win32 by "John Bridges" <jbridges@netcom.com>
|
| Revision 1.50 | carlo
| 2000/11/10 00:00:42 | +6 -1
|
Stop indent from core dumping on C++ code (it still won't indent correctly).
|
| Revision 1.49 | carlo
| 2000/11/08 23:37:13 | +3 -1
|
Support for mingw32 by Sudhi Herle <sherle@sta.samsung.com>
|
| Revision 1.48 | carlo
| 2000/10/06 12:10:16 | +3 -1
|
Set the max. comment column to the max. code column if no -lc option
was given. Fixes a compiler warning in io.c.
Patch by John Bridges" <jbridges@netcom.com>
|
| Revision 1.47 | carlo
| 2000/09/11 14:14:02 | +2 -2
|
Fix a type that caused types inside sizeof() as to be treated declarations.
Bug reported by Daniel Diaz.
|
| Revision 1.46 | carlo
| 2000/07/06 11:57:18 | +5 -3
|
New option --cuddle-do-while. Sorry, I forgot who wrote this patch...
|
| Revision 1.45 | carlo
| 2000/03/03 15:25:42 | +3 -3
|
Compiler warning bug fix for 64-bit machines.
|
| Revision 1.44 | carlo
| 2000/02/25 19:59:32 | +2 -1
|
Bug fix per suggestion by Igor Lyubashevskiy
|
| Revision 1.43 | carlo
| 2000/02/14 11:14:08 | +2 -2
|
Hm, the DEBUG code should probably be removed, but until then: I fixed it.
|
Filename: indent.h
|
| Revision 1.24 | carlo
| 2000/11/17 03:01:04 | +8 -3
|
Ran indent through indent, using -gnu -nhnl -l120.
Updated copyright info.
|
| Revision 1.23 | carlo
| 2000/11/16 02:09:52 | +3 -1
|
Added new option --break-function-decl-args (-bfda).
Initial patch provided by Robert Lipe <robertl@sco.com>.
|
| Revision 1.22 | carlo
| 2000/11/15 20:57:40 | +4 -1
|
New options to suppress spaces after if, for and while respectively.
|
| Revision 1.21 | carlo
| 2000/07/06 11:57:18 | +2 -1
|
New option --cuddle-do-while. Sorry, I forgot who wrote this patch...
|
| Revision 1.20 | carlo
| 2000/04/02 10:04:13 | +3 -1
|
New options -ut and -nut (--use-tabs, --no-tabs).
Fixed a few bugs and added documentation for these options, starting
of with a patch from Sean Cavanaugh.
From: "Sean Cavanaugh" <sean@dimensionalrift.com>
To: <indent@alinoe.com>
Subject: indent 2.2.5 patch
Date: Sat, 1 Apr 2000 15:31:21 -0800
I recently pulled down indent 2.2.5 and was surprised to find it didn't have
an option to convert tabs to spaces. I've added a command line switch
'-no-tabs' or '-nt' which lets you alter the default behavior.
It is a pretty simple change, and handy for those of us who hate tabs :)
- Sean
|
Filename: indent.texinfo
|
| Revision 1.25 | carlo
| 2000/11/16 02:09:52 | +40 -0
|
Added new option --break-function-decl-args (-bfda).
Initial patch provided by Robert Lipe <robertl@sco.com>.
|
| Revision 1.24 | carlo
| 2000/11/15 20:57:40 | +68 -4
|
New options to suppress spaces after if, for and while respectively.
|
| Revision 1.23 | carlo
| 2000/07/17 22:08:06 | +10 -16
|
Renamed --blank-lines-after-block-comments to --blank-lines-before-block-comments.
|
| Revision 1.22 | carlo
| 2000/07/06 11:57:18 | +42 -0
|
New option --cuddle-do-while. Sorry, I forgot who wrote this patch...
|
| Revision 1.21 | carlo
| 2000/04/02 10:04:13 | +14 -0
|
New options -ut and -nut (--use-tabs, --no-tabs).
Fixed a few bugs and added documentation for these options, starting
of with a patch from Sean Cavanaugh.
From: "Sean Cavanaugh" <sean@dimensionalrift.com>
To: <indent@alinoe.com>
Subject: indent 2.2.5 patch
Date: Sat, 1 Apr 2000 15:31:21 -0800
I recently pulled down indent 2.2.5 and was surprised to find it didn't have
an option to convert tabs to spaces. I've added a command line switch
'-no-tabs' or '-nt' which lets you alter the default behavior.
It is a pretty simple change, and handy for those of us who hate tabs :)
- Sean
|
Filename: io.c
|
| Revision 1.38 | carlo
| 2000/11/17 03:01:04 | +68 -95
|
Ran indent through indent, using -gnu -nhnl -l120.
Updated copyright info.
|
| Revision 1.37 | carlo
| 2000/11/16 17:04:48 | +3 -2
|
This fixes an old bug, reported by <igorlord@alum.mit.edu> at the
beginning of 2000. Possible break points were skipped under
circumstances that did dependant on where a line was broken, resulting
in an alternating output (after subsequent runs of indent).
This was a hard one to find :/
|
| Revision 1.36 | carlo
| 2000/11/12 14:09:47 | +2 -2
|
Fixed the -nlp bug (finally)
|
| Revision 1.35 | carlo
| 2000/10/06 12:10:16 | +3 -3
|
Set the max. comment column to the max. code column if no -lc option
was given. Fixes a compiler warning in io.c.
Patch by John Bridges" <jbridges@netcom.com>
|
| Revision 1.34 | carlo
| 2000/04/02 10:04:13 | +17 -9
|
New options -ut and -nut (--use-tabs, --no-tabs).
Fixed a few bugs and added documentation for these options, starting
of with a patch from Sean Cavanaugh.
From: "Sean Cavanaugh" <sean@dimensionalrift.com>
To: <indent@alinoe.com>
Subject: indent 2.2.5 patch
Date: Sat, 1 Apr 2000 15:31:21 -0800
I recently pulled down indent 2.2.5 and was surprised to find it didn't have
an option to convert tabs to spaces. I've added a command line switch
'-no-tabs' or '-nt' which lets you alter the default behavior.
It is a pretty simple change, and handy for those of us who hate tabs :)
- Sean
|
| Revision 1.33 | carlo
| 2000/03/01 22:36:08 | +4 -1
|
Fixed a bug reported by David Hull <hull@paracel.com>.
|
| Revision 1.32 | carlo
| 2000/02/25 20:37:10 | +11 -11
|
From: "Sayre, Alan N" <Alan.N.Sayre@mcdermott.com>
Subject: indent mods
Date: Tue, 25 Jan 2000 07:36:00 -0600
...
I believe that the tests originated in MSDOS living in a 16-bit world.
Ints are now 32-bit. (The code ran fine with this conditional
removed). A more portable check would be to test the sizeof ints.
...
|
| Revision 1.31 | carlo
| 2000/02/25 19:59:32 | +5 -3
|
Bug fix per suggestion by Igor Lyubashevskiy
|
| Revision 1.30 | carlo
| 2000/02/14 11:14:08 | +1 -10
|
Hm, the DEBUG code should probably be removed, but until then: I fixed it.
|
Filename: lexi.c
|
| Revision 1.26 | carlo
| 2000/11/17 03:01:04 | +91 -116
|
Ran indent through indent, using -gnu -nhnl -l120.
Updated copyright info.
|
| Revision 1.25 | carlo
| 2000/11/15 16:03:33 | +10 -1
|
Treat return types of functions correctly even when they are not
explicitely given with the -T option.
|
| Revision 1.24 | carlo
| 2000/10/10 20:38:05 | +9 -1
|
Eat backslashes of backslash-newline when occuring outside a macro
definition or literal string. Bug report by Alex Cherepanov:
Indent cannot handle trailing '\' outside of the macro
or string. Don't ask me why some programs use it there.
|
| Revision 1.23 | carlo
| 2000/10/06 11:43:50 | +33 -31
|
Move a piece of example code outside a table, otherwise indent gets
confused (when running it on itself).
|
| Revision 1.22 | carlo
| 2000/03/03 15:25:42 | +3 -3
|
Compiler warning bug fix for 64-bit machines.
|
| Revision 1.21 | carlo
| 2000/03/01 23:48:38 | +2 -6
|
Date: Sat, 19 Feb 2000 10:30:17 -0700 (MST)
From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
Subject: indent-2.2.5: a bug, and some compiler warnings
To: indent@alinoe.com
indent-2.2.5 and earlier incorrectly converts
int x = 2LU;
to
int n = 2L U;
causing subsequent compilation failures. Curiously, the equivalent
form 2UL is handled correctly. However, Section 3.1.3.2 of ANSI
X3.159-1989 clearly permits either order of the modifier letters.
|