Home | History | Annotate | Download | only in src

Lines Matching defs:macro

52 	struct cil_tree_node *macro;
160 cil_log(CIL_ERR, "%s %s shadows a macro parameter in macro declaration\n", cil_node_to_string(ast_node), key);
5212 struct cil_macro *macro = NULL;
5232 cil_macro_init(&macro);
5252 if (macro->params == NULL) {
5253 cil_list_init(&macro->params, CIL_LIST_ITEM);
5305 cil_list_for_each(curr_param, macro->params) {
5315 cil_list_append(macro->params, CIL_PARAM, param);
5320 /* we don't want the tree walker to walk the macro parameters (they were just handled above), so the subtree is deleted, and the next pointer of the
5321 node containing the macro name is updated to point to the start of the macro content */
5326 /* No statements in macro and macro parameter list was last node */
5330 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)macro, (hashtab_key_t)key, CIL_SYM_BLOCKS, CIL_MACRO);
5338 cil_tree_log(parse_current, CIL_ERR, "Bad macro declaration");
5339 cil_destroy_macro(macro);
5344 void cil_destroy_macro(struct cil_macro *macro)
5346 if (macro == NULL) {
5350 cil_symtab_datum_destroy(&macro->datum);
5351 cil_symtab_array_destroy(macro->symtab);
5353 if (macro->params != NULL) {
5354 cil_list_destroy(&macro->params, 1);
5357 free(macro);
5396 cil_tree_log(parse_current, CIL_ERR, "Bad macro call");
5407 call->macro = NULL;
6102 struct cil_tree_node *macro = NULL;
6115 macro = args->macro;
6135 if (macro != NULL) {
6475 args->macro = ast_current;
6526 args->macro = NULL;
6565 extra_args.macro = NULL;