raising the head after a three-weeks refactoring
[m6w6/ext-psi] / src / types / let_calloc.h
index dd0e65a8a9052286f8befacbcca4d24425f13211..73e491458b3fa6b05cb5c3f163ed942983ef9222 100644 (file)
 #ifndef PSI_TYPES_LET_CALLOC_H
 #define PSI_TYPES_LET_CALLOC_H
 
-#include "num_exp.h"
-
-typedef struct let_calloc {
-       num_exp *nmemb;
-       num_exp *size;
-} let_calloc;
-
-let_calloc *init_let_calloc(num_exp *nmemb, num_exp *size);
-void free_let_calloc(let_calloc *alloc);
+struct psi_token;
+struct psi_num_exp;
+
+struct psi_let_calloc {
+       struct psi_token *token;
+       struct psi_num_exp *nmemb;
+       struct psi_num_exp *size;
+};
+
+struct psi_let_calloc *psi_let_calloc_init(struct psi_num_exp *nmemb, struct psi_num_exp *size);
+void psi_let_calloc_free(struct psi_let_calloc **alloc_ptr);
+void psi_let_calloc_dump(int fd, struct psi_let_calloc *alloc);
 
 #endif