mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
41 lines
958 B
C
41 lines
958 B
C
#ifndef _arg__H
|
|
#define _arg__H
|
|
#include "dataMemory.h"
|
|
|
|
typedef struct Class_arg Arg;
|
|
struct Class_arg
|
|
{
|
|
/* attribute */
|
|
DMEM *mem;
|
|
void *context;
|
|
|
|
DMEM *contantDynMem;
|
|
DMEM *nameDynMem;
|
|
DMEM *typeDynMem;
|
|
};
|
|
|
|
void arg_setName(Arg *self, char *name);
|
|
void arg_setContant(Arg *self, uint8_t *contant, uint32_t size);
|
|
void arg_newContant(Arg *self, uint32_t size);
|
|
void arg_setType(Arg *self, char *type);
|
|
char *arg_getName(Arg *self);
|
|
char *arg_getType(Arg *self);
|
|
char *arg_getContant(Arg *self);
|
|
|
|
void arg_setInt(Arg *self, int64_t val);
|
|
void arg_setFloat(Arg *self, float val);
|
|
void arg_setPtr(Arg *self, void *pointer);
|
|
void arg_setStr(Arg *self, char *string);
|
|
|
|
int64_t arg_getInt(Arg *self);
|
|
float arg_getFloat(Arg *self);
|
|
void *arg_getPtr(Arg *self);
|
|
char *arg_getStr(Arg *self);
|
|
Arg *arg_copy(Arg *argToBeCopy);
|
|
|
|
void arg_init(Arg *self, void *voidPointer);
|
|
void arg_deinit(Arg *self);
|
|
|
|
Arg *New_arg(void *voidPointer);
|
|
#endif
|