Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/data
Modified Files:
Makefile.am evas_list.c
Added Files:
evas_mempool.c evas_mempool.h
Log Message:
* move evas_mempool from main.c to it's own file in data/ as it's only
used by evas_list
* add a header files for evas_cache, evas_path and evas_module
* remove trailing spaces in evas_list.c
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/data/Makefile.am,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- Makefile.am 9 Jul 2008 16:50:32 -0000 1.12
+++ Makefile.am 10 Jul 2008 16:38:54 -0000 1.13
@@ -16,6 +16,9 @@
evas_array.c \
evas_object_list.c \
evas_stringshare.c \
-evas_array_hash.c
+evas_array_hash.c \
+evas_mempool.c
libevas_data_la_DEPENDENCIES = $(top_builddir)/config.h
+
+EXTRA_DIST = evas_mempool.h
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/data/evas_list.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- evas_list.c 8 Feb 2008 19:16:13 -0000 1.31
+++ evas_list.c 10 Jul 2008 16:38:54 -0000 1.32
@@ -2,7 +2,7 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "evas_common.h"
-#include "evas_private.h"
+#include "evas_mempool.h"
typedef struct _Evas_List_Accounting Evas_List_Accounting;
@@ -26,7 +26,7 @@
80,
0, NULL, NULL
};
-
+
/**
* @defgroup Evas_List_Data_Group Linked List Creation Functions
*
@@ -211,7 +211,7 @@
evas_list_append_relative_list(Evas_List *list, const void *data, Evas_List
*relative)
{
Evas_List *new_l;
-
+
if ((!list) || (!relative)) return evas_list_append(list, data);
_evas_list_alloc_error = 0;
new_l = evas_mempool_malloc(&_evas_list_mempool, sizeof(Evas_List));
@@ -228,7 +228,7 @@
}
else
new_l->next = NULL;
-
+
relative->next = new_l;
new_l->prev = relative;
new_l->accounting = list->accounting;
@@ -300,7 +300,7 @@
evas_list_prepend_relative_list(Evas_List *list, const void *data, Evas_List
*relative)
{
Evas_List *new_l;
-
+
if ((!list) || (!relative)) return evas_list_prepend(list, data);
_evas_list_alloc_error = 0;
new_l = evas_mempool_malloc(&_evas_list_mempool, sizeof(Evas_List));
@@ -748,7 +748,7 @@
evas_list_nth(const Evas_List *list, int n)
{
Evas_List *l;
-
+
l = evas_list_nth_list(list, n);
return l ? l->data : NULL;
}
@@ -782,7 +782,7 @@
const Evas_List *l;
/* check for non-existing nodes */
- if ((!list) || (n < 0) ||
+ if ((!list) || (n < 0) ||
(n > (list->accounting->count - 1)))
return NULL;
@@ -793,7 +793,7 @@
{
for (i = list->accounting->count - 1,
l = list->accounting->last;
- l;
+ l;
l = l->prev, i--)
{
if (i == n) return (Evas_List *)l;
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs