[Haskell-cafe] CPP, Leopard and Haskell Objective-C bindings
Joel Reymont
joelr1 at gmail.com
Tue Nov 6 11:00:00 EST 2007
It seems that the current approach taken by HOC is to strip
preprocessing directives. This may not have been a problem before
Leopard but Cocoa header files are now full of macros in most unusual
places, e.g.
@interface NSObject (NSDeprecatedMethods)
+ (void)poseAsClass:(Class)aClass
DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER;
@end
I'm trying to figure out the easiest way to run CPP over the header
files before processing them in HOC.
Is there a CPP written in Haskell and packaged as a library?
Does someone have a quick Haskell solution for running CPP over a
header file (with include paths?), redirecting into a temp file and
reading that back into Haskell?
Should I preprocess all Cocoa header files using make and then read
these in?
Thanks, Joel
--
http://wagerlabs.com
More information about the Haskell-Cafe
mailing list