Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
On Wed, 01 Aug 2007 14:45:01 +0900, Bulat Ziganshin <bulat.ziganshin@...> wrote:
> great, it's all what i need. but i'm still curious about other
> features enabled when building this package. can i see
> config.gcc or build.cfg or setup.h or any other file that shows
> feature list? also it will be useful to include such file with the next
> builds of wxHaskell
You mean you want to see that imformation any time? e.g. Do you
allow to check it in run time?
Or yow want to check it compile time?
If you want to see it in run time, wxHaskell has isDefined.
isDefined shows that macro is defined.
Prelude Graphics.UI.WXCore.WxcClassesAL> isDefined "wxUSE_STC"
Prelude Graphics.UI.WXCore.WxcClassesAL> isDefined "wxUSE_SOUND"
Prelude Graphics.UI.WXCore.WxcClassesAL> isDefined "wxUSE_WAVE"
Prelude Graphics.UI.WXCore.WxcClassesAL> isDefined "wxUSE_GLCANVAS"
And isDefined "wxUSE_**" returns Ture, if wxWidgets support this
feature. So we can get feature list by wrapper function.
But unfortunately, isDefined is accidentally broken on current darcs
version by Unicode Support. So, I'm cc-ing this mail to wxhaskell
and send patch for this problem. (I think we have more hiding
problems by supporting unicode.)
And a few bad behavior is also fixed by this patch. Because some
WXCore's functions depends on Graphics.UI.WXCore.Defines.wxToolkit
that used isDefined internally.
If you want to see feature list in compile time, it's not easy task.
Because wxc library doesn't depend on configuring wxHaskell build
So we must generate this imformation by wxHaskell application.
But ... if we generate imformation by wxHaskell application, we
have to build wxHaskell twice.
Anyway statically checking is useful to rework wxColour_GetPixel,
so I want to find good solution for it.
shelarcy <shelarcy hotmail.co.jp>
> But unfortunately, isDefined is accidentally broken on current darcs
> version by Unicode Support. So, I'm cc-ing this mail to wxhaskell
> and send patch for this problem.
Looks good. Going in.
> (I think we have more hiding problems by supporting unicode.)
I would not be surprised. Any ideas how we could flush them out? Is
the little sample unicode-tester app any help? Could it be extended,
made more useful/systematic?
Eric Kow http://www.loria.fr/~kow
PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais.