|
Language.Preprocessor.Cpphs | Portability | All | Stability | experimental | Maintainer | Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk> |
|
|
|
|
|
Description |
Include the interface that is exported
|
|
Synopsis |
|
|
|
Documentation |
|
|
|
|
:: FilePath | File for error reports
| -> [(String, String)] | Pre-defined symbols and their values
| -> [String] | Search path for #includes
| -> BoolOptions | Options controlling output style
| -> String | The input file content
| -> [(Posn, String)] | The file after processing (in lines)
| Run a first pass of cpp, evaluating #ifdef's and processing #include's,
whilst taking account of #define's and #undef's as we encounter them.
|
|
|
|
:: [(String, String)] | Pre-defined symbols and their values
| -> BoolOptions | Options that alter processing style
| -> [(Posn, String)] | The input file content
| -> String | The file after processing
| Walk through the document, replacing calls of macros with the expanded RHS.
|
|
|
|
Cpphs options structure.
| Constructors | CpphsOptions | | infiles :: [FilePath] | | outfiles :: [FilePath] | | defines :: [(String, String)] | | includes :: [String] | | boolopts :: BoolOptions | |
|
|
|
|
|
Options representable as Booleans.
| Constructors | BoolOptions | | macros :: Bool | Leave #define and #undef in output of ifdef?
| locations :: Bool | Place #line droppings in output?
| pragma :: Bool | Keep #pragma in final output?
| strip :: Bool | Remove C comments everywhere?
| lang :: Bool | Lex input as Haskell code?
| ansi :: Bool | Permit stringise operators?
| layout :: Bool | Retain newlines in macro expansions?
| literate :: Bool | Remove literate markup?
| warnings :: Bool | Issue warnings?
|
|
|
|
|
|
Parse all command-line options.
|
|
|
Default options.
|
|
|
Default settings of boolean options.
|
|
Produced by Haddock version 0.8 |