]> diplodocus.org Git - nmh/commitdiff
Removed msh relics from scansbr.c, including a global.
authorDavid Levine <levinedl@acm.org>
Tue, 26 Aug 2014 00:50:23 +0000 (19:50 -0500)
committerDavid Levine <levinedl@acm.org>
Tue, 26 Aug 2014 00:50:23 +0000 (19:50 -0500)
uip/scansbr.c

index 97df2c3ad9f151f9e41ccd6cb3869716fb0a655c..60acec90ab03dba38623041db7f51d9b982c8f07 100644 (file)
@@ -35,7 +35,7 @@ static struct comp **used_buf = 0;    /* stack for comp that use buffers */
 
 static int dat[5];                     /* aux. data for format routine    */
 
 
 static int dat[5];                     /* aux. data for format routine    */
 
-m_getfld_state_t gstate;               /* for access by msh */
+static m_getfld_state_t gstate;                /* for accessor functions below    */
 
 #define DIEWRERR() adios (scnmsg, "write error on")
 
 
 #define DIEWRERR() adios (scnmsg, "write error on")
 
@@ -371,7 +371,7 @@ mh_fputs(char *s, FILE *stream)
     return (0);
 }
 
     return (0);
 }
 
-/* The following three functions allow access to the global gstate above. */
+/* The following two functions allow access to the global gstate above. */
 void
 scan_finished () {
     m_getfld_state_destroy (&gstate);
 void
 scan_finished () {
     m_getfld_state_destroy (&gstate);
@@ -381,8 +381,3 @@ void
 scan_detect_mbox_style (FILE *f) {
     m_unknown (&gstate, f);
 }
 scan_detect_mbox_style (FILE *f) {
     m_unknown (&gstate, f);
 }
-
-void
-scan_reset_m_getfld_state () {
-    m_getfld_state_reset (&gstate);
-}