]> diplodocus.org Git - nmh/commitdiff
Added scan_reset_m_getfld_state(), for msh only. It needs to
authorDavid Levine <levinedl@acm.org>
Tue, 29 Jan 2013 01:12:17 +0000 (19:12 -0600)
committerDavid Levine <levinedl@acm.org>
Tue, 29 Jan 2013 01:12:17 +0000 (19:12 -0600)
call that so that it can support more than one operation on its
mailbox.

h/prototypes.h
uip/msh.c
uip/scansbr.c

index 28f5d0c3f67427f9a006f0018f95ef8257e2f8e5..53e8b25d45675793902e66e9cdcd392422810c65 100644 (file)
@@ -112,6 +112,7 @@ int remdir (char *);
 void scan_detect_mbox_style (FILE *);
 void scan_finished ();
 void scan_eom_action (int (*)());
+void scan_reset_m_getfld_state ();
 int seq_addmsg (struct msgs *, char *, int, int, int);
 int seq_addsel (struct msgs *, char *, int, int);
 char *seq_bits (struct msgs *);
index 98f9afe92cafca9a5ce16f54fa74e7244fece631..e5f82bfadb44f21df62d694fdddbd22ad921f33e 100644 (file)
--- a/uip/msh.c
+++ b/uip/msh.c
@@ -808,6 +808,7 @@ msh_ready (int msgnum, int full)
        return yp;
     }
 
+    scan_reset_m_getfld_state ();
     scan_eom_action ((int (*)()) 0);   /* XXX */
     fseek (fp, Msgs[msgnum].m_start, SEEK_SET);
     return fp;
index 8fc88257cb8850b2842b7e2709d3ab8ea77253ef..930cfbc25f65864ca4d1dd0681f83a8f5f889fed 100644 (file)
@@ -394,3 +394,8 @@ void
 scan_eom_action (int (*action)()) {
     m_eomsbr (gstate, action);
 }
+
+void
+scan_reset_m_getfld_state () {
+    m_getfld_state_reset (&gstate);
+}