Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
eb272cbd
Commit
eb272cbd
authored
Dec 20, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Slightly simplify a PPD parser code snippet.
parent
d170f05e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
ppd.c
dlls/wineps.drv/ppd.c
+5
-11
No files found.
dlls/wineps.drv/ppd.c
View file @
eb272cbd
...
...
@@ -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
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment