[PATCH 1/1] environment: export_/getenv_ull as inline ifndef CONFIG_ENVIRONMENT_VARIABLES
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Tue Jan 10 19:53:10 EST 2012
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
include/environment.h | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/include/environment.h b/include/environment.h
index 6d38755..7ece7c9 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -47,6 +47,8 @@ char *var_name(struct variable_d *);
#ifdef CONFIG_ENVIRONMENT_VARIABLES
const char *getenv(const char *);
int setenv(const char *, const char *);
+void export_env_ull(const char *name, unsigned long long val);
+unsigned long long getenv_ull(const char *name);
#else
static inline char *getenv(const char *var)
{
@@ -57,11 +59,13 @@ static inline int setenv(const char *var, const char *val)
{
return 0;
}
+static inline void export_env_ull(const char *name, unsigned long long val) {}
+static inline unsigned long long getenv_ull(const char *name)
+{
+ return 0;
+}
#endif
-void export_env_ull(const char *name, unsigned long long val);
-unsigned long long getenv_ull(const char *name);
-
int env_pop_context(void);
int env_push_context(void);
--
1.7.7
More information about the barebox
mailing list