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
d13b99d5
Commit
d13b99d5
authored
Aug 29, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compute the ordinal base and limit in assign_ordinals instead of doing
it while parsing.
parent
bba5423d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
parser.c
tools/winebuild/parser.c
+10
-2
No files found.
tools/winebuild/parser.c
View file @
d13b99d5
...
...
@@ -609,6 +609,16 @@ static void assign_ordinals( DLLSPEC *spec )
int
i
,
count
,
ordinal
;
/* start assigning from base, or from 1 if no ordinal defined yet */
spec
->
base
=
MAX_ORDINALS
;
spec
->
limit
=
0
;
for
(
i
=
0
;
i
<
spec
->
nb_entry_points
;
i
++
)
{
ordinal
=
spec
->
entry_points
[
i
].
ordinal
;
if
(
ordinal
==
-
1
)
continue
;
if
(
ordinal
>
spec
->
limit
)
spec
->
limit
=
ordinal
;
if
(
ordinal
<
spec
->
base
)
spec
->
base
=
ordinal
;
}
if
(
spec
->
base
==
MAX_ORDINALS
)
spec
->
base
=
1
;
if
(
spec
->
limit
<
spec
->
base
)
spec
->
limit
=
spec
->
base
;
...
...
@@ -826,8 +836,6 @@ static int parse_def_export( char *name, DLLSPEC *spec )
error
(
"Ordinal number %d too large
\n
"
,
ordinal
);
goto
error
;
}
if
(
ordinal
>
spec
->
limit
)
spec
->
limit
=
ordinal
;
if
(
ordinal
<
spec
->
base
)
spec
->
base
=
ordinal
;
odp
->
ordinal
=
ordinal
;
token
=
GetToken
(
1
);
}
...
...
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