Fixes for z80 compilation with SDCC toolchain. There are still a few header file and linker issues

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5149 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-09-13 22:04:47 +00:00
parent 491a83acb4
commit ae33fc3ed0
35 changed files with 282 additions and 165 deletions
+2 -2
View File
@@ -39,8 +39,6 @@
#include <nuttx/config.h>
#ifdef CONFIG_ARCH_LOWGETC
#include <stdio.h>
#include <assert.h>
#include <errno.h>
@@ -49,6 +47,8 @@
#include "lib_internal.h"
#ifdef CONFIG_ARCH_LOWGETC
/****************************************************************************
* Private Functions
****************************************************************************/
+5 -5
View File
@@ -91,13 +91,13 @@ static const char spaces[] = " \t\n\r\f\v";
*
****************************************************************************/
int sscanf(const char *buf, const char *fmt, ...)
int sscanf(FAR const char *buf, FAR const char *fmt, ...)
{
va_list ap;
int count;
va_start(ap, fmt);
count = vsscanf((char*)buf, fmt, ap);
count = vsscanf((FAR char*)buf, fmt, ap);
va_end(ap);
return count;
}
@@ -109,15 +109,15 @@ int sscanf(const char *buf, const char *fmt, ...)
* ANSI standard vsscanf implementation.
*
****************************************************************************/
int vsscanf(char *buf, const char *s, va_list ap)
int vsscanf(FAR char *buf, FAR const char *s, va_list ap)
{
int count;
int noassign;
int width;
int base = 10;
int lflag;
char *tv;
const char *tc;
FAR char *tv;
FAR const char *tc;
char tmp[MAXLN];
lvdbg("vsscanf: buf=\"%s\" fmt=\"%s\"\n", buf, s);