wineps.drv: Slightly simplify a PPD parser code snippet.

This commit is contained in:
Dmitry Timoshkov 2012-12-20 16:24:35 +08:00 committed by Alexandre Julliard
parent d170f05ece
commit eb272cbd31

View File

@ -385,17 +385,11 @@ static BOOL PSDRV_PPDGetNextTuple(FILE *fp, PPDTuple *tuple)
;
endkey = cp;
if(*cp == ':') { /* <key>: */
while (isspace(*cp)) cp++;
if (*cp == ':') /* <key>: */
gotoption = FALSE;
} else {
while(isspace(*cp))
cp++;
if(*cp == ':') { /* <key> : */
gotoption = FALSE;
} else { /* <key> <option> */
opt = cp;
}
}
else /* <key> <option> */
opt = cp;
tuple->key = HeapAlloc( PSDRV_Heap, 0, endkey - line + 1 );
if(!tuple->key) return FALSE;
@ -434,7 +428,7 @@ static BOOL PSDRV_PPDGetNextTuple(FILE *fp, PPDTuple *tuple)
}
/* cp should point to a ':', so we increment past it */
cp++;
cp++;
while(isspace(*cp))
cp++;