mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
remove memSize
This commit is contained in:
parent
c4d9b999ea
commit
c0a46ad7cb
@ -1 +1 @@
|
|||||||
Subproject commit 727c5172311a168cc5ad187683ee4b166a51e3e7
|
Subproject commit f988d98097779075a01624a0e6eb27c432b1ea58
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
static void deinit(dataTest_t *self)
|
static void deinit(dataTest_t *self)
|
||||||
{
|
{
|
||||||
pikaFree(self, self->memSize);
|
pikaFree(self, sizeof(dataTest_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init(dataTest_t *self, Args *args)
|
static void init(dataTest_t *self, Args *args)
|
||||||
@ -25,7 +25,6 @@ static void init(dataTest_t *self, Args *args)
|
|||||||
dataTest_t *New_dataTest(Args *args)
|
dataTest_t *New_dataTest(Args *args)
|
||||||
{
|
{
|
||||||
dataTest_t *self = pikaMalloc(sizeof(dataTest_t));
|
dataTest_t *self = pikaMalloc(sizeof(dataTest_t));
|
||||||
self->memSize = sizeof(dataTest_t);
|
|
||||||
self->init = init;
|
self->init = init;
|
||||||
self->init(self, args);
|
self->init(self, args);
|
||||||
return self;
|
return self;
|
||||||
|
@ -9,7 +9,6 @@ struct Class_dataTest
|
|||||||
void *context;
|
void *context;
|
||||||
int32_t a;
|
int32_t a;
|
||||||
int32_t b;
|
int32_t b;
|
||||||
uint16_t memSize;
|
|
||||||
|
|
||||||
/* operation */
|
/* operation */
|
||||||
void (*deinit)(dataTest_t *self);
|
void (*deinit)(dataTest_t *self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user