mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
static _getObjDirect
This commit is contained in:
parent
e98f0f44ab
commit
847ff155c7
@ -410,7 +410,7 @@ exit:
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
PikaObj* obj_getObjDirect(PikaObj* self, char* name) {
|
static PikaObj* __obj_getObjDirect(PikaObj* self, char* name) {
|
||||||
if (NULL == self) {
|
if (NULL == self) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -437,7 +437,7 @@ static PikaObj* __obj_getObjWithKeepDeepth(PikaObj* self,
|
|||||||
PikaObj* obj = self;
|
PikaObj* obj = self;
|
||||||
for (int32_t i = 0; i < token_num - keepDeepth; i++) {
|
for (int32_t i = 0; i < token_num - keepDeepth; i++) {
|
||||||
char* token = strPopToken(token_buff, objPath_buff, '.');
|
char* token = strPopToken(token_buff, objPath_buff, '.');
|
||||||
obj = obj_getObjDirect(obj, token);
|
obj = __obj_getObjDirect(obj, token);
|
||||||
if (obj == NULL) {
|
if (obj == NULL) {
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,6 @@ int32_t obj_addOther(PikaObj* self, char* subObjectName, void* new_projcetFun);
|
|||||||
int32_t obj_setObjWithoutClass(PikaObj* self,
|
int32_t obj_setObjWithoutClass(PikaObj* self,
|
||||||
char* subObjectName,
|
char* subObjectName,
|
||||||
void* new_projcetFun);
|
void* new_projcetFun);
|
||||||
PikaObj* obj_getObjDirect(PikaObj* self, char* name);
|
|
||||||
PikaObj* obj_getObj(PikaObj* self, char* objPath);
|
PikaObj* obj_getObj(PikaObj* self, char* objPath);
|
||||||
PikaObj* obj_getHostObj(PikaObj* self, char* objPath);
|
PikaObj* obj_getHostObj(PikaObj* self, char* objPath);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user