X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Fnum_exp.h;fp=src%2Ftypes%2Fnum_exp.h;h=99f0b698d2e56c9228c4025c4f9b2d6bddfd106b;hp=6e122bb867d665aacdc1f507a7fae7148e15aa3b;hb=42f44eb5bf4ecd36e26e051fada79d861d0f92d2;hpb=1b6db76e3005344b33ab45b00e7e61386a33932a diff --git a/src/types/num_exp.h b/src/types/num_exp.h index 6e122bb..99f0b69 100644 --- a/src/types/num_exp.h +++ b/src/types/num_exp.h @@ -46,6 +46,10 @@ struct psi_num_exp { struct psi_num_exp *lhs; struct psi_num_exp *rhs; } b; + struct { + struct psi_decl_type *typ; + struct psi_num_exp *num; + } c; struct psi_num_exp *u; struct psi_number *n; } data; @@ -57,6 +61,8 @@ struct psi_num_exp *psi_num_exp_init_binary(token_t op, struct psi_num_exp *psi_num_exp_init_unary(token_t op, struct psi_num_exp *u); struct psi_num_exp *psi_num_exp_init_num(struct psi_number *n); +struct psi_num_exp *psi_num_exp_init_cast(struct psi_decl_type *typ, + struct psi_num_exp *num); void psi_num_exp_free(struct psi_num_exp **c_ptr); struct psi_num_exp *psi_num_exp_copy(struct psi_num_exp *exp);