Commit 4939acf0 authored by Alexandre Julliard's avatar Alexandre Julliard

winebuild: Allow optional keywords to be in any order in a .def file.

parent c4c6fcaf
......@@ -945,7 +945,9 @@ static int parse_def_export( char *name, DLLSPEC *spec )
/* check for other optional keywords */
if (token && !strcmp( token, "NONAME" ))
while (token)
{
if (!strcmp( token, "NONAME" ))
{
if (odp->ordinal == -1)
{
......@@ -955,23 +957,22 @@ static int parse_def_export( char *name, DLLSPEC *spec )
odp->export_name = odp->name;
odp->name = NULL;
odp->flags |= FLAG_NONAME;
token = GetToken(1);
}
if (token && !strcmp( token, "PRIVATE" ))
else if (!strcmp( token, "PRIVATE" ))
{
odp->flags |= FLAG_PRIVATE;
token = GetToken(1);
}
if (token && !strcmp( token, "DATA" ))
else if (!strcmp( token, "DATA" ))
{
odp->type = TYPE_EXTERN;
token = GetToken(1);
}
if (token)
else
{
error( "Garbage text '%s' found at end of export declaration\n", token );
goto error;
}
token = GetToken(1);
}
return 1;
error:
......
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