From: Wolfgang T. <wth...@us...> - 2005-08-07 16:41:44
|
Update of /cvsroot/hoc/hoc/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6280 Modified Files: Mapping_Types.pod Log Message: Correct a detail about enum name mangling and add a :: CInt to the constant decls. Index: Mapping_Types.pod =================================================================== RCS file: /cvsroot/hoc/hoc/docs/Mapping_Types.pod,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Mapping_Types.pod 6 Aug 2005 16:22:31 -0000 1.7 +++ Mapping_Types.pod 7 Aug 2005 16:41:09 -0000 1.8 @@ -218,7 +218,7 @@ name as the enum, with each of its constructors corresponding to one of the enum definitions. A value ("constant function") will also be created for each enum definition, with the first letter -and the initial "NS" lowercased, if that's present. The Haskell +or the initial "NS" lowercased, if that's present. The Haskell data type will belong to the C<Eq>, C<Ord>, C<Read>, C<Show>, and and C<HOC.CEnum> type classes. If you need to use the literal integer value of the enum, use the C<HOC.fromCEnum> and @@ -251,8 +251,8 @@ foo = Foo bar = Bar - nsbaz = NSBaz - nsquux = NSQuux + nsBaz = NSBaz + nsQuux = NSQuux On the other hand, I<anonymous enums> are marshalled to simple values only. The following example anonymous C enum: @@ -261,8 +261,8 @@ will be marshalled to: - nsfoo = 1 - bar = 3 + nsFoo = 1 :: CInt + bar = 3 :: CInt =head3 C<struct> Types |