From: David Levine Date: Tue, 29 Jan 2013 01:12:17 +0000 (-0600) Subject: Added scan_reset_m_getfld_state(), for msh only. It needs to X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/702ad1773b7b0064920e0fc723eec4a744f87e7c?hp=-c Added scan_reset_m_getfld_state(), for msh only. It needs to call that so that it can support more than one operation on its mailbox. --- 702ad1773b7b0064920e0fc723eec4a744f87e7c diff --git a/h/prototypes.h b/h/prototypes.h index 28f5d0c3..53e8b25d 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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 *); diff --git a/uip/msh.c b/uip/msh.c index 98f9afe9..e5f82bfa 100644 --- 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; diff --git a/uip/scansbr.c b/uip/scansbr.c index 8fc88257..930cfbc2 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -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); +}