From f9d6c96a30c778573a86e6d88abe25063a84846f Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Tue, 25 Jun 2024 12:15:04 +0300 Subject: [PATCH] floatscan-experiment.c: make all the implemented functions static --- c-programming/experiments/floatscan-experiment.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/c-programming/experiments/floatscan-experiment.c b/c-programming/experiments/floatscan-experiment.c index 683eb05..5c8cdb2 100644 --- a/c-programming/experiments/floatscan-experiment.c +++ b/c-programming/experiments/floatscan-experiment.c @@ -47,9 +47,9 @@ /* wrapping code --- beginning */ const char* fgetc_ptr = NULL; -int __shgetc(void); -int __shunget(void); -long double floatscan(const char* s, int prec); +static int __shgetc(void); +static int __shunget(void); +static long double floatscan(const char* s, int prec); #define shgetc(f) __shgetc() #define shlim(...) @@ -567,16 +567,16 @@ long double __floatscan(FILE *f, int prec, int pok) /* the original musl libc code --- end */ /* wrapping code --- beginning */ -int __shgetc(void) { +static int __shgetc(void) { return *fgetc_ptr++; } -int __shunget(void) { +static int __shunget(void) { fgetc_ptr--; return 0; } -long double floatscan(const char* s, int prec) { +static long double floatscan(const char* s, int prec) { fgetc_ptr = s; return __floatscan(NULL, prec, 1); }