~ubuntu-branches/ubuntu/trusty/cloog/trusty

« back to all changes in this revision

Viewing changes to isl/include/isl/list.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-10-17 15:54:24 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20131017155424-3q1gw7yhddylfkpj
Tags: 0.18.1-1
* New upstream version.
* Add a comment to build-depend on libpod-latex-perl | perl (<< 5.17.0),
  when the documentation is built. Closes: #711681.
* Use dh_autotools-dev to update config.{sub,guess}. Closes: #719957.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
extern "C" {
18
18
#endif
19
19
 
20
 
#define ISL_DECLARE_LIST(EL)                                            \
 
20
#define ISL_DECLARE_LIST_TYPE(EL)                                       \
21
21
struct isl_##EL;                                                        \
22
22
struct isl_##EL##_list;                                                 \
23
 
typedef struct isl_##EL##_list isl_##EL##_list;                         \
 
23
typedef struct isl_##EL##_list isl_##EL##_list;
 
24
#define ISL_DECLARE_LIST_FN(EL)                                         \
24
25
isl_ctx *isl_##EL##_list_get_ctx(__isl_keep isl_##EL##_list *list);     \
25
26
__isl_give isl_##EL##_list *isl_##EL##_list_from_##EL(                  \
26
27
        __isl_take struct isl_##EL *el);                                \
48
49
int isl_##EL##_list_foreach(__isl_keep isl_##EL##_list *list,           \
49
50
        int (*fn)(__isl_take struct isl_##EL *el, void *user),          \
50
51
        void *user);                                                    \
 
52
__isl_give isl_##EL##_list *isl_##EL##_list_sort(                       \
 
53
        __isl_take isl_##EL##_list *list,                               \
 
54
        int (*cmp)(__isl_keep struct isl_##EL *a,                       \
 
55
                __isl_keep struct isl_##EL *b,                          \
 
56
                void *user), void *user);                               \
 
57
int isl_##EL##_list_foreach_scc(__isl_keep isl_##EL##_list *list,       \
 
58
        int (*follows)(__isl_keep struct isl_##EL *a,                   \
 
59
                        __isl_keep struct isl_##EL *b, void *user),     \
 
60
        void *follows_user,                                             \
 
61
        int (*fn)(__isl_take isl_##EL##_list *scc, void *user),         \
 
62
        void *fn_user);                                                 \
51
63
__isl_give isl_printer *isl_printer_print_##EL##_list(                  \
52
64
        __isl_take isl_printer *p, __isl_keep isl_##EL##_list *list);   \
53
65
void isl_##EL##_list_dump(__isl_keep isl_##EL##_list *list);
54
66
 
55
 
ISL_DECLARE_LIST(id)
56
 
ISL_DECLARE_LIST(constraint)
57
 
ISL_DECLARE_LIST(basic_set)
58
 
ISL_DECLARE_LIST(set)
59
 
ISL_DECLARE_LIST(aff)
60
 
ISL_DECLARE_LIST(pw_aff)
61
 
ISL_DECLARE_LIST(band)
 
67
#define ISL_DECLARE_LIST(EL)                                            \
 
68
        ISL_DECLARE_LIST_TYPE(EL)                                       \
 
69
        ISL_DECLARE_LIST_FN(EL)
62
70
 
63
71
#if defined(__cplusplus)
64
72
}