Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
399300a1
Commit
399300a1
authored
19 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Output the exported names as a C string so that they end up in the
correct section.
parent
8d5b7908
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/winebuild/spec32.c
+22
-11
22 additions, 11 deletions
tools/winebuild/spec32.c
with
22 additions
and
11 deletions
tools/winebuild/spec32.c
+
22
−
11
View file @
399300a1
...
...
@@ -160,6 +160,25 @@ static int get_exports_size( DLLSPEC *spec )
}
/*******************************************************************
* output_export_names
*
* Output all the exported names for a Win32 module.
*/
static
void
output_export_names
(
FILE
*
outfile
,
DLLSPEC
*
spec
)
{
int
i
,
nr_exports
=
spec
->
base
<=
spec
->
limit
?
spec
->
limit
-
spec
->
base
+
1
:
0
;
if
(
!
nr_exports
)
return
;
fprintf
(
outfile
,
"
\n
const char __wine_spec_exp_names[] ="
);
fprintf
(
outfile
,
"
\n
\"
%s
\\
0
\"
"
,
spec
->
file_name
);
for
(
i
=
0
;
i
<
spec
->
nb_names
;
i
++
)
fprintf
(
outfile
,
"
\n
\"
%s
\\
0
\"
"
,
spec
->
names
[
i
]
->
name
);
fprintf
(
outfile
,
";
\n
"
);
}
/*******************************************************************
* output_exports
*
...
...
@@ -182,7 +201,7 @@ static void output_exports( FILE *outfile, DLLSPEC *spec )
fprintf
(
outfile
,
"
\"\\
t.long 0
\\
n
\"\n
"
);
/* Characteristics */
fprintf
(
outfile
,
"
\"\\
t.long 0
\\
n
\"\n
"
);
/* TimeDateStamp */
fprintf
(
outfile
,
"
\"\\
t.long 0
\\
n
\"\n
"
);
/* MajorVersion/MinorVersion */
fprintf
(
outfile
,
"
\"\\
t.long __wine_spec_exp_names
\\
n
\"\n
"
);
/* Name */
fprintf
(
outfile
,
"
\"\\
t.long
"
__ASM_NAME
(
"
__wine_spec_exp_names
"
)
"
\\
n
\"\n
"
);
/* Name */
fprintf
(
outfile
,
"
\"\\
t.long %d
\\
n
\"\n
"
,
spec
->
base
);
/* Base */
fprintf
(
outfile
,
"
\"\\
t.long %d
\\
n
\"\n
"
,
nr_exports
);
/* NumberOfFunctions */
fprintf
(
outfile
,
"
\"\\
t.long %d
\\
n
\"\n
"
,
spec
->
nb_names
);
/* NumberOfNames */
...
...
@@ -239,20 +258,11 @@ static void output_exports( FILE *outfile, DLLSPEC *spec )
fprintf
(
outfile
,
"
\"
__wine_spec_exp_name_ptrs:
\\
n
\"\n
"
);
for
(
i
=
0
;
i
<
spec
->
nb_names
;
i
++
)
{
fprintf
(
outfile
,
"
\"\\
t.long __wine_spec_exp_names+%d
\\
n
\"\n
"
,
namepos
);
fprintf
(
outfile
,
"
\"\\
t.long
"
__ASM_NAME
(
"
__wine_spec_exp_names
"
)
"
+%d
\\
n
\"\n
"
,
namepos
);
namepos
+=
strlen
(
spec
->
names
[
i
]
->
name
)
+
1
;
}
}
/* output the function names */
fprintf
(
outfile
,
"
\"\\
t.text
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"
__wine_spec_exp_names:
\\
n
\"\n
"
);
fprintf
(
outfile
,
"
\"\\
t"
__ASM_STRING
"
\\\"
%s
\\\"\\
n
\"\n
"
,
spec
->
file_name
);
for
(
i
=
0
;
i
<
spec
->
nb_names
;
i
++
)
fprintf
(
outfile
,
"
\"\\
t"
__ASM_STRING
"
\\\"
%s
\\\"\\
n
\"\n
"
,
spec
->
names
[
i
]
->
name
);
fprintf
(
outfile
,
"
\"\\
t.data
\\
n
\"\n
"
);
if
(
spec
->
nb_names
)
{
/* output the function ordinals */
...
...
@@ -534,6 +544,7 @@ void BuildSpec32File( FILE *outfile, DLLSPEC *spec )
#endif
output_stub_funcs
(
outfile
,
spec
);
output_export_names
(
outfile
,
spec
);
/* Output the DLL imports */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment