summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/indent.c
Commit message (Collapse)AuthorAgeFilesLines
* initialize variable (WARNS=6)charnier2006-09-131-0/+1
|
* Declare find_err in indent_globs.h where the other shared variablesdwmalone2005-11-131-2/+0
| | | | live rather than listing it as an extern in indent.c.
* Fix problems with non-8 space tabs. New options for functionschweikh2004-06-271-9/+29
| | | | | | | | | | | 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
* Added an option -ldi<N> to control indentation of local variable names.bde2004-02-091-2/+14
| | | | | | | | | | | | 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>.
* Only use tabs to indent variable names if the declaration indent isbde2004-02-091-8/+8
| | | | | | | | 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.
* Backed out a part of previous commit that wasn;t mentioned in the logbde2004-02-091-2/+1
| | | | | message and wasn't quite ready (it avoided indenting the names of local variables).
* Fixed tab lossage in indented variable names. The -diN option wasbde2004-02-091-6/+22
| | | | | | | 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.
* err() on allocation failure. WARNS=9 compliantcharnier2003-06-151-9/+19
| | | | | use #if 0, #ifndef lint, #endif /* not lint */, #endif ordering when a message is provided, use errx() instead of err().
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-3/+3
| | | | especially in troff files.
* Spellingcharnier2002-10-161-3/+3
|
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Remove deprecated register qualifier.jmallett2002-06-241-4/+4
|
* 1) Const enough things to avoid warnings.dwmalone2002-03-301-8/+8
| | | | | | | | 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.
* Make this compile cleanly when warnings are enabled:schweikh2001-10-281-44/+38
| | | | | | | | | | | | | | - 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
* Fix indent endless on garbage input (i.e., if it encountered EOF whileobrien2001-02-271-1/+1
| | | | | | waiting for a '}' nesting terminator) Obtained from: OpenBSD rev 1.8
* Preceed/preceeding are not english words. Use precede and preceding.asmodai2001-02-181-1/+1
|
* Don't abuse the SCCS `@(#)' for RCS.obrien2000-12-251-1/+1
| | | | Requested by: bde
* Add or fix FreeBSD IDs.obrien2000-12-091-1/+1
|
* "Implement -[n]fcb (formatting of block comments) and attempt to implementobrien2000-12-091-2/+4
| | | | | | | 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
* Don't call err() with no format string.kris2000-07-101-7/+7
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Clean up some ambiguous nested if/elses.billf1999-07-041-4/+4
|
* PR: 7583thepish1998-10-181-4/+4
| | | | | Submitted by: Dave Glowacki <dglo@SSEC.WISC.EDU> Support input via stdin if no input file name specified explicitly
* Use err(3) instead of local redefinition. Add usage().charnier1997-07-151-24/+25
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+1181
OpenPOWER on IntegriCloud