basic support for builtins
[m6w6/ext-psi] / src / validate.h
index 3e4dda60ec17c7917a3bc75bb894ca1564edfa79..dcef7c706ec0cf08167f3350d425ad4d995eef39 100644 (file)
@@ -29,7 +29,7 @@
 struct psi_data;
 
 struct psi_validate_scope {
 struct psi_data;
 
 struct psi_validate_scope {
-       HashTable *defs;
+       struct psi_cpp *cpp;
        HashTable types;
        HashTable structs;
        HashTable unions;
        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);
 }
 
        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) \
 #define psi_validate_scope_has_type(s, t) \
        ((s) ? zend_hash_exists(&(s)->types, (t)) : false)
 #define psi_validate_scope_has_struct(s, t) \