stdlib: restore private headers

This commit is contained in:
Lephenixnoir 2024-01-14 13:44:27 +01:00
parent 09b33ca2fa
commit d8a55b728d
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
18 changed files with 25 additions and 39 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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, ...)
{

View File

@ -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__ */

View File

@ -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)
{

View File

@ -1,5 +1,5 @@
#include <stdio.h>
#include <fxlibc/scanf.h>
#include "stdio_p.h"
int vscanf(char const * restrict fmt, va_list args)
{

View File

@ -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);
}
}

View File

@ -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,

View File

@ -1,4 +1,4 @@
#include <fxlibc/stdlib_p.h>
#include "stdlib_p.h"
#include <stdlib.h>
#include <stdbool.h>

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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,

View File

@ -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,

View File

@ -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,