Home | History | Annotate | only in /src/usr.bin/unifdef
History log of /src/usr.bin/unifdef
RevisionDateAuthorComments
 1.8 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.7 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.6 01-Aug-2003  lukem branches: 1.6.98;
Use SCRIPTS=unifdefall.sh instead of SCRIPTS=unifdefall,
as the latter causes the .sh: rule in <sys.mk> to be used, which
leaves unifdefall in the .OBJDIR unless a CLEANFILES rule is added.
 1.5 30-Jul-2003  itojun unifdefall is available.
 1.4 30-Jul-2003  itojun ANSI C support, from http://dotat.at/prog/misc/
PR 22303
 1.3 07-Dec-1994  jtc Merged with 4.4lite.
Changed to conform to NetBSD's new RCS ID convention.
 1.2 30-Jul-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.6.98.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2 16-Jan-2010  christos - we don't need stdbool.h anymore.
- the previous fix for the negative index logic was wrong, fix it.
 1.1 30-Jul-2003  itojun forgot to add
 1.13 03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.12 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.11 11-Nov-2003  wiz Sort sections and other fixes.
 1.10 08-Oct-2003  wiz Remove space that broke page. From Nicolas Joly in PR 23082.
 1.9 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.8 30-Jul-2003  itojun ANSI C support, from http://dotat.at/prog/misc/
PR 22303
 1.7 08-Dec-2001  wiz Sort sections.
 1.6 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.5 20-Oct-1997  lukem WARNSify, fix .Nm usage, KNFify
 1.4 07-Dec-1994  jtc Merged with 4.4lite.
Changed to conform to NetBSD's new RCS ID convention.
 1.3 01-Apr-1994  cgd add semicolon as suggested by Mark Weaver.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 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.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
 1.1 30-Jul-2003  itojun ANSI C support, from http://dotat.at/prog/misc/
PR 22303

RSS XML Feed