[Webkit-unassigned] [Bug 17807] New: CSSPropertyNames.h should be generated as C source

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 12 14:16:06 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=17807

           Summary: CSSPropertyNames.h should be generated as C source
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mark at moxienet.com


CSSPropertyNames.h, built by WebCore/css/makeprop.pl, should be generated as C
source.  makeprop.pl also generates CSSPropertyNames.c, which includes
CSSPropertyNames.h, and the use of a C++ism in CSSPropertyNames.h will cause
compilation to fail if the .c file is, as its extension implies, built as
straight C source.

The problem is that the generated CSSPropertyNames.h file uses "enum
CSSPropertyID", but CSSPropertyNames.c references it as "CSSPropertyID" without
the enum.  In C++, this is valid, but in C, it is not valid without a typedef.

Using a typedef in the .h file would allow the enum to be accessed consistently
by C and C++ source.  Alternatively, the .c file should be changed to reference
CSSPropertyID as "enum CSSPropertyID".


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list