static _getObjDirect

This commit is contained in:
lyon 2022-04-27 22:47:34 +08:00
parent e98f0f44ab
commit 847ff155c7
2 changed files with 2 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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);