X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fcpp.h;h=66a14fb3b3b36dfca4f361111c017eca56c5ec5d;hb=20616ed5a0e1ae7f7c680ab1b78bad7aaae5ef52;hp=671d2da17c89927c437e9a2e4d88fce4ff29f554;hpb=a0f437f26cd0f121ee911a55327a68a3544bf15f;p=m6w6%2Fext-psi diff --git a/src/cpp.h b/src/cpp.h index 671d2da..66a14fb 100644 --- a/src/cpp.h +++ b/src/cpp.h @@ -39,7 +39,9 @@ struct psi_cpp { struct { struct psi_plist *iter; struct psi_plist *next; + struct psi_plist *exec; } tokens; + HashTable expanding; const char *search; size_t index; unsigned level; @@ -47,10 +49,12 @@ struct psi_cpp { unsigned seen; unsigned expanded; unsigned counter; + bool do_cpp; }; struct psi_cpp *psi_cpp_init(struct psi_parser *parser); -bool psi_cpp_process(struct psi_cpp *cpp, struct psi_plist **tokens); +bool psi_cpp_process(struct psi_cpp *cpp, struct psi_plist **tokens, + struct psi_token *expanding); void psi_cpp_free(struct psi_cpp **cpp_ptr); bool psi_cpp_if(struct psi_cpp *cpp, struct psi_cpp_exp *exp);