Language.Preprocessor.Cpphs.CppIfdef

| cpphs | Source code | Contents | Index
Language.Preprocessor.Cpphs.CppIfdef |
Portability | All
Stability | experimental
Maintainer | Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
Description
Perform a cpp.first-pass, gathering #define's and evaluating #ifdef's. and #include's.
Synopsis
cppIfdef :: FilePath -> [(String, String)] -> [String] -> BoolOptions -> String -> [(Posn, String)]
Documentation
cppIfdef | Source
:: 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.
Produced by Haddock version 0.8