isl_map_subtract.c: tab_add_constraints: avoid NULL pointer dereference
[isl.git] / isl_name.h
blob5381c94e92cf53deef074d8a4763fb73db6c2a38
1 /*
2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
10 #ifndef ISL_NAME_H
11 #define ISL_NAME_H
13 #include <isl_ctx.h>
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
19 struct isl_name {
20 int ref;
22 const char *name;
25 struct isl_name *isl_name_alloc(struct isl_ctx *ctx, const char *name);
26 struct isl_name *isl_name_get(struct isl_ctx *ctx, const char *name);
27 struct isl_name *isl_name_copy(struct isl_ctx *ctx, struct isl_name *name);
28 void isl_name_free(struct isl_ctx *ctx, struct isl_name *name);
30 #if defined(__cplusplus)
32 #endif
34 #endif