part of analyzer, interpreter closure processing fix

This commit is contained in:
ProgramSnail 2024-12-15 00:54:48 +03:00
parent 4c34a63bb7
commit 014f249b16
7 changed files with 316 additions and 43 deletions

View file

@ -4,4 +4,4 @@ extern "C" {
#include "utils.h"
}
void analyze(const Bytefile &bf);
void analyze(Bytefile *bf);

View file

@ -67,5 +67,6 @@ static inline const char *ip_read_string(char **ip, const Bytefile &bf) {
return get_string(&bf, ip_read_int(ip, bf));
}
Cmd parse_command(char **ip, const Bytefile &bf);
Cmd parse_command(char **ip, const Bytefile &bf, std::ostream &out);
std::pair<Cmd, uint8_t> parse_command(char **ip, const Bytefile &bf);
std::pair<Cmd, uint8_t> parse_command(char **ip, const Bytefile &bf,
std::ostream &out);

View file

@ -273,8 +273,6 @@ static inline void **var_by_category(enum VarCategory category, size_t id) {
"can't read arguments: too big id"); //, %i >= %ul", id, count);
}
return (void **)d->contents + id; // order is not important
break;
break;
}
return var;