History log of /freebsd-current/usr.bin/indent/indent.1
Revision Date Author Comments
# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# b5b9eaa9 29-Jun-2023 Dag-Erling Smørgrav <des@FreeBSD.org>

Restore and document -ps / -nps option.

Sponsored by: Klara, Inc.
Reviewed by: pauamma_gundo.com, pstef, kevans
Differential Revision: https://reviews.freebsd.org/D40788


# 3d265fce 09-Oct-2020 Gordon Bergling <gbe@FreeBSD.org>

Fix a few mandoc issues

- skipping paragraph macro: Pp after Sh
- sections out of conventional order: Sh EXAMPLES
- whitespace at end of input line
- normalizing date format


# 7d5b0713 29-Aug-2019 Jason Helfman <jgh@FreeBSD.org>

- address missing whitespace for indent

PR: 239727
Submitted by: gbergling@gmail.com
Reviewed by: 0mp@
MFC after: 1 week


# bb92a28b 10-Jun-2018 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): rename -nsac/-sac ("space after cast") to -ncs/-cs

Also update tests and the manpage.

GNU indent had the option earlier as -cs, let's not diverge unnecessarily.


# d0f86f66 04-Jun-2018 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): add --version option

There exist multi-platform programs that check indent's version in order to
know what they can expect from it. GNU indent provides that via --version,
so implement the same option here.


# aac30b75 03-Jun-2018 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): new option -lpl

With -lpl, code surrounded by parentheses in continuation lines is lined up
even if it would extend past the right margin.

With -nlpl (the default), such a line that would extend past the right
margin is moved left to keep it within the margin, if that does not require
placing it to the left of the prevailing indentation level.

These switches have no effect if -nlp is selected.

Submitted by: Tom Lane


# 50a29760 03-Jun-2018 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): revert introduction of -lpl

That was committed with the wrong message. Will be re-added.


# 971e1c47 03-Jun-2018 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): new option -lpl (always line up to parenthesis)

With -lp, if a line has an opening paren which is not closed on that line,
then continuation lines will be lined up to start at the character position
just after the opening paren.

Submitted by: Tom Lane


# 5834814e 03-Jun-2018 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): manual page corretions

Add missing options, synchronize syntax summary with the actual option list,
and other fixes.

Submitted by: Tom Lane


# 1479f36d 03-Jun-2018 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): remove troff output support

The troff output in indent was invented at Sun and the online documentation
for some post-SunOS operating system includes this:
The usual way to get a troffed listing is with the command
indent -troff program.c | troff -mindent

The indent manual page in FreeBSD 1.0 already lacks that information and
troff -mindent complains about not being able to find the macro file.
It seems that the file did exist on SunOS and was supposed to be imported
into 4.3BSD together with the feature, but that has never happened.

Removal of troff output support simplifies a lot of indent's code.

vgrind(1) seems to be a promising replacement.


# c6841b07 07-Aug-2017 Kyle Evans <kevans@FreeBSD.org>

Respect SIMPLE_BACKUP_SUFFIX environment variable in indent(1)

Instead of using a non-configurable ".BAK" suffix, respect the
SIMPLE_BACKUP_SUFFIX environment variable also used by patch(1). This
simplifies cleanup operations in some patch/indent workflows.

Reviewed by: cem (earlier version), emaste, pstef
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D10921


# fbdbd284 25-Jul-2017 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): add option -tsn for setting tab size.


# 86adac04 02-Jan-2017 Piotr Pawel Stefaniak <pstef@FreeBSD.org>

indent(1): add option -P for loading user-provided files as profiles

Without this change, indent(1) would only look to load options from ~/.indent.pro if it's there and -npro wasn't used on the command line. This option lets the user set their own path to the file.

Approved by: pfg (mentor)
Differential Revision: https://reviews.freebsd.org/D9010


# bde60d75 03-Dec-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

indent(1): remove unneeded comma.

It is not a good practice to start a newline with a comma anyways.

Discussed with: bjk
Differential Revision: https://reviews.freebsd.org/D8690


# 86bd08e9 02-Dec-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

Document undocumented indent(1) options badp/nbadp, bs/nbs, and lc.

Submitted by: Piotr Stefaniak
Differential Revision: https://reviews.freebsd.org/D8690


# 771aff0a 03-Aug-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

indent(1): add new -sac and -U options.

Add -sac (space after cast) and -nsac options.
These control whether space character is put after a cast operator or not.
Default is -nsac.

Add -U option for providing a file containing list of types.
This is needed for properly deciding which asterisks denote unary
operation and which denote binary.

These come from PostgreSQL.

