flush
[m6w6/ext-psi] / src / parser.h
index 4e5e0648351d4abcb8eb53b26186635b31dfb341..fe3ff8e8759b9aacbd7f21ce1b5b307438abfa13 100644 (file)
@@ -405,12 +405,14 @@ static inline void free_impl_func(impl_func *f) {
 typedef struct let_func {
        token_t type;
        char *name;
+       size_t size;
 } let_func;
 
-static inline let_func *init_let_func(token_t type, char *name) {
+static inline let_func *init_let_func(token_t type, char *name, size_t size) {
        let_func *func = malloc(sizeof(*func));
        func->type = type;
-       func->name = (char *) strdup((const char *) name);
+       func->name = strdup(name);
+       func->size = size;
        return func;
 }