Commit Graph

21 Commits

Author SHA1 Message Date
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
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
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
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
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
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00