skip slash r

This commit is contained in:
Asbjørn Pettersen 1999-05-01 16:10:36 +00:00
parent 20cc008346
commit ee4c38b487
3 changed files with 9 additions and 0 deletions

View File

@ -1016,6 +1016,9 @@ read_pnmraw_type (FILE *ifp,
for (;;)
{
if (thrd == EOF) return (-1);
#ifdef __EMX__
if (thrd == '\r') thrd = getc (ifp);
#endif
if ((thrd == '\n') && (frst == 'P') && (scnd >= '1') && (scnd <= '6'))
break;
frst = scnd;

View File

@ -1016,6 +1016,9 @@ read_pnmraw_type (FILE *ifp,
for (;;)
{
if (thrd == EOF) return (-1);
#ifdef __EMX__
if (thrd == '\r') thrd = getc (ifp);
#endif
if ((thrd == '\n') && (frst == 'P') && (scnd >= '1') && (scnd <= '6'))
break;
frst = scnd;

View File

@ -1016,6 +1016,9 @@ read_pnmraw_type (FILE *ifp,
for (;;)
{
if (thrd == EOF) return (-1);
#ifdef __EMX__
if (thrd == '\r') thrd = getc (ifp);
#endif
if ((thrd == '\n') && (frst == 'P') && (scnd >= '1') && (scnd <= '6'))
break;
frst = scnd;