2 #include <X11/IntrinsicP.h>
3 #include <X11/StringDefs.h>
8 DviGetAndPut(DviWidget dw, int *cp)
12 *cp = getc (dw->dvi.file);
15 *cp = getc (dw->dvi.file);
17 putc (*cp, dw->dvi.tmpFile);
23 GetLine(DviWidget dw, char *Buffer, int Length)
27 Length--; /* Save room for final '\0' */
29 while (DviGetC (dw, &c) != EOF) {
30 if (Buffer && i < Length)
43 GetWord(DviWidget dw, char *Buffer, int Length)
47 Length--; /* Save room for final '\0' */
48 while (DviGetC(dw, &c) == ' ' || c == '\n')
51 if (Buffer && i < Length)
53 if (DviGetC(dw, &c) == ' ' || c == '\n') {
64 GetNumber(DviWidget dw)
69 while (DviGetC(dw, &c) == ' ' || c == '\n')
76 for (; c >= '0' && c <= '9'; DviGetC(dw, &c)) {
90 c-continued-statement-offset: 8
94 c-tab-always-indent: nil