paranoid push
[m6w6/ext-psi] / src / cpp.h
index ae607c5101888292fd3cf2599fdf8bb87d04a3fd..671d2da17c89927c437e9a2e4d88fce4ff29f554 100644 (file)
--- a/src/cpp.h
+++ b/src/cpp.h
@@ -46,6 +46,7 @@ struct psi_cpp {
        unsigned skip;
        unsigned seen;
        unsigned expanded;
+       unsigned counter;
 };
 
 struct psi_cpp *psi_cpp_init(struct psi_parser *parser);
@@ -61,12 +62,13 @@ bool psi_cpp_undef(struct psi_cpp *cpp, struct psi_token *tok);
 #define PSI_CPP_INCLUDE_NEXT 0x1
 #define PSI_CPP_INCLUDE_ONCE 0x2
 
+bool psi_cpp_has_include(struct psi_cpp *cpp, const struct psi_token *file, unsigned flags, char *path);
 bool psi_cpp_include(struct psi_cpp *cpp, const struct psi_token *file, unsigned flags);
 
 void psi_cpp_tokiter_reset(struct psi_cpp *cpp);
 bool psi_cpp_tokiter_seek(struct psi_cpp *cpp, size_t index);
 #if PSI_CPP_DEBUG > 1
-void psi_cpp_tokiter_dump(int fd, struct psi_cpp *cpp);
+void psi_cpp_tokiter_dump(struct psi_dump *dump, struct psi_cpp *cpp);
 #endif
 struct psi_token *psi_cpp_tokiter_current(struct psi_cpp *cpp);
 size_t psi_cpp_tokiter_index(struct psi_cpp *cpp);