X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftypes%2Fconst.h;h=da0607127171e1f031c4043a0c0ef850ae853ffc;hb=fb8f7887c289ae74d6e8dd85d55ae09e6796e890;hp=8af18f2f822661d2329d018348d58924c1ef6fe2;hpb=9bcb1df0786a8193d65949c857baaba2f4296e84;p=m6w6%2Fext-psi diff --git a/src/types/const.h b/src/types/const.h index 8af18f2..da06071 100644 --- a/src/types/const.h +++ b/src/types/const.h @@ -28,19 +28,21 @@ struct psi_data; struct psi_token; -struct psi_const_type; +struct psi_impl_type; struct psi_impl_def_val; struct psi_const { struct psi_token *token; - struct psi_const_type *type; - char *name; + struct psi_impl_type *type; + zend_string *name; struct psi_impl_def_val *val; }; -struct psi_const *psi_const_init(struct psi_const_type *type, const char *name, struct psi_impl_def_val *val); +struct psi_const *psi_const_init(struct psi_impl_type *type, zend_string *name, + struct psi_impl_def_val *val); void psi_const_free(struct psi_const **constant_ptr); -void psi_const_dump(int fd, struct psi_const *cnst); -bool psi_const_validate(struct psi_data *data, struct psi_const *c); +void psi_const_dump(struct psi_dump *dump, struct psi_const *cnst); +bool psi_const_validate(struct psi_data *data, struct psi_const *c, + struct psi_validate_scope *scope); #endif