Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        Ecore_Data.h ecore_list.c 


Log Message:
Use const on read-only pointer.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/Ecore_Data.h,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -3 -r1.41 -r1.42
--- Ecore_Data.h        25 Mar 2007 16:44:11 -0000      1.41
+++ Ecore_Data.h        15 Apr 2007 17:20:59 -0000      1.42
@@ -120,7 +120,7 @@
    EAPI void *ecore_list_goto_first(Ecore_List * list);
    EAPI void *ecore_list_goto_last(Ecore_List * list);
    EAPI void *ecore_list_goto_index(Ecore_List * list, int index);
-   EAPI void *ecore_list_goto(Ecore_List * list, void *_data);
+   EAPI void *ecore_list_goto(Ecore_List * list, const void *_data);
    
    /* Traversing the list and returning data */
    EAPI void *ecore_list_next(Ecore_List * list);
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_list.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- ecore_list.c        12 Feb 2007 22:47:46 -0000      1.38
+++ ecore_list.c        15 Apr 2007 17:21:00 -0000      1.39
@@ -24,7 +24,7 @@
 static void *_ecore_list_next(Ecore_List * list);
 static void *_ecore_list_goto_last(Ecore_List * list);
 static void *_ecore_list_goto_first(Ecore_List * list);
-static void *_ecore_list_goto(Ecore_List * list, void *data);
+static void *_ecore_list_goto(Ecore_List * list, const void *data);
 static void *_ecore_list_goto_index(Ecore_List *list, int index);
 
 /* Iterative functions */
@@ -834,7 +834,7 @@
  * @ingroup Ecore_Data_List_Traverse_Group
  */
 EAPI inline void *
-ecore_list_goto(Ecore_List *list, void *data)
+ecore_list_goto(Ecore_List *list, const void *data)
 {
    void *ret;
 
@@ -847,7 +847,7 @@
 
 /* Set the current position to the node containing data */
 static void *
-_ecore_list_goto(Ecore_List *list, void *data)
+_ecore_list_goto(Ecore_List *list, const void *data)
 {
    int index;
    Ecore_List_Node *node;



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to