macros.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define OSL_DEBUG   0
#define OSL_TAG_START_SCOP   "<OpenScop>"
#define OSL_TAG_END_SCOP   "</OpenScop>"
#define OSL_PRECISION_ENV   "OSL_PRECISION"
#define OSL_PRECISION_ENV_SP   "32"
#define OSL_PRECISION_ENV_DP   "64"
#define OSL_PRECISION_ENV_MP   "0"
#define OSL_PRECISION_SP   32
#define OSL_PRECISION_DP   64
#define OSL_PRECISION_MP   0
#define OSL_FMT_SP   "%4ld"
#define OSL_FMT_DP   "%4lld"
#define OSL_FMT_MP   "%4s"
#define OSL_FMT_LENGTH   4
#define OSL_FMT_TXT_SP   "%ld"
#define OSL_FMT_TXT_DP   "%lld"
#define OSL_FMT_TXT_MP   "%s"
#define OSL_BACKEND_C   0
#define OSL_BACKEND_FORTRAN   1
#define OSL_UNDEFINED   -1
#define OSL_MAX_STRING   2048
#define OSL_MAX_ARRAYS   128
#define OSL_TYPE_GENERIC   0
#define OSL_TYPE_STRING   1
#define OSL_TYPE_CONTEXT   2
#define OSL_TYPE_DOMAIN   3
#define OSL_TYPE_SCATTERING   4
#define OSL_TYPE_ACCESS   5
#define OSL_TYPE_READ   6
#define OSL_TYPE_WRITE   7
#define OSL_TYPE_MAY_WRITE   8
#define OSL_FAKE_ARRAY   "fakearray"
#define OSL_STRING_UNDEFINED   "UNDEFINED"
#define OSL_STRING_CONTEXT   "CONTEXT"
#define OSL_STRING_DOMAIN   "DOMAIN"
#define OSL_STRING_SCATTERING   "SCATTERING"
#define OSL_STRING_READ   "READ"
#define OSL_STRING_WRITE   "WRITE"
#define OSL_STRING_MAY_WRITE   "MAY_WRITE"
#define OSL_coucou(n)
#define OSL_debug(msg)
#define OSL_info(msg)
#define OSL_warning(msg)
#define OSL_error(msg)
#define OSL_malloc(ptr, type, size)
#define OSL_realloc(ptr, type, size)
#define OSL_strdup(destination, source)
#define OSL_max(x, y)   ((x) > (y)? (x) : (y))
#define OSL_min(x, y)   ((x) < (y)? (x) : (y))

Define Documentation

#define OSL_BACKEND_C   0

Definition at line 89 of file macros.h.

#define OSL_BACKEND_FORTRAN   1

Definition at line 90 of file macros.h.

#define OSL_coucou (  ) 
Value:
do {                                                              \
           int i = n +0;                                                   \
           fprintf(stderr,"[osl] Coucou %d (%s).\n", i, __func__);         \
         } while (0)

Definition at line 119 of file macros.h.

#define OSL_debug ( msg   ) 
#define OSL_DEBUG   0

Definition at line 67 of file macros.h.

#define OSL_error ( msg   ) 
#define OSL_FAKE_ARRAY   "fakearray"

Definition at line 105 of file macros.h.

#define OSL_FMT_DP   "%4lld"

Definition at line 81 of file macros.h.

Referenced by osl_int_sprint().

#define OSL_FMT_LENGTH   4

Definition at line 83 of file macros.h.

Referenced by osl_relation_column_string().

#define OSL_FMT_MP   "%4s"

Definition at line 82 of file macros.h.

Referenced by osl_int_sprint().

#define OSL_FMT_SP   "%4ld"

Definition at line 80 of file macros.h.

Referenced by osl_int_sprint().

#define OSL_FMT_TXT_DP   "%lld"

Definition at line 85 of file macros.h.

Referenced by osl_int_sprint_txt(), and osl_int_sread().

#define OSL_FMT_TXT_MP   "%s"

Definition at line 86 of file macros.h.

Referenced by osl_int_sprint_txt().

#define OSL_FMT_TXT_SP   "%ld"

Definition at line 84 of file macros.h.

Referenced by osl_int_sprint_txt(), and osl_int_sread().

#define OSL_info ( msg   ) 
Value:
do {                                                              \
           fprintf(stderr,"[osl] Info: "msg" (%s).\n", __func__);          \
         } while (0)

Definition at line 131 of file macros.h.

Referenced by osl_body_equal(), osl_coordinates_equal(), osl_scop_equal(), and osl_statement_equal().

#define OSL_malloc ( ptr,
type,
size   ) 
#define OSL_max ( x,
 )     ((x) > (y)? (x) : (y))
#define OSL_MAX_ARRAYS   128

Definition at line 93 of file macros.h.

#define OSL_MAX_STRING   2048
#define OSL_min ( x,
 )     ((x) < (y)? (x) : (y))

Definition at line 173 of file macros.h.

#define OSL_PRECISION_DP   64
#define OSL_PRECISION_ENV   "OSL_PRECISION"

Definition at line 72 of file macros.h.

Referenced by osl_util_get_precision().

#define OSL_PRECISION_ENV_DP   "64"

Definition at line 74 of file macros.h.

Referenced by osl_util_get_precision().

#define OSL_PRECISION_ENV_MP   "0"

Definition at line 75 of file macros.h.

Referenced by osl_util_get_precision().

#define OSL_PRECISION_ENV_SP   "32"

Definition at line 73 of file macros.h.

Referenced by osl_util_get_precision().

#define OSL_PRECISION_MP   0
#define OSL_PRECISION_SP   32
#define OSL_realloc ( ptr,
type,
size   ) 
Value:
do {                                                              \
           if (((ptr) = (type)realloc(ptr, size)) == NULL)                 \
             OSL_error("memory overflow");                                 \
         } while (0)

Definition at line 153 of file macros.h.

Referenced by osl_arrays_sprint(), osl_comment_sprint(), osl_coordinates_sprint(), osl_irregular_sprint(), osl_util_read_line(), osl_util_read_string(), osl_util_read_uptotag(), and osl_util_safe_strcat().

#define OSL_strdup ( destination,
source   ) 
Value:
do {                                                              \
           if (source != NULL) {                                           \
             if (((destination) = strdup(source)) == NULL)                 \
               OSL_error("memory overflow");                               \
           }                                                               \
           else {                                                          \
             destination = NULL;                                           \
             OSL_warning("strdup of a NULL string");                       \
           }                                                               \
         } while (0)

Definition at line 159 of file macros.h.

Referenced by osl_arrays_clone(), osl_arrays_to_strings(), osl_comment_clone(), osl_comment_sread(), osl_coordinates_clone(), osl_interface_nclone(), osl_relation_strings(), osl_strings_clone(), osl_strings_sread(), osl_textual_clone(), and osl_textual_sread().

#define OSL_STRING_CONTEXT   "CONTEXT"

Definition at line 108 of file macros.h.

Referenced by osl_relation_read_type(), and osl_relation_sprint_type().

#define OSL_STRING_DOMAIN   "DOMAIN"

Definition at line 109 of file macros.h.

Referenced by osl_relation_read_type(), and osl_relation_sprint_type().

#define OSL_STRING_MAY_WRITE   "MAY_WRITE"

Definition at line 113 of file macros.h.

Referenced by osl_relation_read_type(), and osl_relation_sprint_type().

#define OSL_STRING_READ   "READ"

Definition at line 111 of file macros.h.

Referenced by osl_relation_read_type(), and osl_relation_sprint_type().

#define OSL_STRING_SCATTERING   "SCATTERING"

Definition at line 110 of file macros.h.

Referenced by osl_relation_read_type(), and osl_relation_sprint_type().

#define OSL_STRING_UNDEFINED   "UNDEFINED"

Definition at line 107 of file macros.h.

Referenced by osl_relation_read_type(), and osl_relation_sprint_type().

#define OSL_STRING_WRITE   "WRITE"

Definition at line 112 of file macros.h.

Referenced by osl_relation_read_type(), and osl_relation_sprint_type().

#define OSL_TAG_END_SCOP   "</OpenScop>"

Definition at line 70 of file macros.h.

Referenced by osl_generic_read(), and osl_scop_print().

#define OSL_TAG_START_SCOP   "<OpenScop>"

Definition at line 69 of file macros.h.

Referenced by osl_scop_pread(), and osl_scop_print().

#define OSL_TYPE_ACCESS   5
#define OSL_TYPE_CONTEXT   2
#define OSL_TYPE_DOMAIN   3
#define OSL_TYPE_GENERIC   0

Definition at line 95 of file macros.h.

#define OSL_TYPE_MAY_WRITE   8
#define OSL_TYPE_READ   6
#define OSL_TYPE_SCATTERING   4
#define OSL_TYPE_STRING   1

Definition at line 96 of file macros.h.

#define OSL_TYPE_WRITE   7
#define OSL_UNDEFINED   -1
#define OSL_warning ( msg   ) 
Generated on Fri Feb 17 15:26:45 2012 for OpenScop by  doxygen 1.6.3