1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-05-31 08:31:41 +05:30

floatscan-experiment.c: make all the implemented functions static

This commit is contained in:
2024-06-25 12:15:04 +03:00
parent 6a9dde51e5
commit f9d6c96a30

View File

@@ -47,9 +47,9 @@
/* wrapping code --- beginning */ /* wrapping code --- beginning */
const char* fgetc_ptr = NULL; const char* fgetc_ptr = NULL;
int __shgetc(void); static int __shgetc(void);
int __shunget(void); static int __shunget(void);
long double floatscan(const char* s, int prec); static long double floatscan(const char* s, int prec);
#define shgetc(f) __shgetc() #define shgetc(f) __shgetc()
#define shlim(...) #define shlim(...)
@@ -567,16 +567,16 @@ long double __floatscan(FILE *f, int prec, int pok)
/* the original musl libc code --- end */ /* the original musl libc code --- end */
/* wrapping code --- beginning */ /* wrapping code --- beginning */
int __shgetc(void) { static int __shgetc(void) {
return *fgetc_ptr++; return *fgetc_ptr++;
} }
int __shunget(void) { static int __shunget(void) {
fgetc_ptr--; fgetc_ptr--;
return 0; return 0;
} }
long double floatscan(const char* s, int prec) { static long double floatscan(const char* s, int prec) {
fgetc_ptr = s; fgetc_ptr = s;
return __floatscan(NULL, prec, 1); return __floatscan(NULL, prec, 1);
} }