do { \
if (!EINA_MAGIC_CHECK(d, EINA_MAGIC_ACCESSOR)) \
EINA_MAGIC_FAIL(d, EINA_MAGIC_ACCESSOR); \
- } while(0);
+ } while(0)
/**
* @endcond
do { \
if (!EINA_MAGIC_CHECK(d, EINA_MAGIC_ARRAY)) \
EINA_MAGIC_FAIL(d, EINA_MAGIC_ARRAY); \
- } while (0);
+ } while (0)
#define EINA_MAGIC_CHECK_ARRAY_ITERATOR(d, ...) \
do { \
EINA_MAGIC_FAIL(d, EINA_MAGIC_ARRAY_ITERATOR); \
return __VA_ARGS__; \
} \
- } while (0);
+ } while (0)
#define EINA_MAGIC_CHECK_ARRAY_ACCESSOR(d, ...) \
do { \
EINA_MAGIC_FAIL(d, EINA_MAGIC_ACCESSOR); \
return __VA_ARGS__; \
} \
- } while (0);
+ } while (0)
typedef struct _Eina_Iterator_Array Eina_Iterator_Array;
do { \
if (!EINA_MAGIC_CHECK(d, EINA_MAGIC_ITERATOR)) \
EINA_MAGIC_FAIL(d, EINA_MAGIC_ITERATOR); \
- } while(0);
+ } while(0)
/**
* @endcond
EINA_MAGIC_FAIL(d, EINA_MAGIC_LIST); \
return __VA_ARGS__; \
} \
- } while(0);
+ } while(0)
#define EINA_MAGIC_CHECK_LIST_ITERATOR(d, ...) \
do { \
EINA_MAGIC_FAIL(d, EINA_MAGIC_LIST_ITERATOR); \
return __VA_ARGS__; \
} \
- } while(0);
+ } while(0)
#define EINA_MAGIC_CHECK_LIST_ACCESSOR(d, ...) \
do { \
EINA_MAGIC_FAIL(d, EINA_MAGIC_LIST_ACCESSOR); \
return __VA_ARGS__; \
} \
- } while(0);
+ } while(0)
#define EINA_MAGIC_CHECK_LIST_ACCOUNTING(d) \
do { \
EINA_MAGIC_FAIL(d, EINA_MAGIC_LIST_ACCOUNTING); \
return; \
} \
- } while(0);
+ } while(0)
#define EINA_LIST_SORT_STACK_SIZE 32
#ifdef EFL_HAVE_PTHREAD
static Eina_Bool _threads_activated = EINA_FALSE;
static pthread_mutex_t _mutex = PTHREAD_MUTEX_INITIALIZER;
-#define LOCK() if(_threads_activated) pthread_mutex_lock(&_mutex);
-#define UNLOCK() if(_threads_activated) pthread_mutex_unlock(&_mutex);
-#define UNLOCK_FORCE() pthread_mutex_unlock(&_mutex);
+#define LOCK() if(_threads_activated) pthread_mutex_lock(&_mutex)
+#define UNLOCK() if(_threads_activated) pthread_mutex_unlock(&_mutex)
+#define UNLOCK_FORCE() pthread_mutex_unlock(&_mutex)
#else
#define LOCK() do {} while (0)
#define UNLOCK() do {} while (0)
EINA_MAGIC_FAIL(d, EINA_MAGIC_MATRIXSPARSE); \
return __VA_ARGS__; \
} \
- } while(0);
+ } while(0)
#define EINA_MAGIC_CHECK_MATRIXSPARSE_ROW(d, ...) \
do { \
EINA_MAGIC_FAIL(d, EINA_MAGIC_MATRIXSPARSE_ROW); \
return __VA_ARGS__; \
} \
- } while(0);
+ } while(0)
#define EINA_MAGIC_CHECK_MATRIXSPARSE_CELL(d, ...) \
do { \
EINA_MAGIC_FAIL(d, EINA_MAGIC_MATRIXSPARSE_CELL); \
return __VA_ARGS__; \
} \
- } while(0);
+ } while(0)
#define EINA_MAGIC_CHECK_MATRIXSPARSE_ITERATOR(d, ...) \
do { \
EINA_MAGIC_FAIL(d, EINA_MAGIC_MATRIXSPARSE_ITERATOR); \
return __VA_ARGS__; \
} \
- } while(0);
+ } while(0)
struct _Eina_Matrixsparse_Cell
{
do { \
if (!EINA_MAGIC_CHECK((d), EINA_RECTANGLE_POOL_MAGIC)) \
EINA_MAGIC_FAIL((d), EINA_RECTANGLE_POOL_MAGIC); \
- } while (0);
+ } while (0)
#define EINA_MAGIC_CHECK_RECTANGLE_ALLOC(d) \
do { \
if (!EINA_MAGIC_CHECK((d), EINA_RECTANGLE_ALLOC_MAGIC)) \
EINA_MAGIC_FAIL((d), EINA_RECTANGLE_ALLOC_MAGIC); \
- } while (0);
+ } while (0)
static Eina_Mempool *_eina_rectangle_alloc_mp = NULL;
static Eina_Mempool *_eina_rectangle_mp = NULL;
unlock; \
return __VA_ARGS__; \
} \
- } while (0);
+ } while (0)
#define EINA_MAGIC_CHECK_STRINGSHARE_NODE(d, unlock) \
do { \
unlock; \
EINA_MAGIC_FAIL((d), EINA_MAGIC_STRINGSHARE_NODE); \
} \
- } while (0);
+ } while (0)
typedef struct _Eina_Stringshare Eina_Stringshare;
typedef struct _Eina_Stringshare_Node Eina_Stringshare_Node;
static pthread_mutex_t _mutex_small = PTHREAD_MUTEX_INITIALIZER;
//string >= 4
static pthread_mutex_t _mutex_big = PTHREAD_MUTEX_INITIALIZER;
-#define STRINGSHARE_LOCK_SMALL() if(_stringshare_threads_activated) pthread_mutex_lock(&_mutex_small);
-#define STRINGSHARE_UNLOCK_SMALL() if(_stringshare_threads_activated) pthread_mutex_unlock(&_mutex_small);
-#define STRINGSHARE_LOCK_BIG() if(_stringshare_threads_activated) pthread_mutex_lock(&_mutex_big);
+#define STRINGSHARE_LOCK_SMALL() if(_stringshare_threads_activated) pthread_mutex_lock(&_mutex_small)
+#define STRINGSHARE_UNLOCK_SMALL() if(_stringshare_threads_activated) pthread_mutex_unlock(&_mutex_small)
+#define STRINGSHARE_LOCK_BIG() if(_stringshare_threads_activated) pthread_mutex_lock(&_mutex_big)
#define STRINGSHARE_UNLOCK_BIG() if(_stringshare_threads_activated) pthread_mutex_unlock(&_mutex_big);
#else
#define STRINGSHARE_LOCK_SMALL() do {} while (0)