#defines `reg' as `register', against all rules of common sense
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jwise@unicast.com>
List: netbsd-bugs
Date: 12/27/1998 15:26:58
Note: There was a bad value `mediu' for the field `>Priority:'.
It was set to the default value of `medium'.
>Number: 6662
>Category: lib
>Synopsis: <curses.h> #defines `reg' as `register', against all rules of common sense
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 27 16:50:01 1998
>Last-Modified:
>Originator: Jim Wise
>Organization:
Jim Wise
jwise@unicast.com
>Release: -current of November 23
>Environment:
System: NetBSD hithlum.unicast.com 1.3I NetBSD 1.3I (HITHLUM) #4: Mon Dec 21 15:03:31 EST 1998 jwise@hithlum.unicast.com:/home/src/sys/arch/i386/compile/HITHLUM i386
>Description:
Against all common sense, <curses.h> includes the line
#define reg register
This is _not_ used within curses.h itself, and breaks any program which
uses reg as a variable name, or otherwise.
>How-To-Repeat:
Try to build a program with a variable named `reg', in this case xwpe-1.5.13a
>Fix:
Nuke this line, make sure nothing obscurely depends on it...
>Audit-Trail:
>Unformatted: