NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/42628: unifdef is broken

>Number:         42628
>Category:       bin
>Synopsis:       unifdef is broken
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 16 19:00:00 +0000 2010
>Originator:     David Young
>Release:        NetBSD 5.99.23
David Young             OJC Technologies      Urbana, IL * (217) 278-3933
System: NetBSD 5.99.23 NetBSD 5.99.23 (GENERIC) #15: Thu 
Jan 7 18:46:33 CST 2010
Architecture: i386
Machine: i386
unifdef -Usym is not removing lines bracketed
by #if defined(sym)/#endif.
Try this:

unifdef -U__FreeBSD__ <<EOF
#if defined(__FreeBSD__)
#include <netinet/if_fddi.h>
#include <net/if_fddi.h>

The output is the same as the input:

#if defined(__FreeBSD__)
#include <netinet/if_fddi.h>
#include <net/if_fddi.h>

Ditto the output of unifdef -U __FreeBSD__ (i.e., with a space between
the -U and its argument).


Home | Main Index | Thread Index | Old Index