From 1d296ab57e93601c5667ee0d5711b9105028152f Mon Sep 17 00:00:00 2001 From: caro Date: Sat, 17 Sep 2011 06:29:23 +0000 Subject: [PATCH] whitespaces-- and comments git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@63446 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_simple_xml_parser.c | 6 ++++++ src/lib/eina_xattr.c | 33 ++++++++++++++++++++++++++++----- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/lib/eina_simple_xml_parser.c b/src/lib/eina_simple_xml_parser.c index d8ebafd..2757578 100644 --- a/src/lib/eina_simple_xml_parser.c +++ b/src/lib/eina_simple_xml_parser.c @@ -254,6 +254,12 @@ eina_simple_xml_shutdown(void) return EINA_TRUE; } + +/*============================================================================* + * API * + *============================================================================*/ + + EAPI Eina_Bool eina_simple_xml_parse(const char *buf, unsigned buflen, Eina_Bool strip, Eina_Simple_XML_Cb func, const void *data) { diff --git a/src/lib/eina_xattr.c b/src/lib/eina_xattr.c index a3aa05f..6031da2 100644 --- a/src/lib/eina_xattr.c +++ b/src/lib/eina_xattr.c @@ -35,6 +35,14 @@ #include "eina_xattr.h" #include "eina_convert.h" +/*============================================================================* + * Local * + *============================================================================*/ + +/** + * @cond LOCAL + */ + typedef struct _Eina_Xattr_Iterator Eina_Xattr_Iterator; struct _Eina_Xattr_Iterator @@ -74,6 +82,21 @@ _eina_xattr_ls_iterator_free(Eina_Xattr_Iterator *it) } #endif +/** + * @endcond + */ + + +/*============================================================================* + * Global * + *============================================================================*/ + + +/*============================================================================* + * API * + *============================================================================*/ + + EAPI Eina_Iterator * eina_xattr_ls(const char *file) { @@ -89,7 +112,7 @@ eina_xattr_ls(const char *file) it = calloc(1, sizeof (Eina_Xattr_Iterator) + length - 1); if (!it) return NULL; - EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR); + EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR); it->length = listxattr(file, it->xattr, length); if (it->length != length) @@ -146,8 +169,8 @@ eina_xattr_set(const char *file, const char *attribute, const void *data, ssize_ { int iflags; - EINA_SAFETY_ON_NULL_RETURN_VAL(file, EINA_FALSE); - EINA_SAFETY_ON_NULL_RETURN_VAL(attribute, EINA_FALSE); + EINA_SAFETY_ON_NULL_RETURN_VAL(file, EINA_FALSE); + EINA_SAFETY_ON_NULL_RETURN_VAL(attribute, EINA_FALSE); EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE); EINA_SAFETY_ON_TRUE_RETURN_VAL(!(length > 0 && length < 2 * 1024 * 1024), EINA_FALSE); @@ -172,7 +195,7 @@ eina_xattr_set(const char *file, const char *attribute, const void *data, ssize_ EAPI Eina_Bool eina_xattr_string_set(const char *file, const char *attribute, const char *data, Eina_Xattr_Flags flags) { - EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE); + EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE); return eina_xattr_set(file, attribute, data, strlen(data) + 1, flags); } @@ -215,7 +238,7 @@ eina_xattr_double_get(const char *file, const char *attribute, double *value) tmp = eina_xattr_string_get(file, attribute); if (!tmp) return EINA_FALSE; - + if (!eina_convert_atod(tmp, strlen(tmp), &m, &e)) { free(tmp); -- 2.7.4