summaryrefslogtreecommitdiff
path: root/apps/interpreters/bas/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/interpreters/bas/global.c')
-rw-r--r--apps/interpreters/bas/global.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/apps/interpreters/bas/global.c b/apps/interpreters/bas/global.c
index cb6ead7a7..cf017393a 100644
--- a/apps/interpreters/bas/global.c
+++ b/apps/interpreters/bas/global.c
@@ -1,5 +1,5 @@
/* Global variables and functions. */
-/* #includes */ /*{{{C}}}*//*{{{*/
+
#include <nuttx/config.h>
#include "config.h"
@@ -7,12 +7,6 @@
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
-#ifdef HAVE_GETTEXT
-#include <libintl.h>
-#define _(String) gettext(String)
-#else
-#define _(String) String
-#endif
#include <math.h>
#include <stdarg.h>
#include <stdlib.h>
@@ -35,14 +29,12 @@
#endif
/*}}}*/
-#ifdef CONFIG_INTERPRETER_BAS_HAVE_ENVIRON
-extern char **environ;
-#endif
-
#ifndef RAND_MAX
# define RAND_MAX 32767
#endif
+#define _(String) String
+
static int wildcardmatch(const char *a, const char *pattern) /*{{{*/
{
while (*pattern)
@@ -1340,11 +1332,7 @@ static struct Value *fn_tan(struct Value *v, struct Auto *stack) /*{{{*/
/*}}}*/
static struct Value *fn_timei(struct Value *v, struct Auto *stack) /*{{{*/
{
-#ifdef CONFIG_INTERPRETER_BAS_HAVE_SYSCFG
- return Value_new_INTEGER(v,(unsigned long)(clock_systimer()/(sysconf(_SC_CLK_TCK)/100.0)));
-#else
return Value_new_INTEGER(v,(unsigned long)(clock_systimer()/(CLK_TCK/100.0)));
-#endif
}
/*}}}*/
static struct Value *fn_times(struct Value *v, struct Auto *stack) /*{{{*/