X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Flet_calloc.h;h=6caeb8d9ed1359b4fd1383225a3379aeb43ae371;hp=dd0e65a8a9052286f8befacbcca4d24425f13211;hb=c9384515a81cb64d345b299908b2852f51bb8e6e;hpb=2f5af21b263403997e154658635d6b6e6eaab453 diff --git a/src/types/let_calloc.h b/src/types/let_calloc.h index dd0e65a..6caeb8d 100644 --- a/src/types/let_calloc.h +++ b/src/types/let_calloc.h @@ -26,14 +26,18 @@ #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