Enlightenment CVS committal
Author : werkt
Project : e17
Module : proto
Dir : e17/proto/exml/src
Modified Files:
EXML.h exml.c
Log Message:
Typo in CHECK_PARAM call.
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/exml/src/EXML.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- EXML.h 24 Sep 2004 16:07:55 -0000 1.2
+++ EXML.h 25 Sep 2004 21:16:40 -0000 1.3
@@ -57,6 +57,7 @@
inline char *exml_goto_top(EXML *xml);
inline char *exml_goto(EXML *xml, char *tag, char *value);
inline char *exml_next(EXML *xml);
+inline char *exml_next_nomove(EXML *xml);
inline char *exml_down(EXML *xml);
inline char *exml_up(EXML *xml);
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/exml/src/exml.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- exml.c 24 Sep 2004 16:07:55 -0000 1.2
+++ exml.c 25 Sep 2004 21:16:40 -0000 1.3
@@ -336,6 +336,40 @@
}
/**
+ * Move the current xml to its next sibling, return NULL and move to parent
+ * at the end of the list
+ * @param xml The xml document
+ * @return The current xml tag name or NULL
+ * @ingroup EXML_Traversal_Group
+ */
+char *exml_next_nomove(EXML *xml)
+{
+ Ecore_List *p_list;
+ EXML_Node *parent, *cur;
+
+ CHECK_PARAM_POINTER_RETURN("xml", xml, NULL);
+
+ if( xml->current ) {
+ cur = xml->current;
+ parent = cur->parent;
+
+ if( parent ) {
+ p_list = parent->children;
+
+ ecore_list_goto( p_list, xml->current );
+ ecore_list_next( p_list );
+ if( (xml->current = ecore_list_current( p_list )) == NULL ) {
+ xml->current = cur;
+ return NULL;
+ }
+ } else
+ xml->current = NULL;
+ }
+
+ return xml->current ? xml->current->tag : NULL;
+}
+
+/**
* Move the current xml to its first child if there are children
* @param xml The xml document
* @return The current xml tag name
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs