X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fvalidate.h;h=dcef7c706ec0cf08167f3350d425ad4d995eef39;hp=3e4dda60ec17c7917a3bc75bb894ca1564edfa79;hb=a7ac1c0a3c855321f21682c127a4b707de33a303;hpb=35060621f2fd5079502543d17942127c1a602f72 diff --git a/src/validate.h b/src/validate.h index 3e4dda6..dcef7c7 100644 --- a/src/validate.h +++ b/src/validate.h @@ -29,7 +29,7 @@ struct psi_data; struct psi_validate_scope { - HashTable *defs; + struct psi_cpp *cpp; HashTable types; HashTable structs; HashTable unions; @@ -58,6 +58,9 @@ static inline void psi_validate_scope_dtor(struct psi_validate_scope *scope) zend_hash_destroy(&scope->unions); } +bool psi_validate_scope_has_builtin(struct psi_validate_scope *scope, + zend_string *builtin); + #define psi_validate_scope_has_type(s, t) \ ((s) ? zend_hash_exists(&(s)->types, (t)) : false) #define psi_validate_scope_has_struct(s, t) \