From 09a78560596ad9eeaf7f1737b716e9f724e2cd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 25 May 2012 16:11:08 +0200 Subject: add prefix to #define identifiers --- src/lib/eiotas_iota.c | 6 +++--- src/lib/eiotas_private.h | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lib/eiotas_iota.c b/src/lib/eiotas_iota.c index 79c45b2..1a1f7f8 100644 --- a/src/lib/eiotas_iota.c +++ b/src/lib/eiotas_iota.c @@ -26,7 +26,7 @@ int eiotas_iota_init(Eiotas_Iota *iota, const char *name, Eiotas_Iota *parent, Eiotas_Type type) { int ln, lp; - char tmp[MAX_PATH_LENGTH]; + char tmp[EIOTAS_MAX_PATH_LENGTH]; ln = strlen(name); if(name==NULL || ln==0) { @@ -39,8 +39,8 @@ int eiotas_iota_init(Eiotas_Iota *iota, const char *name, Eiotas_Iota *parent, E iota->parent = parent; if(parent) { lp = eina_stringshare_strlen(parent->path); - if((ln+lp+2)>MAX_PATH_LENGTH) { - ERR("path length %d is > MAX_PATH_LENGTH (%d)",(ln+lp+2),MAX_PATH_LENGTH); + if((ln+lp+2)>EIOTAS_MAX_PATH_LENGTH) { + ERR("path length %d is > EIOTAS_MAX_PATH_LENGTH (%d)",(ln+lp+2),EIOTAS_MAX_PATH_LENGTH); return 1; } memcpy(tmp,parent->path,lp); diff --git a/src/lib/eiotas_private.h b/src/lib/eiotas_private.h index 64c0b90..c9c8388 100644 --- a/src/lib/eiotas_private.h +++ b/src/lib/eiotas_private.h @@ -30,8 +30,10 @@ #define EINA_LOG_DOMAIN_DEFAULT eiotas_log_dom #define EIOTA_LOG_DOMAIN "eiotas" -#define MAX_PATH_LENGTH 256 -#define PATH_SEP '/' +#define EIOTAS_MAX_PATH_LENGTH 256 +#define EIOTAS_MAX_ACTION_LENGTH 16 +#define EIOTAS_PATH_SEP '/' +#define EIOTAS_PARTICLE_ARRAY_STEP 3 void eiotas_iota_desinit(Eiotas_Iota *iota); -- cgit v1.1-2-g2b99