#include <stdlib.h>#include <stdio.h>#include "problem.h"#include "utility.h"#include "problem_idl_parser.h"
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 21 of file problem_idl_test.c.
{
FILE *fin;
int status;
extern gs_problem_t *problemp;
extern int idl_parse();
extern FILE *idl_in;
if(argc != 2) {
ERRPRINTF("Usage: %s <problem_idl_file> \n", argv[0]);
exit(-1);
}
if((fin = fopen(argv[1], "r")) == NULL) {
ERRPRINTF("Could not open idl file: %s \n", argv[1]);
exit(-1);
}
idl_in = fin;
status = idl_parse();
gs_problemlist_dump(problemp);
fclose(fin);
exit(status);
}

1.6.3-20100507