From 702ad1773b7b0064920e0fc723eec4a744f87e7c Mon Sep 17 00:00:00 2001 From: David Levine Date: Mon, 28 Jan 2013 19:12:17 -0600 Subject: [PATCH] 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. --- h/prototypes.h | 1 + uip/msh.c | 1 + uip/scansbr.c | 5 +++++ 3 files changed, 7 insertions(+) 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); +} -- 2.56.0