aboutsummaryrefslogtreecommitdiff
path: root/apps/interpreters/ficl/src/nuttx.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-06-01 01:04:32 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-06-01 01:04:32 +0200
commit5375bb5b86e266157ceceef08c367da711b8144e (patch)
tree88bc81cab11d8f0b2b6f9391f803051c081b2ecb /apps/interpreters/ficl/src/nuttx.c
parent27ee36b2049167a1272122548fe61aa2993d79c1 (diff)
downloadpx4-firmware-5375bb5b86e266157ceceef08c367da711b8144e.tar.gz
px4-firmware-5375bb5b86e266157ceceef08c367da711b8144e.tar.bz2
px4-firmware-5375bb5b86e266157ceceef08c367da711b8144e.zip
Cleanup, WIP, needs a NuttX checkout to Firmware/NuttX now
Diffstat (limited to 'apps/interpreters/ficl/src/nuttx.c')
-rw-r--r--apps/interpreters/ficl/src/nuttx.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/apps/interpreters/ficl/src/nuttx.c b/apps/interpreters/ficl/src/nuttx.c
deleted file mode 100644
index 16b3fa1db..000000000
--- a/apps/interpreters/ficl/src/nuttx.c
+++ /dev/null
@@ -1,65 +0,0 @@
-#include <sys/stat.h>
-#include <sys/statfs.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-
-#include "ficl.h"
-
-void *ficlMalloc(size_t size)
-{
- return malloc(size);
-}
-
-void *ficlRealloc(void *p, size_t size)
-{
- return realloc(p, size);
-}
-
-void ficlFree(void *p)
-{
- free(p);
-}
-
-void ficlCallbackDefaultTextOut(ficlCallback *callback, char *message)
-{
- FICL_IGNORE(callback);
- if (message != NULL)
- fputs(message, stdout);
- else
- fflush(stdout);
- return;
-}
-
-int ficlFileStatus(char *filename, int *status)
-{
- struct stat statbuf;
- if (stat(filename, &statbuf) == 0)
- {
- *status = statbuf.st_mode;
- return 0;
- }
- *status = ENOENT;
- return -1;
-}
-
-long ficlFileSize(ficlFile *ff)
-{
- struct stat statbuf;
- if (ff == NULL)
- return -1;
-
- statbuf.st_size = -1;
- if (fstat(fileno(ff->f), &statbuf) != 0)
- return -1;
-
- return statbuf.st_size;
-}
-
-void ficlSystemCompilePlatform(ficlSystem *system)
-{
- return;
-}
-
-