2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
17 /* te.c: error message control, input line count */
27 (void) fprintf(stderr
, gettext("\n%s: line %d: %s\n"), ifile
, iline
, s
);
28 (void) fprintf(stderr
, gettext("tbl quits\n"));
33 gets1(char *s
, int len
)
40 while ((p
= fgets(s
,len
,tabin
))==0)
53 error(strerror(errno
));
55 error(gettext("Line too long"));
59 for(nbl
=0; *s
== '\\' && s
>p
; s
--)
61 if (linstart
&& nbl
% 2) /* fold escaped nl if in table */
84 if (backp
>= backup
+BACKMAX
)
85 error(gettext("too much backup"));
96 if (c
== EOF
) /* EOF */
99 error(gettext("unexpected EOF"));