We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d37aea commit e3d307cCopy full SHA for e3d307c
src/ti/names.c
@@ -20,11 +20,15 @@ int ti_names_create(void)
20
21
int names__no_ref_cb(ti_name_t * name, void * UNUSED(arg))
22
{
23
+ /* actually, only common variable should exist in here; */
24
return name->ref == 1 ? 0 : -1;
25
}
26
27
_Bool ti_names_no_ref(void)
28
29
+ const uint32_t COMMON_NAMES = 24;
30
+ if (names->n != COMMON_NAMES)
31
+ return -1;
32
return smap_values(names, (smap_val_cb) names__no_ref_cb, NULL) == 0;
33
34
0 commit comments