ast2firm: Implement casting from complex to real types.
[cparser] / preprocessor.h
index b6b9ea4..c03f49e 100644 (file)
@@ -1,3 +1,7 @@
+/*
+ * This file is part of cparser.
+ * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
+ */
 #ifndef PREPROCESSOR_H
 #define PREPROCESSOR_H
 
@@ -10,7 +14,7 @@ void exit_preprocessor(void);
 typedef struct searchpath_entry_t searchpath_entry_t;
 
 /** Switch input to another file. The current token is not changed. */
-void switch_pp_input(FILE *file, char const *filename, searchpath_entry_t *entry);
+void switch_pp_input(FILE *file, char const *filename, searchpath_entry_t *entry, bool is_system_header);
 
 FILE *close_pp_input(void);
 
@@ -25,4 +29,14 @@ void set_preprocessor_output(FILE *output);
 void emit_pp_token(void);
 void check_unclosed_conditionals(void);
 
+typedef struct searchpath_t searchpath_t;
+extern searchpath_t bracket_searchpath; /**< paths for < > includes */
+extern searchpath_t quote_searchpath;   /**< paths for " " includes */
+extern searchpath_t system_searchpath;  /**< system searchpath (appended to
+                                             quote searchpath) */
+extern searchpath_t after_searchpath;   /**< searchpath for -idirafter (also system paths) */
+
+void init_include_paths(void);
+void append_include_path(searchpath_t *searchpath, const char *path);
+
 #endif