文章作者:里海
简介:
查询与UDO关联的对象 UF_UDOBJ_ask_owned_objects
代码:
static void set_highlight_udo(tag_t udo, int flag)
{
int ii;
int n;
int subtype;
int type;
tag_t *objects;
UF_CALL(UF_DISP_set_highlight(udo, flag));
UF_CALL(UF_UDOBJ_ask_owned_objects(udo, &n, &objects));
for (ii = 0; ii < n; ii++)
{
UF_CALL(UF_DISP_set_highlight(objects[ii], flag));
UF_CALL(UF_OBJ_ask_type_and_subtype(objects[ii], &type, &subtype));
if (type == UF_user_defined_object_type)
set_highlight_udo(objects[ii], flag);
}
if (n > 0) UF_free(objects);
}