mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
use class dif for PikaObj
This commit is contained in:
parent
230a9da244
commit
64730bca8f
@ -52,30 +52,34 @@ def_class(InstructUnit,
|
|||||||
|
|
||||||
dcl_class(ConstPool);
|
dcl_class(ConstPool);
|
||||||
|
|
||||||
def_class(
|
def_class(ConstPool,
|
||||||
ConstPool,
|
private_member(
|
||||||
private_member(Arg* arg_buff; uint16_t content_offset_now; uint16_t size;
|
Arg* arg_buff;
|
||||||
void* content_start;
|
uint16_t content_offset_now;
|
||||||
void (*output_redirect_fun)(ConstPool* self, char* content);
|
uint16_t size;
|
||||||
FILE * output_f;));
|
void* content_start;
|
||||||
|
void (*output_redirect_fun)(ConstPool* self, char* content);
|
||||||
|
FILE * output_f;
|
||||||
|
));
|
||||||
|
|
||||||
dcl_class(InstructArray);
|
dcl_class(InstructArray);
|
||||||
|
|
||||||
def_class(InstructArray,
|
def_class(InstructArray,
|
||||||
|
private_member(
|
||||||
private_member(Arg* arg_buff; uint16_t content_offset_now;
|
Arg* arg_buff; uint16_t content_offset_now;
|
||||||
uint16_t size;
|
uint16_t size;
|
||||||
void* content_start;
|
void* content_start;
|
||||||
void (*output_redirect_fun)(InstructArray* self,
|
void (*output_redirect_fun)(InstructArray* self,
|
||||||
InstructUnit* ins_unit);
|
InstructUnit* ins_unit);
|
||||||
FILE * output_f;)
|
FILE * output_f;
|
||||||
|
));
|
||||||
);
|
|
||||||
|
|
||||||
dcl_class(ByteCodeFrame);
|
dcl_class(ByteCodeFrame);
|
||||||
|
|
||||||
def_class(ByteCodeFrame,
|
def_class(ByteCodeFrame,
|
||||||
private_member(ConstPool const_pool; InstructArray instruct_array;));
|
private_member(
|
||||||
|
ConstPool const_pool;
|
||||||
|
InstructArray instruct_array;
|
||||||
|
));
|
||||||
|
|
||||||
dcl_class(PikaObj);
|
dcl_class(PikaObj);
|
||||||
def_class(PikaObj, Args* list;);
|
def_class(PikaObj, Args* list;);
|
||||||
@ -86,11 +90,15 @@ typedef PikaObj VMParameters;
|
|||||||
typedef void (*Method)(PikaObj* self, Args* args);
|
typedef void (*Method)(PikaObj* self, Args* args);
|
||||||
|
|
||||||
dcl_class(MethodInfo);
|
dcl_class(MethodInfo);
|
||||||
|
|
||||||
def_class(MethodInfo,
|
def_class(MethodInfo,
|
||||||
private_member(char* name; char* dec; char* ptr; char* pars;
|
private_member(
|
||||||
ArgType type;
|
char* name;
|
||||||
ByteCodeFrame * bytecode_frame;));
|
char* dec;
|
||||||
|
char* ptr;
|
||||||
|
char* pars;
|
||||||
|
ArgType type;
|
||||||
|
ByteCodeFrame * bytecode_frame;
|
||||||
|
));
|
||||||
|
|
||||||
typedef PikaObj LibObj;
|
typedef PikaObj LibObj;
|
||||||
typedef PikaObj PikaMaker;
|
typedef PikaObj PikaMaker;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user