From: David Levine Date: Tue, 26 Aug 2014 00:50:23 +0000 (-0500) Subject: Removed msh relics from scansbr.c, including a global. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/58eaf2c22189e6cd823eb6eb3afe2e52a2599482?ds=sidebyside;hp=-c Removed msh relics from scansbr.c, including a global. --- 58eaf2c22189e6cd823eb6eb3afe2e52a2599482 diff --git a/uip/scansbr.c b/uip/scansbr.c index 97df2c3a..60acec90 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -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 */ -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") @@ -371,7 +371,7 @@ mh_fputs(char *s, FILE *stream) 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); @@ -381,8 +381,3 @@ void scan_detect_mbox_style (FILE *f) { m_unknown (&gstate, f); } - -void -scan_reset_m_getfld_state () { - m_getfld_state_reset (&gstate); -}