mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
part of analyzer, interpreter closure processing fix
This commit is contained in:
parent
4c34a63bb7
commit
014f249b16
7 changed files with 316 additions and 43 deletions
|
|
@ -4,4 +4,4 @@ extern "C" {
|
|||
#include "utils.h"
|
||||
}
|
||||
|
||||
void analyze(const Bytefile &bf);
|
||||
void analyze(Bytefile *bf);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue