History log of /freebsd-10.0-release/usr.bin/indent/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


249657 19-Apr-2013 ed

Add the Clang specific -Wmissing-variable-declarations to WARNS=6.

This compiler flag enforces that that people either mark variables
static or use an external declarations for the variable, similar to how
-Wmissing-prototypes works for functions.

Due to the fact that Yacc/Lex generate code that cannot trivially be
changed to not warn because of this (lots of yy* variables), add a
NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this
specific compiler warning.

Announced on: toolchain@


244578 22-Dec-2012 andrew

Make struct fstate aligned to the same as an int as its pointer is cast to
an int pointer in args.c. This fixes an issue with ARM where the struct
will be byte aligned but an int pointer must be 4 byte aligned.


233456 25-Mar-2012 joel

Remove superfluous paragraph macro.


232471 03-Mar-2012 eadler

Document the [n]eei and [n]bacc options

PR: docs/165009
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
Approved by: bcr
MFC after: 1 week


228992 30-Dec-2011 uqs

Spelling fixes for usr.bin/


228639 17-Dec-2011 dim

In usr.bin/indent/io.c, fix a few warnings about format strings not being literals.

MFC after: 1 week


211132 10-Aug-2010 kevlo

Use NULL instead of 0 when setting up pointer.


206687 15-Apr-2010 avg

indent(1): don't treat bare '_t' as a type name when -ta is used

It seems that identifier "_t" is sometimes used as a variable name,
even in our tree. Not that I endorse that, but still it's better
to require at least one character before _t suffix to consider
an identifier to be a type name.

Reported by: Alex Vasylenko <lxv@omut.org>
MFC after: 1 week


205989 31-Mar-2010 avg

indent(1): add a new option, -ta, to treat all *_t identifiers as types

Submitted by: Hans Petter Selasky
Discussed with: bde
MFC after: 10 days


205988 31-Mar-2010 avg

indent(1): correctly handle case/label at the very start of a function

Obtained from: NetBSD (rev. 1.11 of indent.c)
MFC after: 1 week


162264 13-Sep-2006 charnier

initialize variable (WARNS=6)


152635 20-Nov-2005 dds

Use the appropriate error function for displaying the error,
instead of printing it to stdout.

MFC after: 1 week


152395 13-Nov-2005 dwmalone

Declare find_err in indent_globs.h where the other shared variables
live rather than listing it as an extern in indent.c.


148580 31-Jul-2005 keramida

Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.


141851 13-Feb-2005 ru

Expand contractions.


141846 13-Feb-2005 ru

Expand *n't contractions.


141266 04-Feb-2005 ceri

Quote example file names consistently, and fix a small grammatical nit.


141213 03-Feb-2005 keramida

Clarify a bit the BUGS section.

PR: docs/77024
Submitted by: Adrian Filipi <adrian@ubergeeks.com>
Reviewed by: ru


135477 19-Sep-2004 das

Fix a buffer overflow by using strncpy() instead of strcpy().
Also, use strdup() instead of malloc()/strcpy().

PR: 64164


131507 03-Jul-2004 ru

Deal with double whitespace.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


131363 30-Jun-2004 schweikh

Bump document date.

Submitted by: ru


131278 29-Jun-2004 schweikh

Document recently acquired options.

PR: 67983
Submitted by: Chip Norkus <wd@teleri.net>
MFC after: 2 weeks


131184 27-Jun-2004 schweikh

Fix problems with non-8 space tabs. New options for function
declarations with the opening brace on the same line as the declaration
of arguments all spaces and no tabs (a feature which exists in GNU's
indent). Man page update to follow RSN.

PR: bin/67983
Submitted by: Chip Norkus <wd@teleri.net>
Style guidance and bug for bug compatibility by: bde
MFC after: 2 weeks


129429 19-May-2004 ru

Fixed document date.


127256 21-Mar-2004 des

Support C-style comments in profile.


125736 12-Feb-2004 bde

