|
|
@@ -285,7 +285,7 @@ static void append_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// append
|
|
|
NCDValue v;
|
|
|
@@ -322,7 +322,7 @@ static void appendv_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// append
|
|
|
NCDValue l;
|
|
|
@@ -365,7 +365,7 @@ static void length_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// remember length
|
|
|
o->length = NCDValue_ListCount(&mo->list);
|
|
|
@@ -442,7 +442,7 @@ static void get_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// check index
|
|
|
if (index >= NCDValue_ListCount(&mo->list)) {
|
|
|
@@ -507,7 +507,7 @@ static void shift_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// shift
|
|
|
if (!NCDValue_ListFirst(&mo->list)) {
|
|
|
@@ -547,7 +547,7 @@ static void contains_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// search
|
|
|
o->contains = 0;
|
|
|
@@ -631,7 +631,7 @@ static void find_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// search
|
|
|
o->is_found = 0;
|
|
|
@@ -723,7 +723,7 @@ static void removeat_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// check position
|
|
|
if (remove_pos >= NCDValue_ListCount(&mo->list)) {
|
|
|
@@ -761,7 +761,7 @@ static void remove_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// find value
|
|
|
NCDValue *e = find_in_list(&mo->list, value_arg);
|
|
|
@@ -795,7 +795,7 @@ static void set_func_new (NCDModuleInst *i)
|
|
|
}
|
|
|
|
|
|
// get method object
|
|
|
- struct instance *mo = ((NCDModuleInst * )i->method_user)->inst_user;
|
|
|
+ struct instance *mo = NCDModuleInst_Backend_GetUser((NCDModuleInst *)i->method_user);
|
|
|
|
|
|
// replace list
|
|
|
NCDValue_Free(&mo->list);
|