Lines Matching refs:flavor
56 cil_list_init(&new, data->flavor);
59 switch (orig_item->flavor) {
74 pn->flavor = po->flavor;
80 cil_list_append(new, orig_item->flavor, orig_item->data);
213 if (orig_item->flavor == CIL_CLASSPERMS) {
1405 cil_list_init(new, orig->flavor);
1408 switch (curr->flavor) {
1419 cil_list_append(*new, curr->flavor, curr->data);
1422 cil_list_append(*new, curr->flavor, curr->data);
1425 cil_list_append(*new, curr->flavor, curr->data);
1428 cil_log(CIL_INFO, "Unknown flavor %d in expression being copied\n",curr->flavor);
1429 cil_list_append(*new, curr->flavor, curr->data);
1570 new->flavor = orig->flavor;
1614 new->flavor = orig->flavor;
1723 switch (orig->flavor) {
1728 if (args->orig_dest->flavor == CIL_BLOCKINHERIT) {
1997 if (orig->flavor >= CIL_MIN_DECLARATIVE) {
1998 rc = cil_flavor_to_symtab_index(orig->flavor, &sym_index);
2011 if (orig->flavor == CIL_MACRO && data == NULL) {
2013 if (args->orig_dest->flavor != CIL_BLOCKINHERIT) {
2026 new->flavor = orig->flavor;
2029 if (orig->flavor == CIL_BLOCK && DATUM(data)->nodes->head != NULL) {
2031 if (args->orig_dest->flavor != CIL_BLOCKINHERIT) {
2037 } else if (orig->flavor >= CIL_MIN_DECLARATIVE) {
2038 /* Check the flavor of data if was found in the destination symtab */
2039 if (DATUM(data)->nodes->head && FLAVOR(data) != orig->flavor) {
2040 cil_tree_log(orig, CIL_ERR, "Incompatible flavor when trying to copy %s", DATUM(data)->name);
2042 new->flavor = FLAVOR(data);
2060 while (namespace->flavor != CIL_MACRO && namespace->flavor != CIL_BLOCK && namespace->flavor != CIL_ROOT) {
2064 if (namespace->flavor == CIL_MACRO) {
2072 if (new->flavor == CIL_BLOCKINHERIT) {
2115 if (node->flavor != CIL_ROOT) {