lexmin.cc: use barvinok_options
[barvinok.git] / options.c
blob356ca6a4ea3a052555730a1d0503a7275c50d184
1 #include <unistd.h>
2 #include <polylib/polylibgmp.h>
3 #include <barvinok/options.h>
4 #include "config.h"
6 #ifdef HAVE_GROWING_CHERNIKOVA
7 #define MAXRAYS (POL_NO_DUAL | POL_INTEGER)
8 #else
9 #define MAXRAYS 600
10 #endif
12 #define ALLOC(type) (type*)malloc(sizeof(type))
14 struct barvinok_options *barvinok_options_new_with_defaults()
16 struct barvinok_options *options = ALLOC(struct barvinok_options);
17 if (!options)
18 return NULL;
20 options->MaxRays = MAXRAYS;
22 return options;