summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/args.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a buffer overflow by using strncpy() instead of strcpy().das2004-09-191-4/+4
| | | | | | Also, use strdup() instead of malloc()/strcpy(). PR: 64164
* Fix problems with non-8 space tabs. New options for functionschweikh2004-06-271-0/+4
| | | | | | | | | | | 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
* Support C-style comments in profile.des2004-03-211-3/+18
|
* 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-3/+6
| | | | | 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-7/+7
|
* 1) Const enough things to avoid warnings.dwmalone2002-03-301-4/+4
| | | | | | | | 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-77/+80
| | | | | | | | | | | | | | - 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
|
* "Implement -[n]fcb (formatting of block comments) and attempt to implementobrien2000-12-091-0/+2
| | | | | | | 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
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use err(3) instead of local redefinition. Add usage().charnier1997-07-151-12/+10
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+300
OpenPOWER on IntegriCloud