mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-28 04:23:38 +01:00
stdlib: restore private headers
This commit is contained in:
parent
09b33ca2fa
commit
d8a55b728d
18 changed files with 25 additions and 39 deletions
|
@ -1,5 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <fxlibc/scanf.h>
|
||||
#include "stdio_p.h"
|
||||
|
||||
int fscanf(FILE * restrict fp, char const * restrict fmt, ...)
|
||||
{
|
||||
|
@ -14,4 +14,4 @@ int fscanf(FILE * restrict fp, char const * restrict fmt, ...)
|
|||
|
||||
va_end(args);
|
||||
return count;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <fxlibc/scanf.h>
|
||||
#include "stdio_p.h"
|
||||
|
||||
int scanf(char const * restrict fmt, ...)
|
||||
{
|
||||
|
@ -14,4 +14,4 @@ int scanf(char const * restrict fmt, ...)
|
|||
|
||||
va_end(args);
|
||||
return count;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "../stdio_p.h"
|
||||
#include "../../stdlib/stdlib_p.h"
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <fxlibc/scanf.h>
|
||||
#include <fxlibc/stdlib_p.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
void __scanf_start(struct __scanf_input *in)
|
||||
|
@ -666,4 +666,4 @@ int __scanf(
|
|||
|
||||
__scanf_end( in );
|
||||
return validrets;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <fxlibc/scanf.h>
|
||||
#include "stdio_p.h"
|
||||
|
||||
int sscanf(const char * restrict str, char const * restrict fmt, ...)
|
||||
{
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
#ifndef __SCANF_H__
|
||||
# define __SCANF_H__
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __STDIO_P_H__
|
||||
# define __STDIO_P_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
@ -69,11 +63,4 @@ static inline int __scanf_peek(struct __scanf_input *__in)
|
|||
/* Close the input by unsending the buffer once finished. */
|
||||
void __scanf_end(struct __scanf_input *__in);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* __SCANF_H__ */
|
||||
#endif /* __STDIO_P_H__ */
|
|
@ -1,5 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <fxlibc/scanf.h>
|
||||
#include "stdio_p.h"
|
||||
|
||||
int vfscanf(FILE * restrict fp, char const * restrict fmt, va_list args)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <fxlibc/scanf.h>
|
||||
#include "stdio_p.h"
|
||||
|
||||
int vscanf(char const * restrict fmt, va_list args)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <fxlibc/scanf.h>
|
||||
#include "stdio_p.h"
|
||||
|
||||
int vsscanf(const char * restrict str, char const * restrict fmt, va_list args)
|
||||
{
|
||||
|
@ -9,4 +9,4 @@ int vsscanf(const char * restrict str, char const * restrict fmt, va_list args)
|
|||
};
|
||||
|
||||
return __scanf(&in, fmt, &args);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <fxlibc/scanf.h>
|
||||
#include "../stdio/stdio_p.h"
|
||||
|
||||
/*
|
||||
** Parse an integer from a string. This is the base function for strtol,
|
|
@ -1,4 +1,4 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
int __strto_int(struct __scanf_input *input, int base, long *outl,
|
||||
long long *outll, bool use_unsigned)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <errno.h>
|
||||
|
||||
double strtod(char const * restrict ptr, char ** restrict endptr)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <errno.h>
|
||||
|
||||
float strtof(char const * restrict ptr, char ** restrict endptr)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <errno.h>
|
||||
|
||||
long int strtol(char const * restrict ptr, char ** restrict endptr, int base)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <errno.h>
|
||||
|
||||
long double strtold(char const * restrict ptr, char ** restrict endptr)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <errno.h>
|
||||
|
||||
long long int strtoll(char const * restrict ptr, char ** restrict endptr,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <errno.h>
|
||||
|
||||
unsigned long int strtoul(char const * restrict ptr, char ** restrict endptr,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <fxlibc/stdlib_p.h>
|
||||
#include "stdlib_p.h"
|
||||
#include <errno.h>
|
||||
|
||||
unsigned long long int strtoull(char const * restrict ptr,
|
||||
|
|
Loading…
Reference in a new issue