Hello Bulat, On Wed, 01 Aug 2007 14:45:01 +0900, Bulat Ziganshin <[EMAIL PROTECTED]> 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. http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.WxcClassesAL.html#v%3AisDefined isDefined shows that macro is defined. Prelude Graphics.UI.WXCore.WxcClassesAL> isDefined "wxUSE_STC" True Prelude Graphics.UI.WXCore.WxcClassesAL> isDefined "wxUSE_SOUND" True Prelude Graphics.UI.WXCore.WxcClassesAL> isDefined "wxUSE_WAVE" False Prelude Graphics.UI.WXCore.WxcClassesAL> isDefined "wxUSE_GLCANVAS" True 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 on Windows. 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. http://darcs.haskell.org/wxhaskell/wxc/src/ewxw/eljcolour.cpp Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/
change_strs.dpatch
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users