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
6f279109
Commit
6f279109
authored
Jun 13, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For lines that contain a single field, the field is also the line key
(thanks to Aric Stewart).
parent
5de3334a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
parser.c
dlls/setupapi/parser.c
+17
-1
No files found.
dlls/setupapi/parser.c
View file @
6f279109
...
...
@@ -537,6 +537,21 @@ static struct field *add_field_from_token( struct parser *parser, int is_key )
}
/* close the current line and prepare for parsing a new one */
static
void
close_current_line
(
struct
parser
*
parser
)
{
struct
line
*
cur_line
=
parser
->
line
;
if
(
cur_line
)
{
/* if line has a single field and no key, the field is the key too */
if
(
cur_line
->
nb_fields
==
1
&&
cur_line
->
key_field
==
-
1
)
cur_line
->
key_field
=
cur_line
->
first_field
;
}
parser
->
line
=
NULL
;
}
/* handler for parser LINE_START state */
static
const
WCHAR
*
line_start_state
(
struct
parser
*
parser
,
const
WCHAR
*
pos
)
{
...
...
@@ -548,7 +563,7 @@ static const WCHAR *line_start_state( struct parser *parser, const WCHAR *pos )
{
case
'\n'
:
parser
->
line_pos
++
;
parser
->
line
=
NULL
;
/* start a new line */
close_current_line
(
parser
);
break
;
case
';'
:
push_state
(
parser
,
LINE_START
);
...
...
@@ -568,6 +583,7 @@ static const WCHAR *line_start_state( struct parser *parser, const WCHAR *pos )
break
;
}
}
close_current_line
(
parser
);
return
NULL
;
}
...
...
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