Wed, 27 Feb 2013 11:37:27 +0100
removed brain-afk code
ucx/dlist.c | file | annotate | diff | comparison | revisions | |
ucx/dlist.h | file | annotate | diff | comparison | revisions | |
ucx/list.c | file | annotate | diff | comparison | revisions | |
ucx/list.h | file | annotate | diff | comparison | revisions | |
ucx/ucx.h | file | annotate | diff | comparison | revisions |
1.1 --- a/ucx/dlist.c Wed Feb 27 10:57:40 2013 +0100 1.2 +++ b/ucx/dlist.c Wed Feb 27 11:37:27 2013 +0100 1.3 @@ -67,7 +67,7 @@ 1.4 return nl; 1.5 } 1.6 1.7 -UcxDlist *ucx_dlist_concat(UcxDlist *restrict l1, UcxDlist *restrict l2) { 1.8 +UcxDlist *ucx_dlist_concat(UcxDlist *l1, UcxDlist *l2) { 1.9 if (l1 == NULL) { 1.10 return l2; 1.11 } else {
2.1 --- a/ucx/dlist.h Wed Feb 27 10:57:40 2013 +0100 2.2 +++ b/ucx/dlist.h Wed Feb 27 11:37:27 2013 +0100 2.3 @@ -15,8 +15,8 @@ 2.4 typedef struct UcxDlist UcxDlist; 2.5 struct UcxDlist { 2.6 void *data; 2.7 - UcxDlist *restrict next; 2.8 - UcxDlist *restrict prev; 2.9 + UcxDlist *next; 2.10 + UcxDlist *prev; 2.11 }; 2.12 2.13 UcxDlist *ucx_dlist_clone(UcxDlist *l, copy_func fnc, void* data); 2.14 @@ -26,7 +26,7 @@ 2.15 void ucx_dlist_free(UcxDlist *l); 2.16 UcxDlist *ucx_dlist_append(UcxDlist *l, void *data); 2.17 UcxDlist *ucx_dlist_prepend(UcxDlist *l, void *data); 2.18 -UcxDlist *ucx_dlist_concat(UcxDlist *restrict l1, UcxDlist *restrict l2); 2.19 +UcxDlist *ucx_dlist_concat(UcxDlist *l1, UcxDlist *l2); 2.20 UcxDlist *ucx_dlist_last(const UcxDlist *l); 2.21 UcxDlist *ucx_dlist_get(const UcxDlist *l, int index); 2.22 size_t ucx_dlist_size(const UcxDlist *l);
3.1 --- a/ucx/list.c Wed Feb 27 10:57:40 2013 +0100 3.2 +++ b/ucx/list.c Wed Feb 27 11:37:27 2013 +0100 3.3 @@ -64,7 +64,7 @@ 3.4 return nl; 3.5 } 3.6 3.7 -UcxList *ucx_list_concat(UcxList *restrict l1, UcxList *restrict l2) { 3.8 +UcxList *ucx_list_concat(UcxList *l1, UcxList *l2) { 3.9 if (l1 == NULL) { 3.10 return l2; 3.11 } else {
4.1 --- a/ucx/list.h Wed Feb 27 10:57:40 2013 +0100 4.2 +++ b/ucx/list.h Wed Feb 27 11:37:27 2013 +0100 4.3 @@ -25,7 +25,7 @@ 4.4 void ucx_list_free(UcxList *l); 4.5 UcxList *ucx_list_append(UcxList *l, void *data); 4.6 UcxList *ucx_list_prepend(UcxList *l, void *data); 4.7 -UcxList *ucx_list_concat(UcxList *restrict l1, UcxList *restrict l2); 4.8 +UcxList *ucx_list_concat(UcxList *l1, UcxList *l2); 4.9 UcxList *ucx_list_last(const UcxList *l); 4.10 UcxList *ucx_list_get(const UcxList *l, int index); 4.11 size_t ucx_list_size(const UcxList *l);
5.1 --- a/ucx/ucx.h Wed Feb 27 10:57:40 2013 +0100 5.2 +++ b/ucx/ucx.h Wed Feb 27 11:37:27 2013 +0100 5.3 @@ -21,16 +21,6 @@ 5.4 #define UCX_FOREACH(type,list,elem) \ 5.5 for (type elem = list ; elem != NULL ; elem = elem->next) 5.6 5.7 -#ifdef __cplusplus 5.8 -#define ucx_dynarray_new(type,identifier,length)\ 5.9 - type* identifier; identifier = new type[length] 5.10 -#define ucx_dynarray_free(identifier) delete [] identifier 5.11 -#else 5.12 -#define ucx_dynarray_new(type,identifier,length)\ 5.13 - type identifier[length] 5.14 -#define ucx_dynarray_free(identifier) 5.15 -#endif 5.16 - 5.17 /* element1,element2,custom data -> {-1,0,1} */ 5.18 typedef int(*cmp_func)(void*,void*,void*); 5.19