#include <h/tws.h>
#include <h/fmt_scan.h>
#include <h/fmt_compile.h>
+#include <ctype.h>
+#include <sysexits.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
}
advise(NULL, "\"%s\": format compile error - %s",
- &usr_fstring[errpos-errctx], str);
- adios(NULL, "%*s", errctx+1, "^");
+ &usr_fstring[errpos-errctx], str);
+ adios(EX_SOFTWARE, NULL, "%*s", errctx+1, "^");
}
/*
next_fp = formatvec = (struct format *)calloc((size_t) i,
sizeof(struct format));
if (next_fp == NULL)
- adios(NULL, "unable to allocate format storage");
+ adios(EX_OSERR, NULL, "unable to allocate format storage");
ncomp = 0;
infunction = 0;
{
register char *cp = sp;
register int c;
-#ifndef lint
register int ljust = 0;
-#endif /* not lint */
register int wid = 0;
register char fill = ' ';