Merge branch 'slimconfigure'
[m6w6/ext-psi] / src / types / let_calloc.h
index dd0e65a8a9052286f8befacbcca4d24425f13211..6caeb8d9ed1359b4fd1383225a3379aeb43ae371 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;
+       unsigned static_memory:1;
+};
+
+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