summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
authorbustico2008-02-06 16:32:54 +0000
committerbustico2008-02-06 16:32:54 +0000
commitee2e694ebba179f1c75764a7311df717fa3925cd (patch)
treea9da6c6d525241725597c7d641c90436239c91d9 /src/list.h
parentc50b5d38c1fc5491e8c99c8a86b043d39e074acc (diff)
downloadivy-c-ee2e694ebba179f1c75764a7311df717fa3925cd.zip
ivy-c-ee2e694ebba179f1c75764a7311df717fa3925cd.tar.gz
ivy-c-ee2e694ebba179f1c75764a7311df717fa3925cd.tar.bz2
ivy-c-ee2e694ebba179f1c75764a7311df717fa3925cd.tar.xz
* fix realloc buffer size when big message
* complete change of internal structures for performance optimisation * experimental parralelized version for performance optimisation (use and need openmp) which scale well for regexp matching on multicore/multi processor gear.
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index 968f619..2a7ea84 100644
--- a/src/list.h
+++ b/src/list.h
@@ -54,6 +54,9 @@
on place le code d'initialisation de l'objet entre START et END
pour eviter de chainer un objet non initialise
*/
+
+ /* printf ("sizeof (*"#p") = %d\n", sizeof( *p )); \ */ \
+
#define IVY_LIST_ADD_START(list, p ) \
if ((p = (TYPEOF(p)) (malloc( sizeof( *p ))))) \
{ \
@@ -75,6 +78,9 @@ pour eviter de chainer un objet non initialise
#define IVY_LIST_EACH_SAFE( list, p, next )\
for ( p = list ; (next = p ? p->next: p ),p ; p = next )
+#define IVY_LIST_IS_EMPTY( list ) \
+ list == NULL
+
#define IVY_LIST_EMPTY( list ) \
{ \
TYPEOF(list) p; \