diff --git a/include/pocketpy/interpreter/vm.h b/include/pocketpy/interpreter/vm.h index c8928b9e..00c5c8f8 100644 --- a/include/pocketpy/interpreter/vm.h +++ b/include/pocketpy/interpreter/vm.h @@ -10,5 +10,3 @@ typedef struct pkpy_VM{ void pkpy_VM__ctor(pkpy_VM* self); void pkpy_VM__dtor(pkpy_VM* self); - -PyObject* pkpy_VM__gcnew(pkpy_VM* self, pkpy_Type type); diff --git a/src/interpreter/vm.c b/src/interpreter/vm.c index 3ac22431..af63a36b 100644 --- a/src/interpreter/vm.c +++ b/src/interpreter/vm.c @@ -1,40 +1,40 @@ -#include "pocketpy/interpreter/vm.h" -#include "pocketpy/objects/base.h" +// #include "pocketpy/interpreter/vm.h" +// #include "pocketpy/objects/base.h" -void pkpy_VM__ctor(pkpy_VM* self){ - self->True = (PyVar){ - .type=tp_bool, - .is_ptr=true, - .extra=1, - ._obj=pkpy_VM__gcnew(self, tp_bool) - }; +// void pkpy_VM__ctor(pkpy_VM* self){ +// self->True = (PyVar){ +// .type=tp_bool, +// .is_ptr=true, +// .extra=1, +// ._obj=pkpy_VM__gcnew(self, tp_bool) +// }; - self->False = (PyVar){ - .type=tp_bool, - .is_ptr=true, - .extra=0, - ._obj=pkpy_VM__gcnew(self, tp_bool) - }; +// self->False = (PyVar){ +// .type=tp_bool, +// .is_ptr=true, +// .extra=0, +// ._obj=pkpy_VM__gcnew(self, tp_bool) +// }; - self->None = (PyVar){ - .type=tp_none_type, - .is_ptr=true, - ._obj=pkpy_VM__gcnew(self, tp_none_type) - }; +// self->None = (PyVar){ +// .type=tp_none_type, +// .is_ptr=true, +// ._obj=pkpy_VM__gcnew(self, tp_none_type) +// }; - self->NotImplemented = (PyVar){ - .type=tp_not_implemented_type, - .is_ptr=true, - ._obj=pkpy_VM__gcnew(self, tp_not_implemented_type) - }; +// self->NotImplemented = (PyVar){ +// .type=tp_not_implemented_type, +// .is_ptr=true, +// ._obj=pkpy_VM__gcnew(self, tp_not_implemented_type) +// }; - self->Ellipsis = (PyVar){ - .type=tp_ellipsis, - .is_ptr=true, - ._obj=pkpy_VM__gcnew(self, tp_ellipsis) - }; -} +// self->Ellipsis = (PyVar){ +// .type=tp_ellipsis, +// .is_ptr=true, +// ._obj=pkpy_VM__gcnew(self, tp_ellipsis) +// }; +// } -void pkpy_VM__dtor(pkpy_VM* self){ +// void pkpy_VM__dtor(pkpy_VM* self){ -} \ No newline at end of file +// } \ No newline at end of file