Only indent once for continuation lines when not lining up with
parentheses if the continuation indent is exactly half of the main
indent. Indenting one contination indent for every level of
parentheses gives bad results in most cases and is not what is done
in about 90% of properly hand-formatted KNF code (sys/kern/*.c,
nvi/common/*.c). The main advantage of the non-default KNF options
-nlp -ci4 is that continuation lines don't accidentally line up with
the next main indentation level or march to the right, and increasing
their indentation defeats this.

This behaviour change is limited to when the continuation indent is
exactly half of the main indent to avoid adding yet another option.


125633 09-Feb-2004 bde

Added an option -ldi<N> to control indentation of local variable names.
The default is to be backwards compatible and non-KNF (use the same
indentation for locals as for globals; -ldi0 gives KNF indentation
for locals (none)). The indentation for globals also applies to struct
member names in local declatations. The indentation of variable names
in multi-line declarations is broken in various ways and this commit
gives some new variations.

indent.1:
Also clarified the description of -di<N>.


125631 09-Feb-2004 bde

Only use tabs to indent variable names if the declaration indent is
nonzero (so that the 1-char indentation given by -di0 is never rendered
by a tab).

Removed garbage commented out code for setting the indentation of variable
names.


125629 09-Feb-2004 bde

Backed out a part of previous commit that wasn;t mentioned in the log
message and wasn't quite ready (it avoided indenting the names of local
variables).


125624 09-Feb-2004 bde

Fixed tab lossage in indented variable names. The -diN option was
worse than useless because it caused things like mangling of
"^int\tfoo" to "int foo" (this for N = 8). This quick fix breaks
the invariant that characters between s_code and e_code have width 1,
but nothing seems to depend on this.


125623 09-Feb-2004 bde

Fixed misformatting of "struct foo *bar" in function parameter lists. It
was mangled to "struct foo * bar". There should be an option to control
this, but no space is normal. This finishes fixing the bugs in rev.1.4.

indent(1) still doesn't really understand types in parameter lists. It
thinks keywords inside parentheses are for casts or sizeofs. This works
accidentally for scalar types and this quick fix makes it work similarly
but not so accidentally for struct/union/enum types.


125619 09-Feb-2004 bde

Expanded the size of the keyword table from 100 to 1000 entries so that
the number of typedef-names is not so limited. Same as in rev.1.4.

Added the "const" and "volatile" to the keyword table. Rev.1.4 added
these but they were misclassified so they were not formatted as types.
indent still doesn't really understand them. E.g., it mangles
"char * const *foo" and "char *const *foo". This change mainly stops
it mangling "char const foo" to "char<declaration-indent>const foo".


125618 09-Feb-2004 bde

Backed out rev.1.4 and 1.7 so they they can be implemented and committed
properly. Of the 3 changes mentioned in the log message for rev.1.4,
the first (implementing -[n]fcb) was correct but didn't touch this
file, the second (no-space-after-sizeof) was not actually done (it is
the default and is controlled by the undcoumented -[n]bs options), and
the third (no-space-after 'struct foo *') was very buggy and was reduced
to wrong comments and other style bugs by backing out the main part
of it in rev.1.6. Rev.1.4 had 2 changes which were not mentioned in
its commit log: expand specials[] so that more than -83 typedef-names
can be specified (this was the one working change in rev.1.4), and add
"const" and "volatile" to specials[] (this was buggy).


116390 15-Jun-2003 charnier

err() on allocation failure. WARNS=9 compliant
use #if 0, #ifndef lint, #endif /* not lint */, #endif ordering
when a message is provided, use errx() instead of err().


108533 01-Jan-2003 schweikh

Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.


105244 16-Oct-2002 charnier

Spelling


99112 30-Jun-2002 obrien

Consistently use FBSDID


98771 24-Jun-2002 jmallett

Remove deprecated register qualifier.


95124 20-Apr-2002 charnier

Use `The .Nm utility'


93440 30-Mar-2002 dwmalone

1) Const enough things to avoid warnings.
2) Cast ifdef_level to a size_t before comparing it to a ratio of size_ts.
Ifdef_level should always be positive.
3) Complete prototype for chfont.
4) Cast some ptrdiff_ts to ints before using as a field width.
5) Avoid shadowing a local variable p with another local variable p.


85632 28-Oct-2001 schweikh

Make this compile cleanly when warnings are enabled:
- ANSIfy function declarations
- braces around initializers structs within structs
- add parens in complicated expressions
- disambiguate dangling elses
- no more implicit int
- make functions static where possible
- use prototypes
- don't use varargs hack for diag()

Requested by: joerg
MFC after: 2 weeks


85182 19-Oct-2001 schweikh

Properly handle backslash newline within an identifier or keyword.

PR: bin/6015
Submitted by: myself (schweikh)
Patch by: Alexey V.Neyman <alex.neyman@auriga.ru>
Tested by: indenting my chess problem solver and running its test suite
MFC after: 3 weeks


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


75727 20-Apr-2001 obrien

Fix damage I did in rev 1.4 that broke formatting this example:

void foo(struct bar *bar) { return 0; }


73175 27-Feb-2001 obrien

Fix indent endless on garbage input (i.e., if it encountered EOF while
waiting for a '}' nesting terminator)

Obtained from: OpenBSD rev 1.8


72645 18-Feb-2001 asmodai

Preceed/preceeding are not english words. Use precede and preceding.


70342 25-Dec-2000 obrien

Don't abuse the SCCS `@(#)' for RCS.

Requested by: bde


69803 09-Dec-2000 obrien

The options I added where not formated to new manpage style specs.


69796 09-Dec-2000 obrien

Add or fix FreeBSD IDs.


69795 09-Dec-2000 obrien

"Implement -[n]fcb (formatting of block comments) and attempt to implement
no-space=after-sizeof (not optional) and no-space-after 'struct foo *'
(not optional). Without these, indent unKNFizes even more perfectly KNF code."

Submitted by: bde


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


62894 10-Jul-2000 kris

Don't call err() with no format string.


51035 06-Sep-1999 billf

Don't depend on the fact that variables default to int.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48792 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


48566 04-Jul-1999 billf

Clean up some ambiguous nested if/elses.


47361 21-May-1999 rnordier

Improve handling of "do ... while" following "else". This change
eliminates some incorrect "Unmatched 'else'" errors.


40502 18-Oct-1998 thepish

PR: 7583
Submitted by: Dave Glowacki <dglo@SSEC.WISC.EDU>
Support input via stdin if no input file name specified explicitly


36211 19-May-1998 rnordier

Support integer constant unsigned-suffix and long-long-suffix.


30680 24-Oct-1997 hoek

Change defaults to match reality.

PR: docs/3817


27419 15-Jul-1997 charnier

Use err(3) instead of local redefinition. Add usage().


27037 28-Jun-1997 steve

Some minor cosmetic tweaks.

PR: docs/3941
Partially submitted by: uenami@imasy.or.jp


19121 23-Oct-1996 scrappy

Fix description of -cli option so that it comes out as -cli0.5 instead of
-cli0 -.5

Submitted by: Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>


13511 20-Jan-1996 mpp

Fix a variety of minor typos and cross references in a bunch of
man pages.

Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Giles Lean <giles@nemeton.com.au>
<soda@sra.co.jp>


8874 30-May-1995 rgrimes

Remove trailing whitespace.


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.