Reference:
https://github.com/pstef/freebsd_indent/commit/84b00e3d46dfd6d955b2f481a1f3b275de9ad6d1
https://github.com/pstef/freebsd_indent/commit/49c52cf383fa2a246a1a22c6640a5a21b0f1fd90

Differential Revision: https://reviews.freebsd.org/D6966 (Partial)
Submitted by: Piotr Stefaniak


# 463a577b 20-Oct-2015 Eitan Adler <eadler@FreeBSD.org>

Fix a ton of speelling errors

arc lint is helpful

Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com
Differential Revision: https://reviews.freebsd.org/D3337


# dda5b397 13-Mar-2014 Eitan Adler <eadler@FreeBSD.org>

multiple: Remove 3rd clause from BSD license where approved by the
regents and renumber.

This patch skips files in contrib/ and crypto/

Acked by: imp
Discussed with: emaste


# 7e700c30 08-Feb-2014 Joel Dahl <joel@FreeBSD.org>

mdoc: minor paragraph fixes.


# 126b754d 25-Mar-2012 Joel Dahl <joel@FreeBSD.org>

Remove superfluous paragraph macro.


# d1b25cd9 03-Mar-2012 Eitan Adler <eadler@FreeBSD.org>

Document the [n]eei and [n]bacc options

PR: docs/165009
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
Approved by: bcr
MFC after: 1 week


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# ce749f10 12-Apr-2010 Andriy Gapon <avg@FreeBSD.org>

MFC r205989: indent(1): new option, -ta, to treat all *_t identifiers as types


# c58c7416 31-Mar-2010 Andriy Gapon <avg@FreeBSD.org>

indent(1): add a new option, -ta, to treat all *_t identifiers as types

Submitted by: Hans Petter Selasky
Discussed with: bde
MFC after: 10 days


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 6fb9b618 30-Jul-2005 Giorgos Keramidas <keramida@FreeBSD.org>

Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.


# 36a142c4 13-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Expand contractions.


# 0227791b 13-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Expand *n't contractions.


# fa5c581c 04-Feb-2005 Ceri Davies <ceri@FreeBSD.org>

Quote example file names consistently, and fix a small grammatical nit.


# d8aa7ce5 03-Feb-2005 Giorgos Keramidas <keramida@FreeBSD.org>

Clarify a bit the BUGS section.

PR: docs/77024
Submitted by: Adrian Filipi <adrian@ubergeeks.com>
Reviewed by: ru


# 557b7fa1 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Deal with double whitespace.


# 6a3e8b0a 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# a6a66662 30-Jun-2004 Jens Schweikhardt <schweikh@FreeBSD.org>

Bump document date.

Submitted by: ru


# 5ac16458 29-Jun-2004 Jens Schweikhardt <schweikh@FreeBSD.org>

Document recently acquired options.

PR: 67983
Submitted by: Chip Norkus <wd@teleri.net>
MFC after: 2 weeks


# fc758906 19-May-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fixed document date.


# a55a608e 12-Feb-2004 Bruce Evans <bde@FreeBSD.org>

Only indent once for continuation lines when not lining up with
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.


# 88ce0e7f 09-Feb-2004 Bruce Evans <bde@FreeBSD.org>

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


# e8937ba0 19-Apr-2002 Philippe Charnier <charnier@FreeBSD.org>

Use `The .Nm utility'


# f247324d 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# 62500372 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 1261f234 09-Dec-2000 David E. O'Brien <obrien@FreeBSD.org>

The options I added where not formated to new manpage style specs.


# a5e1cac0 09-Dec-2000 David E. O'Brien <obrien@FreeBSD.org>

"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


# 8fe908ef 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# 726b61ab 10-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

Avoid use of direct troff requests in mdoc(7) manual pages.


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 3be5f1f5 12-Jul-1999 Nik Clayton <nik@FreeBSD.org>

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


# 5b9513b2 23-Oct-1997 Tim Vanderhoek <hoek@FreeBSD.org>

Change defaults to match reality.

PR: docs/3817


# 958d7c9f 15-Jul-1997 Philippe Charnier <charnier@FreeBSD.org>

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


# 287c7db4 28-Jun-1997 Steve Price <steve@FreeBSD.org>

Some minor cosmetic tweaks.

PR: docs/3941
Partially submitted by: uenami@imasy.or.jp


# ad5123aa 23-Oct-1996 Marc G. Fournier <scrappy@FreeBSD.org>

Fix description of -cli option so that it comes out as -cli0.5 instead of
-cli0 -.5

Submitted by: Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>


# 270d3d75 20-Jan-1996 Mike Pritchard <mpp@FreeBSD.org>

Fix a variety of minor typos and cross references in a bunch of
man pages.

Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Giles Lean <giles@nemeton.com.au>
<soda@sra.co.jp>


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources