mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-28 20:43: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 <stdio.h>
|
||||||
#include <fxlibc/scanf.h>
|
#include "stdio_p.h"
|
||||||
|
|
||||||
int fscanf(FILE * restrict fp, char const * restrict fmt, ...)
|
int fscanf(FILE * restrict fp, char const * restrict fmt, ...)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/scanf.h>
|
#include "stdio_p.h"
|
||||||
|
|
||||||
int scanf(char const * restrict fmt, ...)
|
int scanf(char const * restrict fmt, ...)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
#include "../stdio_p.h"
|
||||||
|
#include "../../stdlib/stdlib_p.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <fxlibc/scanf.h>
|
|
||||||
#include <fxlibc/stdlib_p.h>
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
void __scanf_start(struct __scanf_input *in)
|
void __scanf_start(struct __scanf_input *in)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/scanf.h>
|
#include "stdio_p.h"
|
||||||
|
|
||||||
int sscanf(const char * restrict str, char const * restrict fmt, ...)
|
int sscanf(const char * restrict str, char const * restrict fmt, ...)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
#ifndef __SCANF_H__
|
#ifndef __STDIO_P_H__
|
||||||
# define __SCANF_H__
|
# define __STDIO_P_H__
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdbool.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. */
|
/* Close the input by unsending the buffer once finished. */
|
||||||
void __scanf_end(struct __scanf_input *__in);
|
void __scanf_end(struct __scanf_input *__in);
|
||||||
|
|
||||||
|
#endif /* __STDIO_P_H__ */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __SCANF_H__ */
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/scanf.h>
|
#include "stdio_p.h"
|
||||||
|
|
||||||
int vfscanf(FILE * restrict fp, char const * restrict fmt, va_list args)
|
int vfscanf(FILE * restrict fp, char const * restrict fmt, va_list args)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/scanf.h>
|
#include "stdio_p.h"
|
||||||
|
|
||||||
int vscanf(char const * restrict fmt, va_list args)
|
int vscanf(char const * restrict fmt, va_list args)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fxlibc/scanf.h>
|
#include "stdio_p.h"
|
||||||
|
|
||||||
int vsscanf(const char * restrict str, char const * restrict fmt, va_list args)
|
int vsscanf(const char * restrict str, char const * restrict fmt, va_list args)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.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,
|
** 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 <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
#include <fxlibc/stdlib_p.h>
|
#include "stdlib_p.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
int __strto_int(struct __scanf_input *input, int base, long *outl,
|
int __strto_int(struct __scanf_input *input, int base, long *outl,
|
||||||
long long *outll, bool use_unsigned)
|
long long *outll, bool use_unsigned)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <fxlibc/stdlib_p.h>
|
#include "stdlib_p.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
double strtod(char const * restrict ptr, char ** restrict endptr)
|
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>
|
#include <errno.h>
|
||||||
|
|
||||||
float strtof(char const * restrict ptr, char ** restrict endptr)
|
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>
|
#include <errno.h>
|
||||||
|
|
||||||
long int strtol(char const * restrict ptr, char ** restrict endptr, int base)
|
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>
|
#include <errno.h>
|
||||||
|
|
||||||
long double strtold(char const * restrict ptr, char ** restrict endptr)
|
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>
|
#include <errno.h>
|
||||||
|
|
||||||
long long int strtoll(char const * restrict ptr, char ** restrict endptr,
|
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>
|
#include <errno.h>
|
||||||
|
|
||||||
unsigned long int strtoul(char const * restrict ptr, char ** restrict endptr,
|
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>
|
#include <errno.h>
|
||||||
|
|
||||||
unsigned long long int strtoull(char const * restrict ptr,
|
unsigned long long int strtoull(char const * restrict ptr,
|
||||||
|
|
Loading…
Reference in a new issue