2 #include <X11/IntrinsicP.h>
3 #include <X11/StringDefs.h>
14 *cp
= getc (dw
->dvi
.file
);
18 *cp
= getc (dw
->dvi
.file
);
19 putc (*cp
, dw
->dvi
.tmpFile
);
25 GetLine(dw
, Buffer
, Length
)
33 Length
--; /* Save room for final NULL */
35 while (i
< Length
&& DviGetC (dw
, &c
) != EOF
&& c
!= '\n')
38 if (c
== '\n' && p
) /* Retain the newline like fgets */
48 GetWord(dw
, Buffer
, Length
)
56 Length
--; /* Save room for final NULL */
57 while (DviGetC(dw
, &c
) != EOF
&& (c
== ' ' || c
== '\n'))
61 while (i
< Length
&& DviGetC(dw
, &c
) != EOF
&& c
!= ' ' && c
!= '\n')
77 while (DviGetC(dw
, &c
) != EOF
&& (c
== ' ' || c
== '\n'))
82 while (DviGetC(dw
, &c
) != EOF
&& c
>= '0' && c
<= '9') {
97 c-continued-statement-offset: 8
101 c-tab-always-indent: nil