[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH] kdevelop broken in pascal because of TRUE/FALSE defines
From: Benjamin Reed <ranger () befunk ! com>
Date: 2003-11-22 18:26:32
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
When trying to build kdevelop languages/pascal errors out with stuff
like this:
---(snip!)---
In file included from PascalLexer.hpp:24,
from PascalLexer.cpp:2:
PascalTokenTypes.hpp:136: error: parse error before numeric constant
PascalTokenTypes.hpp:195: error: missing ';' before right brace
PascalTokenTypes.hpp:196: error: parse error before `}' token
---(snip!)---
The problem is that PascalTokenTypes.hpp has "TRUE" and "FALSE" as
values in the struct, but some header previously included ends up
defining them for use as booleans.
The fix for me was the attached patch, to force things with those
structs to be included first. Then it compiles right, because the
headers haven't gotten polluted yet, but it seems kind of hackish to do
it this way, I'm not sure if there's a better way to do so.
--
Benjamin Reed a.k.a. Ranger Rick -- http://ranger.befunk.com/
gpg: 6401 D02A A35F 55E9 D7DD 71C5 52EF A366 D3F6 65FE
"You CAN'T clean the toilet, Neil, it'll lose all it's character!"
-- Vyvyan
["kdevelop-pascal.patch" (application/octet-stream)]
[Attachment #8 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic