2 #include <X11/IntrinsicP.h>
3 #include <X11/StringDefs.h>
10 DviGetAndPut(DviWidget dw, int *cp)
14 *cp = getc (dw->dvi.file);
17 *cp = getc (dw->dvi.file);
19 putc (*cp, dw->dvi.tmpFile);
25 GetLine(DviWidget dw, char *Buffer, int Length)
29 Length--; /* Save room for final '\0' */
31 while (DviGetC (dw, &c) != EOF) {
32 if (Buffer && i < Length)
45 GetWord(DviWidget dw, char *Buffer, int Length)
49 Length--; /* Save room for final '\0' */
50 while (DviGetC(dw, &c) == ' ' || c == '\n')
53 if (Buffer && i < Length)
55 if (DviGetC(dw, &c) == ' ' || c == '\n') {
66 GetNumber(DviWidget dw)
71 while (DviGetC(dw, &c) == ' ' || c == '\n')
78 for (; c >= '0' && c <= '9'; DviGetC(dw, &c)) {
92 c-continued-statement-offset: 8
96 c-tab-always-indent: nil