History log of /freebsd-10.0-release/usr.bin/indent/indent.c
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


# 228992 30-Dec-2011 uqs

Spelling fixes for usr.bin/


# 211132 10-Aug-2010 kevlo

Use NULL instead of 0 when setting up pointer.


# 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)


# 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.


# 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


# 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.


# 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.


# 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


# 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 24-Dec-2000 obrien

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

Requested by: bde


# 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


# 62894 10-Jul-2000 kris

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


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48566 04-Jul-1999 billf

Clean up some ambiguous nested if/elses.


# 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


# 27419 15-Jul-1997 charnier

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


# 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.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources