A little bit of code support now

This commit is contained in:
Michael Hansen
2009-07-26 10:07:13 +00:00
parent 98a50fd042
commit b89ae8b2ac
12 changed files with 556 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
#include "code.h"
#include "module.h"
#include "data.h"
// Opcodes >= this value have an argument after the opcode
#define HAVE_ARG 90
@@ -129,4 +130,6 @@ bool IsCellArg(int opcode);
}
void print_const(PycRef<PycObject> obj, PycModule* mod);
void bc_next(PycBuffer& source, PycModule* mod, int& opcode, int& operand, int& pos);
void bc_disasm(PycRef<PycCode> code, PycModule* mod, int indent);