]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary global initialization
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 6 Apr 2021 02:52:23 +0000 (19:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Apr 2021 20:21:54 +0000 (13:21 -0700)
This structure is default-0-initialized.

lib/sfio/sfextern.c

index 1582d666705d92490e055f6d6d347707b00710ff..cd34e20e15a64d80922574f1bad826c91895f536 100644 (file)
 */
 
 /* global variables used internally to the package */
-Sfextern_t _Sfextern = { 0,    /* _Sfpage      */
-    {NIL(Sfpool_t *), 0, 0, 0, NIL(Sfio_t **)},        /* _Sfpool      */
-    NIL(int (*)(Sfio_t *, int)),       /* _Sfpmove     */
-    NIL(Sfio_t * (*)(Sfio_t *, Sfio_t *)),     /* _Sfstack     */
-    NIL(void (*)(Sfio_t *, int, int)), /* _Sfnotify    */
-    NIL(int (*)(Sfio_t *)),    /* _Sfstdsync   */
-    {NIL(Sfread_f),            /* _Sfudisc     */
-     NIL(Sfwrite_f),
-     NIL(Sfseek_f),
-     NIL(Sfexcept_f),
-     NIL(Sfdisc_t *)
-     },
-    NIL(void (*)(void)),       /* _Sfcleanup   */
-    0,                         /* _Sfexiting   */
-    0,                         /* _Sfdone      */
-};
+Sfextern_t _Sfextern;
 
 /* accessible to application code for a few fast macro functions */
 ssize_t _Sfi = -1;