registry
scn_registry_t *registry, *p;
registry = scn_registry;
p = registry;
private static TemplateRegistry registry = null;
} registry[] = {
for (i = 0; i < sizeof (registry)/sizeof (registry[0]); ++i) {
if (strcasecmp(registry[i].name, name) == 0)
return (registry[i].value);
Table *registry = luaH_new(L);
sethvalue(L, &g->l_registry, registry);
luaH_resize(L, registry, LUA_RIDX_LAST, 0);
luaH_setint(L, registry, LUA_RIDX_MAINTHREAD, &mt);
luaH_setint(L, registry, LUA_RIDX_GLOBALS, &mt);
if (o->registry.aprox_match.vec[i])
if (BIT_VEC64_TEST_BIT(o->registry.aprox_match.
BIT_VEC64_CLEAR_BIT(o->registry.aprox_match.vec, cur_bit);
BIT_VEC64_SET_BIT(o->registry.aprox_match.vec, bin);
elem = o->registry.aprox_match.vec[i];
BIT_VEC64_SET_BIT(o->registry.aprox_match.vec,
mm_memset(o->registry.aprox_match.vec, 0,
sizeof(o->registry.aprox_match.vec));
mm_memset(o->registry.aprox_match.vec, 0,
sizeof(o->registry.aprox_match.vec));
ECORE_LIST_FOR_EACH_ENTRY(elem, &o->registry.exact_match.macs, link,
if (!ECORE_LIST_IS_EMPTY(&o->registry.exact_match.macs))
&o->registry.exact_match.macs);
elem = ECORE_LIST_FIRST_ENTRY(&o->registry.exact_match.macs,
ECORE_LIST_INIT(&o->registry.exact_match.macs);
return o->registry.exact_match.num_macs_set;
return o->registry.aprox_match.num_bins_set;
o->registry.exact_match.num_macs_set = n;
o->registry.aprox_match.num_bins_set = n;
ECORE_LIST_INIT(&mcast_obj->registry.exact_match.macs);
} registry;