Commit Graph

33 Commits

Author SHA1 Message Date
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
christos 83d4b28a8e 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.
2012-10-13 18:26:03 +00:00
joerg eb085c765d Pointer differences are generally not integers, so use %td here. 2012-02-29 23:35:10 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
ginsbach b4abf20d50 - 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).
2011-01-20 15:24:24 +00:00
mbalmer 0f58fac97e fix language 2010-01-28 14:12:11 +00:00
ginsbach 2dfe7f3174 - Fix bug where -o outfile fails when outfile does not exist. Pointed
out by Tony Finch.
2010-01-20 19:02:42 +00:00
christos a6b956aa6c - we don't need stdbool.h anymore.
- the previous fix for the negative index logic was wrong, fix it.
2010-01-16 21:26:59 +00:00
roy 7027866a09 Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
2009-07-13 19:05:39 +00:00
ginsbach 2248a77687 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).
2009-06-11 03:16:34 +00:00
christos f5c3fa40c3 Coverity CID 1206: Confusion between && and || leads to indexing an array
with negative index.
2006-04-30 23:56:42 +00:00
wiz 234b8c45e9 Sort sections and other fixes. 2003-11-11 13:48:50 +00:00
wiz 618a3a6591 Remove space that broke page. From Nicolas Joly in PR 23082. 2003-10-08 07:43:55 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
lukem 46261912cf 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.
2003-08-01 11:51:14 +00:00
itojun ca9ee227bb forgot to add 2003-07-30 08:53:50 +00:00
itojun a788826020 unifdefall is available. 2003-07-30 08:24:11 +00:00
itojun 7c02fa33c0 ANSI C support, from http://dotat.at/prog/misc/
PR 22303
2003-07-30 08:21:46 +00:00
itojun 076786421e another fix against unreadable indentation 2003-07-04 04:26:47 +00:00
itojun 2b3103a077 fix unreadable indentation 2003-07-04 04:20:05 +00:00
wiz 1c9dacf400 Sort sections. 2001-12-08 19:19:41 +00:00
matt fcd0fb118f 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
2000-07-03 02:51:12 +00:00
garbled 9e44e9b578 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.
1999-03-22 18:16:34 +00:00
christos ad5d7c5f6d char -> unsigned char 1998-12-19 23:22:51 +00:00
wsanchez 1696358aa0 Didn't get along with ObjC/C++ style "//" comments. Add code to deal with that. 1998-10-08 01:31:59 +00:00
lukem 8d32174590 WARNSify, fix .Nm usage, KNFify 1997-10-20 02:23:13 +00:00
jtc 5de9660433 gcc -Wall cleanup by jimj and myself 1994-12-20 01:44:07 +00:00
jtc 55ad6872f5 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS ID convention.
1994-12-07 00:33:47 +00:00
cgd f006d09efa add semicolon as suggested by Mark Weaver. 1994-04-01 08:58:45 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 75ff3a90bd Add RCS identifiers. 1993-07-30 23:49:23 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00