 | language-c-0.3.1.1: Analysis and generation of C code | Contents | Index |
|
| Language.C.System.Preprocess | | Portability | portable | | Stability | experimental | | Maintainer | benedikt.huber@gmail.com |
|
|
|
| Description |
| Invoking external preprocessors.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| class Preprocessor cpp where |
| Preprocessor encapsulates the abstract interface for invoking C preprocessors
| | | Methods | | | Instances | |
|
|
| data CppOption |
| Generic Options for the preprocessor
| | Constructors | |
|
|
| data CppArgs |
| Generic arguments for the preprocessor
| | Constructors | |
|
|
| rawCppArgs :: [String] -> FilePath -> CppArgs |
| use the given preprocessor arguments without analyzing them
|
|
| addCppOption :: CppArgs -> CppOption -> CppArgs |
| add a typed option to the given preprocessor arguments
|
|
| addExtraOption :: CppArgs -> String -> CppArgs |
| add a string option to the given preprocessor arguments
|
|
| runPreprocessor :: Preprocessor cpp => cpp -> CppArgs -> IO (Either ExitCode InputStream) |
| run the preprocessor and return an InputStream if preprocesssing succeeded
|
|
| isPreprocessed :: FilePath -> Bool |
| guess whether a file is preprocessed (file end with .i)
|
|
| Produced by Haddock version 2.7.2 |