X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/96a2a03a1473522669e8848959c3aa380cf3d4eb..0b7286788a95dd854d1826b8493eda431d8e8aac:/uip/scansbr.c diff --git a/uip/scansbr.c b/uip/scansbr.c index ea5cf266..b82c3c56 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -5,12 +5,13 @@ * complete copyright information. */ -#include -#include -#include -#include -#include -#include +#include "h/mh.h" +#include "sbr/error.h" +#include "h/addrsbr.h" +#include "h/fmt_scan.h" +#include "h/scansbr.h" +#include "h/tws.h" +#include "h/utils.h" #include "sbr/terminal.h" static struct format *fmt; @@ -284,7 +285,7 @@ body:; goto finished; default: - adios (NULL, "getfld() returned %d", state); + die("getfld() returned %d", state); } } @@ -354,11 +355,13 @@ finished: /* 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); }