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
4939acf0
Commit
4939acf0
authored
Dec 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Allow optional keywords to be in any order in a .def file.
parent
c4c6fcaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
parser.c
tools/winebuild/parser.c
+22
-21
No files found.
tools/winebuild/parser.c
View file @
4939acf0
...
...
@@ -945,33 +945,34 @@ static int parse_def_export( char *name, DLLSPEC *spec )
/* check for other optional keywords */
if
(
token
&&
!
strcmp
(
token
,
"NONAME"
)
)
while
(
token
)
{
if
(
odp
->
ordinal
==
-
1
)
if
(
!
strcmp
(
token
,
"NONAME"
)
)
{
error
(
"NONAME requires an ordinal
\n
"
);
if
(
odp
->
ordinal
==
-
1
)
{
error
(
"NONAME requires an ordinal
\n
"
);
goto
error
;
}
odp
->
export_name
=
odp
->
name
;
odp
->
name
=
NULL
;
odp
->
flags
|=
FLAG_NONAME
;
}
else
if
(
!
strcmp
(
token
,
"PRIVATE"
))
{
odp
->
flags
|=
FLAG_PRIVATE
;
}
else
if
(
!
strcmp
(
token
,
"DATA"
))
{
odp
->
type
=
TYPE_EXTERN
;
}
else
{
error
(
"Garbage text '%s' found at end of export declaration
\n
"
,
token
);
goto
error
;
}
odp
->
export_name
=
odp
->
name
;
odp
->
name
=
NULL
;
odp
->
flags
|=
FLAG_NONAME
;
token
=
GetToken
(
1
);
}
if
(
token
&&
!
strcmp
(
token
,
"PRIVATE"
))
{
odp
->
flags
|=
FLAG_PRIVATE
;
token
=
GetToken
(
1
);
}
if
(
token
&&
!
strcmp
(
token
,
"DATA"
))
{
odp
->
type
=
TYPE_EXTERN
;
token
=
GetToken
(
1
);
}
if
(
token
)
{
error
(
"Garbage text '%s' found at end of export declaration
\n
"
,
token
);
goto
error
;
}
return
1
;
error:
...
...
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