|
| Language.C.Syntax.Constants | | Portability | ghc | | Stability | experimental | | Maintainer | benedikt.huber@gmail.com |
|
|
|
|
|
| Description |
| This module provides support for representing, checking and exporting c
constants, i.e. integral, float, character and string constants.
|
|
| Synopsis |
|
|
|
|
| Utilities
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| C char constants (and multi-character character constants)
|
|
|
| construct a character constant from a haskell Char
Use cchar_w if you want a wide character constant.
|
|
|
| construct a wide chararacter constant
|
|
|
| create a multi-character character constant
|
|
|
| C char constants (abstract)
| | Constructors | |
|
|
|
| get the haskell representation of a char constant
|
|
|
| get integer value of a C char constant
undefined result for multi-char char constants
|
|
|
| return true if the character constant is wide.
|
|
|
| showCharConst c prepends _a_ String representing the C char constant corresponding to c.
If neccessary uses octal or hexadecimal escape sequences.
|
|
| C integral constants
|
|
|
| datatype representing type flags for integers
| | Constructors | | FlagUnsigned | | | FlagLong | | | FlagLongLong | | | FlagImag | |
|
|
|
|
| datatype for memorizing the representation of an integer
| | Constructors | |
|
|
|
| construct a integer constant (without type flags) from a haskell integer
|
|
|
|
|
|
|
|
|
| C floating point constants
|
|
|
|
|
| Floats (represented as strings)
| | Constructors | |
|
|
|
|
| C string literals
|
|
|
|
|
|
|
| C String literals
| | Constructors | |
|
|
|
|
|
| showStringLiteral s prepends a String representing the C string literal corresponding to s.
If neccessary it uses octal or hexadecimal escape sequences.
|
|
|
| concatenate a list of C string literals
|
|
| Produced by Haddock version 2.6.0 |