summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/indent_globs.h
Commit message (Collapse)AuthorAgeFilesLines
* Declare find_err in indent_globs.h where the other shared variablesdwmalone2005-11-131-0/+1
| | | | live rather than listing it as an extern in indent.c.
* Fix problems with non-8 space tabs. New options for functionschweikh2004-06-271-1/+5
| | | | | | | | | | | 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-0/+1
| | | | | | | | | | | | 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>.
* err() on allocation failure. WARNS=9 compliantcharnier2003-06-151-0/+8
| | | | | use #if 0, #ifndef lint, #endif /* not lint */, #endif ordering when a message is provided, use errx() instead of err().
* Spellingcharnier2002-10-161-2/+2
|
* Remove deprecated register qualifier.jmallett2002-06-241-4/+4
|
* 1) Const enough things to avoid warnings.dwmalone2002-03-301-1/+1
| | | | | | | | 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-2/+2
| | | | | | | | | | | | | | - 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
* "Implement -[n]fcb (formatting of block comments) and attempt to implementobrien2000-12-091-0/+3
| | | | | | | 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 depend on the fact that variables default to int.billf1999-09-061-4/+4
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+310
OpenPOWER on IntegriCloud