Functions

problem_idl_test.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include "problem.h"
#include "utility.h"
#include "problem_idl_parser.h"
Include dependency graph for problem_idl_test.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

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);
}

Here is the call graph for this function: