Home | History | Annotate | Download | only in fmt
History log of /src/usr.bin/fmt/fmt.c
RevisionDateAuthorComments
 1.33  13-Oct-2017  christos Wse wide functions to avoid file corruption. Q+D because it does not
use wcwidth().
 1.32  30-Jun-2012  christos add -w as an alias to -m
 1.31  21-Jul-2008  lukem branches: 1.31.2;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.30  13-Apr-2008  dholland branches: 1.30.4;
Remove insane centering code (that broke on strings of length 1) and
replace it with sane centering code. Fixes PR bin/38209, although with
a different patch.
 1.29  09-Mar-2008  christos PR/38207: Aleksej Saushev: fmt reports non-existing files erroneously
 1.28  15-Dec-2007  perry branches: 1.28.2;
convert __attribute__s to applicable cdefs.h macros
 1.27  03-Jun-2007  christos branches: 1.27.4;
make sure we have args before we try to parse numbers in the compat argument
parsing. From Gary Duzan
 1.26  29-May-2007  christos - getopt parsing
- add raw mode [-r]
- add -g and -m to get the goal and max respectively.
- document that lines that start with a period or look like mail headers
don't get formatted.
 1.25  15-Jan-2006  christos fix trailing blank munging.
 1.24  15-Jan-2006  christos revert the line calculation as it used to be pre-buffer changes.
 1.23  05-Jan-2006  christos more casts to void
 1.22  04-Jan-2006  christos fix problem introduced when the computation was changed to unsigned. If
we've exceeded the goal length already the negative number turned into
a large positive one...
 1.21  16-Dec-2005  christos use putchar consistently.
 1.20  15-Dec-2005  christos small cleanups from seebs...
 1.19  15-Dec-2005  christos PR/32305: seebs: Eliminate buffer overflows and simplify code by using
dynamically allocated buffers.
 1.18  30-Oct-2004  dsl Add (unsigned char) cast to ctype functions
 1.17  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.16  02-Mar-2002  wiz ANSIfy, minor KNF.
 1.15  02-Oct-2000  abs Tweak last to only allow highbit characters >=160, to avoid issues with
characters 128 + 0..31
 1.14  02-Oct-2000  abs Do not strip highbit characters.
 1.13  18-Sep-2000  abs Switch centre to -C from -c. Now different from FreeBSD, but avoids conflict
with Solaris, Linux and others.
 1.12  15-Sep-2000  abs Add '-c' for center (from FreeBSD)
 1.11  02-Nov-1999  jwise GC savestr() function. Makes this build again on i386 (this hadn't been used
for a while, but showed up due to recent static poisoning.) Note that although
fmt.c builds against ../mail/head.c, this function never actually gets used.
 1.10  02-Nov-1999  jdolecek process correctly whole line even when it's longer than BUFSIZ characters -
previously, all characters of a line after the first BUFSIZ characters
were just trimmed
while here, do some const & static poisoning
 1.9  19-Dec-1998  christos branches: 1.9.2; 1.9.4;
char -> unsigned char
 1.8  12-Feb-1998  ross abs() numeric parameters to allow portable invocations in scripts.
 1.7  18-Oct-1997  lukem s/index/strchr
 1.6  18-Oct-1997  lukem WARNSify, fix .Nm usage
 1.5  31-May-1997  kleink Determine characters to be swallowed by means of locale and ctype.
This addresses PR/3693 from Jaromir Dolecek <dolecek@moria.ics.muni.cz> but
does not really fix it, as the new ctype package has yet to be integrated.
 1.4  01-Sep-1995  jtc Sync with 4.4lite2
 1.3  24-Dec-1994  cgd pull in stdlib.h and string.h, kill unnecessary declaration.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  01-Sep-1995  jtc imported from 44lite2
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.2.1  05-Nov-1999  cgd pull up revs 1.10-1.11 from trunk (requested by jdolecek):
Process lines longer than BUFSIZ characters correctly.
 1.27.4.2  23-Mar-2008  matt sync with HEAD
 1.27.4.1  09-Jan-2008  matt sync with HEAD
 1.28.2.1  24-Mar-2008  keiichi sync with head.
 1.30.4.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.31.2.1  30-Oct-2012  yamt sync with head

RSS XML Feed