Subversion Repositories PlanixRsrch.SVN

Compare Revisions

Ignore whitespace Rev 446 → Rev 447

/trunk/mgen/bnf.c
119,7 → 119,7
printf("DONE READ RULE SETs\n");
 
mgen_close(mf);
 
mgen_destroy_rule_set(rules);
exit(0);
 
if (rules==NULL)
/trunk/mgen/mgen_create_rule_set.c
41,7 → 41,24
 
void del_rule(struct mgen_rule * r)
{
 
struct mgen_rule_elem *e;
printf("DELETE RULE: %s\n",r->name);
e=r->elem_list;
while(e){
struct mgen_rule_elem *next_e;
MGEN_SYM *s;
next_e = e->next;
s=e->sym_list;
while(s){
MGEN_SYM * next_s;
next_s = s->next;
mgen_sym_destroy(s);
s=next_s;
}
free(e);
e=next_e;
}
free(r->name);
}
 
struct mgen_rule_set *