summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo C2014-08-24 15:30:08 +0200
committerLeo C2014-08-30 13:38:54 +0200
commite2aab84a226d6e216bb18069b7ec2086bc536089 (patch)
tree8a126d78c56524e87d3ef1e673dcd385d5d399c9
parentdeb08cb66fa85fd0dc011d642e1a707da0477d9b (diff)
downloadz180-stamp-e2aab84a226d6e216bb18069b7ec2086bc536089.zip
initial __memx declarations
Signed-off-by: Leo C <erbl259-lmu@yahoo.de>
-rw-r--r--avr/env.c8
-rw-r--r--include/env.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/avr/env.c b/avr/env.c
index 7981116..b162767 100644
--- a/avr/env.c
+++ b/avr/env.c
@@ -322,7 +322,7 @@ int env_init(void)
static
-env_item_t *envlist_search(const char *name)
+env_item_t *envlist_search(const __memx char *name)
{
return bsearch(name, env_list, entrycount,
sizeof(env_item_t), comp_env_key_item);
@@ -407,7 +407,7 @@ int envlist_delete(const char *name)
static
-env_item_t *envlist_get(const char *name, uint_fast8_t flag)
+env_item_t *envlist_get(const __memx char *name, uint_fast8_t flag)
{
env_item_t *ep;
@@ -434,7 +434,7 @@ env_item_t *envlist_get(const char *name, uint_fast8_t flag)
}
-char *getenv(const char *name)
+char *getenv(const __memx char *name)
{
env_item_t *ep;
char *ret = NULL;
@@ -785,7 +785,7 @@ int setenv_hex(const char *varname, unsigned long value)
* found
* @return the decoded value, or default_val if not found
*/
-unsigned long getenv_ulong(const char *name, int base, unsigned long default_val)
+unsigned long getenv_ulong(const __memx char *name, int base, unsigned long default_val)
{
char buf[16];
unsigned long value;
diff --git a/include/env.h b/include/env.h
index 0a12821..4f21012 100644
--- a/include/env.h
+++ b/include/env.h
@@ -3,8 +3,8 @@
int env_init(void);
-char *getenv(const char *name);
-unsigned long getenv_ulong(const char *name, int base, unsigned long default_val);
+char *getenv(const __memx char *name);
+unsigned long getenv_ulong(const __memx char *name, int base, unsigned long default_val);
#if defined(CONFIG_AUTO_COMPLETE)
int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);