summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/io.c
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes for usr.bin/uqs2011-12-301-1/+1
|
* In usr.bin/indent/io.c, fix a few warnings about format strings not being ↵dim2011-12-171-2/+2
| | | | | | literals. MFC after: 1 week
* 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-5/+7
| | | | | | | | | | | 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
* Only indent once for continuation lines when not lining up withbde2004-02-121-1/+2
| | | | | | | | | | | | | | 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.
* err() on allocation failure. WARNS=9 compliantcharnier2003-06-151-4/+5
| | | | | use #if 0, #ifndef lint, #endif /* not lint */, #endif ordering when a message is provided, use errx() instead of err().
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Remove deprecated register qualifier.jmallett2002-06-241-20/+20
|
* 1) Const enough things to avoid warnings.dwmalone2002-03-301-7/+7
| | | | | | | | 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-41/+75
| | | | | | | | | | | | | | - 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
* 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
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Clean up some ambiguous nested if/elses.billf1999-07-041-3/+5
|
* Use err(3) instead of local redefinition. Add usage().charnier1997-07-151-4/+8
|
* Remove trailing whitespace.rgrimes1995-05-301-26/+26
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+625
OpenPOWER on IntegriCloud