Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_dnd.c ewl_filelist_column.c ewl_filelist_tree.c
ewl_filepicker.c ewl_icon_theme.c ewl_misc.c ewl_tree2.c
ewl_tree2_view_scrolled.c
Log Message:
- cleanup
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_dnd.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- ewl_dnd.c 11 Mar 2007 22:35:56 -0000 1.43
+++ ewl_dnd.c 25 Mar 2007 04:57:09 -0000 1.44
@@ -513,6 +513,9 @@
static char *
ewl_dnd_type_stpcpy(char *dst, const char *src)
{
+ DENTER_FUNCTION(DLEVEL_STABLE);
+ DCHECK_PARAM_PTR_RET("dst", dst, dst);
+
while (*src) {
*dst = *src;
dst++;
@@ -520,6 +523,6 @@
}
*dst = '\0';
- return dst;
+ DRETURN_PTR(dst, DLEVEL_STABLE);
}
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_column.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- ewl_filelist_column.c 24 Mar 2007 23:25:43 -0000 1.29
+++ ewl_filelist_column.c 25 Mar 2007 04:57:09 -0000 1.30
@@ -52,7 +52,8 @@
}
static Ewl_Widget *
-ewl_filelist_column_view_cb_widget_fetch(void *data, int col, int row)
+ewl_filelist_column_view_cb_widget_fetch(void *data __UNUSED__,
+ int col __UNUSED__, int row __UNUSED__)
{
Ewl_Widget *list;
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_tree.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_filelist_tree.c 25 Mar 2007 04:25:58 -0000 1.11
+++ ewl_filelist_tree.c 25 Mar 2007 04:57:09 -0000 1.12
@@ -413,7 +413,8 @@
}
static
-Ewl_Widget *ewl_filelist_tree_cb_widget_fetch(void *data, int row, int column)
+Ewl_Widget *ewl_filelist_tree_cb_widget_fetch(void *data, int row __UNUSED__,
+ int column __UNUSED__)
{
Ewl_Widget *l;
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filepicker.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ewl_filepicker.c 23 Mar 2007 22:06:30 -0000 1.30
+++ ewl_filepicker.c 25 Mar 2007 04:57:09 -0000 1.31
@@ -832,12 +832,16 @@
static void
ewl_filepicker_filter_free_cb(Ewl_Filepicker_Filter *filter)
{
- if (!filter) return;
+ DENTER_FUNCTION(DLEVEL_STABLE);
+
+ if (!filter) DRETURN(DLEVEL_STABLE);
- IF_FREE(filter->name);
- IF_FREE(filter->filter);
+ IF_FREE(filter->name);
+ IF_FREE(filter->filter);
- FREE(filter);
+ FREE(filter);
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
}
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_icon_theme.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ewl_icon_theme.c 6 Mar 2007 23:48:42 -0000 1.18
+++ ewl_icon_theme.c 25 Mar 2007 04:57:09 -0000 1.19
@@ -141,6 +141,9 @@
{
char *ret;
+ DENTER_FUNCTION(DLEVEL_STABLE);
+ DCHECK_PARAM_PTR_RET("icon", icon, EWL_THEME_KEY_NOMATCH);
+
ret = ecore_hash_get(cache, key);
if (!ret)
{
@@ -150,7 +153,7 @@
ecore_hash_set(cache, strdup(key), ret);
}
- return ret;
+ DRETURN_PTR(ret, DLEVEL_STABLE);;
}
static void
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_misc.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -3 -r1.88 -r1.89
--- ewl_misc.c 12 Mar 2007 22:26:04 -0000 1.88
+++ ewl_misc.c 25 Mar 2007 04:57:09 -0000 1.89
@@ -1183,11 +1183,14 @@
char *
strdup(const char *str)
{
- char *dst = malloc(strlen(str) + 1);
- if (dst)
- strcpy(dst, str);
+ char *dst;
- return dst;
+ DENTER_FUNCTION(DLEVEL_STABLE);
+
+ dst = malloc(strlen(str) + 1);
+ if (dst) strcpy(dst, str);
+
+ DRETURN(dst, DLEVEL_STABLE);
}
#endif
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -3 -r1.69 -r1.70
--- ewl_tree2.c 25 Mar 2007 04:25:58 -0000 1.69
+++ ewl_tree2.c 25 Mar 2007 04:57:09 -0000 1.70
@@ -634,9 +634,8 @@
ewl_label_text_set(EWL_LABEL(child), " ");
}
else
- {
child = view->fetch(val, r, c);
- }
+
ewl_container_child_append(EWL_CONTAINER(cell), child);
ewl_widget_show(child);
@@ -646,7 +645,7 @@
static void
ewl_tree2_build_tree(Ewl_Tree2 *tree)
{
- int i;
+ unsigned int i;
void *mvc_data;
Ewl_Model *model;
@@ -677,7 +676,8 @@
ewl_tree2_build_tree_rows(Ewl_Tree2 *tree, Ewl_Model *model, void *data,
int colour, Ewl_Widget *parent, int hidden)
{
- int i = 0, column, row_count = 0;
+ int i = 0, row_count = 0;
+ unsigned int column;
DCHECK_PARAM_PTR("tree", tree);
DCHECK_PARAM_PTR("parent", parent);
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2_view_scrolled.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_tree2_view_scrolled.c 23 Mar 2007 22:06:31 -0000 1.6
+++ ewl_tree2_view_scrolled.c 25 Mar 2007 04:57:09 -0000 1.7
@@ -31,7 +31,8 @@
}
static Ewl_Widget *
-ewl_tree2_view_cb_widget_fetch(void *data, int col, int row)
+ewl_tree2_view_cb_widget_fetch(void *data __UNUSED__, int col __UNUSED__,
+ int row __UNUSED__)
{
Ewl_Widget *tree;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs