version 1.13 | | version 1.14 |
---|
| | |
| | |
static recipelist *formulalist; | | static recipelist *formulalist; |
| | |
static recipelist *init_recipelist() { | | static recipelist *init_recipelist(void) { |
recipelist *tl = (recipelist *) malloc(sizeof(recipelist)); | | recipelist *tl = (recipelist *) malloc(sizeof(recipelist)); |
if(tl==NULL) | | if(tl==NULL) |
fatal(OUT_OF_MEMORY); | | fatal(OUT_OF_MEMORY); |
| | |
return tl; | | return tl; |
} | | } |
| | |
static recipe *get_empty_formula() { | | static recipe *get_empty_formula(void) { |
recipe *t = (recipe *) malloc(sizeof(recipe)); | | recipe *t = (recipe *) malloc(sizeof(recipe)); |
if(t==NULL) | | if(t==NULL) |
fatal(OUT_OF_MEMORY); | | fatal(OUT_OF_MEMORY); |
| | |
* the libdir. -b.t. | | * the libdir. -b.t. |
*/ | | */ |
| | |
void init_formulae() { | | void init_formulae(void) { |
static int has_been_done=0; | | static int has_been_done=0; |
FILE *fp; | | FILE *fp; |
char filename[MAX_BUF], buf[MAX_BUF], *cp, *next; | | char filename[MAX_BUF], buf[MAX_BUF], *cp, *next; |
| | |
return rp; | | return rp; |
} | | } |
| | |
void free_all_recipes() | | void free_all_recipes(void) |
{ | | { |
recipelist *fl=formulalist,*flnext; | | recipelist *fl=formulalist,*flnext; |
recipe *formula=NULL,*next; | | recipe *formula=NULL,*next; |