mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 03:53:34 +08:00
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:
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user