move __stdio_exit_needed to stdio_impl.h
authorRich Felker <dalias@aerifal.cx>
Sun, 9 Sep 2018 04:53:11 +0000 (00:53 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:31 +0000 (14:34 -0400)
this functions is glue for linking dependency logic.

src/internal/stdio_impl.h
src/stdio/__toread.c
src/stdio/__towrite.c

index 4cb7986..cdb0f96 100644 (file)
@@ -61,6 +61,8 @@ size_t __string_read(FILE *, unsigned char *, size_t);
 int __toread(FILE *);
 int __towrite(FILE *);
 
+void __stdio_exit_needed(void);
+
 #if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303)
 __attribute__((visibility("protected")))
 #endif
index 35f67b8..8f9f27b 100644 (file)
@@ -13,8 +13,6 @@ int __toread(FILE *f)
        return (f->flags & F_EOF) ? EOF : 0;
 }
 
-void __stdio_exit_needed(void);
-
 void __toread_needs_stdio_exit()
 {
        __stdio_exit_needed();
index b022cbc..0199867 100644 (file)
@@ -17,8 +17,6 @@ int __towrite(FILE *f)
        return 0;
 }
 
-void __stdio_exit_needed(void);
-
 void __towrite_needs_stdio_exit()
 {
        __stdio_exit_needed();