1 definition module GenType.CType
3 from StdGeneric import :: GenericTypeDefDescriptor
4 from Data.Either import :: Either
5 from GenType import :: Type
8 * generate typedefs for the types grouped by strongly connected components
10 typedefs :: [[Type]] -> Either String [String]
13 * Generate a single typedef for a type.
14 * This does not terminate for recursive types
16 flatTypedef :: Type -> Either String [String]
19 * Create a C-safe type name
21 safe :: String -> String
24 * Return the C type prefix, e.g. struct, enum
26 prefix :: Type -> String
29 * Return the C constructorname
31 consName :: GenericTypeDefDescriptor -> String