Commit eb272cbd authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent d170f05e
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment