isl_constraint.c \
isl_convex_hull.c \
isl_ctx.c \
+ isl_ctx_private.h \
isl_dim.c \
isl_dim_private.h \
isl_div.c \
*/
#include <stdlib.h>
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include "isl_basis_reduction.h"
isl_error_invalid,
isl_error_unsupported
};
-struct isl_ctx {
- int ref;
-
- struct isl_stats *stats;
-
- int opt_allocated;
- struct isl_options *opt;
- void *user_opt;
- struct isl_arg *user_arg;
-
- isl_int zero;
- isl_int one;
- isl_int two;
- isl_int negone;
-
- isl_int normalize_gcd;
-
- int n_cached;
- struct isl_blk cache[ISL_BLK_CACHE_SIZE];
- struct isl_hash_table name_hash;
-
- enum isl_error error;
-};
+struct isl_ctx;
typedef struct isl_ctx isl_ctx;
/* Some helper macros */
#define isl_die(ctx,errno,msg,code) \
do { \
- if (ctx) \
- ctx->error = errno; \
+ isl_ctx_set_error(ctx, errno); \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, msg); \
code; \
} while (0)
enum isl_error isl_ctx_last_error(isl_ctx *ctx);
void isl_ctx_reset_error(isl_ctx *ctx);
+void isl_ctx_set_error(isl_ctx *ctx, enum isl_error error);
#if defined(__cplusplus)
}
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
-#include <isl/ctx.h>
#include <isl/seq.h>
#include <isl/set.h>
#include <isl/lp.h>
* ZAC des vignes, 4 rue Jacques Monod, 91893 Orsay, France
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl/set.h>
#include <isl/seq.h>
*/
#include <isl/blk.h>
-#include <isl/ctx.h>
+#include <isl_ctx_private.h>
struct isl_blk isl_blk_empty()
{
* 91893 Orsay, France
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl_bound.h>
#include <isl_bernstein.h>
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl/lp.h>
#include <isl/map.h>
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
-#include <isl/ctx.h>
+#include <isl_ctx_private.h>
#include <isl/vec.h>
static struct isl_options *find_nested_options(struct isl_arg *arg,
{
ctx->error = isl_error_none;
}
+
+void isl_ctx_set_error(isl_ctx *ctx, enum isl_error error)
+{
+ if (ctx)
+ ctx->error = error;
+}
--- /dev/null
+#include <isl/ctx.h>
+
+struct isl_ctx {
+ int ref;
+
+ struct isl_stats *stats;
+
+ int opt_allocated;
+ struct isl_options *opt;
+ void *user_opt;
+ struct isl_arg *user_arg;
+
+ isl_int zero;
+ isl_int one;
+ isl_int two;
+ isl_int negone;
+
+ isl_int normalize_gcd;
+
+ int n_cached;
+ struct isl_blk cache[ISL_BLK_CACHE_SIZE];
+ struct isl_hash_table name_hash;
+
+ enum isl_error error;
+};
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl/ilp.h>
#include "isl_sample.h"
#include <stdio.h>
#include <string.h>
#include <strings.h>
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl/set.h>
#include <isl/seq.h>
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
-#include <isl/ctx.h>
#include <isl/lp.h>
#include "isl_lp_piplib.h"
#include <isl/seq.h>
#include <string.h>
#include <strings.h>
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
-#include <isl/ctx.h>
#include <isl/blk.h>
#include "isl_dim_private.h"
#include "isl_equalities.h"
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl/set.h>
#include <isl/map.h>
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include "isl_equalities.h"
#include <isl/map.h>
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl/dim.h>
#include <isl/seq.h>
#include <isl_mat_private.h>
*/
#include <string.h>
+#include <isl_ctx_private.h>
#include "isl_name.h"
struct isl_name *isl_name_alloc(struct isl_ctx *ctx, const char *s)
#include <stdlib.h>
#include <string.h>
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl/set.h>
#include <isl/seq.h>
*/
#include <stdlib.h>
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl_factorization.h>
#include <isl/lp.h>
+#include <isl_ctx_private.h>
#include <isl/constraint.h>
#include <isl/set.h>
#include <isl_polynomial_private.h>
* 91893 Orsay, France
*/
+#include <isl_ctx_private.h>
#include <isl_dim_private.h>
#include <isl_reordering.h>
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include "isl_sample.h"
#include "isl_sample_piplib.h"
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include "isl_basis_reduction.h"
#include "isl_scan.h"
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl/seq.h>
void isl_seq_clr(isl_int *p, unsigned len)
* ZAC des vignes, 4 rue Jacques Monod, 91893 Orsay, France
*/
+#include <isl_ctx_private.h>
#include "isl_map_private.h"
#include <isl/seq.h>
#include "isl_tab.h"
#include <assert.h>
#include <stdio.h>
#include <limits.h>
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
-#include <isl/ctx.h>
#include <isl/set.h>
#include <isl/flow.h>
#include <isl/constraint.h>
* 91893 Orsay, France
*/
+#include <isl_ctx_private.h>
#include <isl_map_private.h>
#include <isl/map.h>
#include <isl/seq.h>
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
+#include <isl_ctx_private.h>
#include <isl/seq.h>
#include <isl/vec.h>