Home | History | Annotate | Download | only in unifdef
History log of /src/usr.bin/unifdef/unifdef.c
RevisionDateAuthorComments
 1.22  13-Oct-2012  christos PR/47068: unifdef(1) with cpp directive on last line without newline
Remove bogus test; if there is no newline, the state does not change.
 1.21  29-Feb-2012  joerg branches: 1.21.2;
Pointer differences are generally not integers, so use %td here.
 1.20  16-Sep-2011  joerg branches: 1.20.2; 1.20.4;
Use __dead
 1.19  20-Jan-2011  ginsbach - Fix an incorrect comparison (always true)
This created an unnecessary temporary file when using the -o option
to create a new file.

- Fix -o option bug reported by Tony Finch
The output file was incorrectly called "[stdin]" when overwriting
the the input file via standard in (unifdef -o file < file).
 1.18  28-Jan-2010  mbalmer branches: 1.18.2;
fix language
 1.17  20-Jan-2010  ginsbach - Fix bug where -o outfile fails when outfile does not exist. Pointed
out by Tony Finch.
 1.16  16-Jan-2010  christos - we don't need stdbool.h anymore.
- the previous fix for the negative index logic was wrong, fix it.
 1.15  13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.14  11-Jun-2009  ginsbach Add -o output option, which can be used to specify an output file. The
file can even be the same as the input file. Idea from IRIX unifdef(1).
 1.13  30-Apr-2006  christos Coverity CID 1206: Confusion between && and || leads to indexing an array
with negative index.
 1.12  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.11  30-Jul-2003  itojun ANSI C support, from http://dotat.at/prog/misc/
PR 22303
 1.10  04-Jul-2003  itojun another fix against unreadable indentation
 1.9  04-Jul-2003  itojun fix unreadable indentation
 1.8  03-Jul-2000  matt Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
 1.7  19-Dec-1998  christos char -> unsigned char
 1.6  08-Oct-1998  wsanchez Didn't get along with ObjC/C++ style "//" comments. Add code to deal with that.
 1.5  20-Oct-1997  lukem WARNSify, fix .Nm usage, KNFify
 1.4  20-Dec-1994  jtc gcc -Wall cleanup by jimj and myself
 1.3  07-Dec-1994  jtc Merged with 4.4lite.
Changed to conform to NetBSD's new RCS ID convention.
 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  07-Dec-1994  jtc imported from 4.4lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.18.2.1  08-Feb-2011  bouyer Sync with HEAD
 1.20.4.1  05-Mar-2012  sborrill Pull up the following revisions(s) (requested by joerg in ticket #75):
usr.sbin/cpuctl/arch/i386.c: revision 1.28
usr.bin/unifdef/unifdef.c: revision 1.21
usr.bin/ktruss/dump.c: revision 1.40
usr.bin/error/error.h: revision 1.19
usr.bin/error/touch.c: revision 1.27
libexec/httpd/dir-index-bozo.c: revision 1.14
games/dab/algor.cc: revision 1.5
games/dab/board.h: revision 1.4
dist/pf/sbin/pflogd/pflogd.c: revision 1.9
dist/pf/sbin/pflogd/pflogd.h: revision 1.5

Fix various format string mismatches
 1.20.2.2  30-Oct-2012  yamt sync with head
 1.20.2.1  17-Apr-2012  yamt sync with head
 1.21.2.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC

RSS XML Feed