Lines Matching defs:args
5447 if (call->args != NULL) {
5448 cil_list_destroy(&call->args, 1);
5454 void cil_destroy_args(struct cil_args *args)
5456 if (args == NULL) {
5460 if (args->arg_str != NULL) {
5461 args->arg_str = NULL;
5462 } else if (args->arg != NULL) {
5463 struct cil_tree_node *node = args->arg->nodes->head->data;
5464 switch (args->flavor) {
5468 cil_destroy_catset((struct cil_catset *)args->arg);
5472 cil_destroy_level((struct cil_level *)args->arg);
5476 cil_destroy_levelrange((struct cil_levelrange *)args->arg);
5480 cil_destroy_ipaddr((struct cil_ipaddr *)args->arg);
5484 cil_destroy_classpermission((struct cil_classpermission *)args->arg);
5488 cil_log(CIL_ERR, "Destroying arg with the unexpected flavor=%d\n",args->flavor);
5493 args->param_str = NULL;
5494 args->arg = NULL;
5496 free(args);
6167 static int check_for_illegal_statement(struct cil_tree_node *parse_current, struct cil_args_build *args)
6169 if (args->tunif != NULL) {
6176 if (args->in != NULL) {
6177 struct cil_in *in_block = args->in->data;
6192 if (args->macro != NULL) {
6204 if (args->optional != NULL) {
6215 if (args->boolif != NULL) {
6226 if (((struct cil_booleanif*)args->boolif->data)->preserved_tunable) {
6480 struct cil_args_build *args = extra_args;
6498 rc = check_for_illegal_statement(parse_current, args);
6503 new_ast_node = parse_statement(args->db, parse_current, args->ast);
6508 args->ast = new_ast_node;
6528 struct cil_args_build *args = extra_args;
6529 struct cil_tree_node *ast = args->ast;
6532 args->tunif = ast;
6534 args->in = ast;
6536 args->macro = ast;
6538 args->optional = ast;
6540 args->boolif = ast;
6548 struct cil_args_build *args = extra_args;
6549 struct cil_tree_node *ast = args->ast;
6555 args->ast = ast->parent;
6558 args->tunif = NULL;
6562 args->in = NULL;
6566 args->macro = NULL;
6571 args->optional = NULL;
6575 args->optional = n;
6583 args->boolif = NULL;