aboutsummaryrefslogtreecommitdiffstats
path: root/evaluator.h
diff options
context:
space:
mode:
Diffstat (limited to 'evaluator.h')
-rw-r--r--evaluator.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/evaluator.h b/evaluator.h
index 009b04b..76b4912 100644
--- a/evaluator.h
+++ b/evaluator.h
@@ -1,9 +1,9 @@
-/* $Id: evaluator.h 754 2007-01-21 06:19:40Z michael $
- * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/evaluator.h $
+/* $Id: evaluator.h 1092 2010-01-23 12:04:55Z volker $
+ * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/evaluator.h $
*
* expression evaluation
*
- * Copyright (C) 2003 Michael Reinelt <reinelt@eunet.at>
+ * Copyright (C) 2003 Michael Reinelt <michael@reinelt.co.at>
* Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
*
* This file is part of LCD4Linux.
@@ -40,6 +40,12 @@ typedef struct {
char *string;
} RESULT;
+/* strndup() may be not available on several platforms */
+#ifndef HAVE_STRNDUP
+#include <string.h>
+char *strndup(const char *source, size_t len);
+#endif
+
int SetVariable(const char *name, RESULT * value);
int SetVariableNumeric(const char *name, const double value);
int SetVariableString(const char *name, const char *value);