Copyright | (c) 2015 Chris Hodapp |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
- procName :: Def proc -> String
- fitWordType :: Integer -> Type
- checkCName :: String -> Maybe Int
Documentation
fitWordType :: Integer -> Type Source
Return the Ivory unsigned int type (in its AST) that the given Integer
would require (i.e. any value from 0 to 255 returns a Word8
; values
beyond that but less than 65535 require a Word16
; and so on.)
The given integer must be non-negative.