X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/7d81fd0ae7fc14189d7758c78a5168921c7ef11b..f28cfc5260eb87df0f6f106c837b3e2de640a9bf:/uip/scansbr.c diff --git a/uip/scansbr.c b/uip/scansbr.c index 24609d26..38b2ca41 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -5,12 +5,19 @@ * complete copyright information. */ -#include -#include -#include -#include -#include -#include +#include "h/mh.h" +#include "sbr/dtime.h" +#include "scansbr.h" +#include "sbr/m_name.h" +#include "sbr/m_gmprot.h" +#include "sbr/m_getfld.h" +#include "sbr/getcpy.h" +#include "sbr/error.h" +#include "h/addrsbr.h" +#include "h/fmt_scan.h" +#include "h/tws.h" +#include "h/utils.h" +#include "sbr/terminal.h" static struct format *fmt; static struct comp *datecomp; /* pntr to "date" comp */ @@ -283,7 +290,7 @@ body:; goto finished; default: - adios (NULL, "getfld() returned %d", state); + die("getfld() returned %d", state); } } @@ -347,17 +354,19 @@ finished: if (scnout && (ferror(scnout) || fclose (scnout) == EOF)) DIEWRERR(); - return (state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG); + return state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG; } /* The following two functions allow access to the global gstate above. */ void -scan_finished(void) { +scan_finished(void) +{ m_getfld_state_destroy (&gstate); } void -scan_detect_mbox_style (FILE *f) { +scan_detect_mbox_style (FILE *f) +{ m_unknown (&gstate, f); }