Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
31b6d090
Commit
31b6d090
authored
Dec 01, 2000
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Dec 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified winebuild to use the __ASM_FUNC macro for greater portability.
parent
7afce0e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
winnt.h
include/winnt.h
+4
-4
import.c
tools/winebuild/import.c
+2
-1
relay.c
tools/winebuild/relay.c
+4
-3
spec32.c
tools/winebuild/spec32.c
+1
-1
No files found.
include/winnt.h
View file @
31b6d090
...
...
@@ -722,16 +722,16 @@ typedef HANDLE *PHANDLE;
#endif
#ifdef NEED_TYPE_IN_DEF
# define __ASM_
TYPE(name) ".def " __ASM_NAME(#name) "; .scl 2; .type 32; .endef\n
"
# define __ASM_
FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef
"
#else
# define __ASM_
TYPE(name) ".type " __ASM_NAME(#name) ",@function\
n"
# define __ASM_
FUNC(name) ".type " __ASM_NAME(name) ",@functio
n"
#endif
#ifdef __GNUC__
# define __ASM_GLOBAL_FUNC(name,code) \
__asm__( ".align 4\n\t" \
".globl " __ASM_NAME(#name) "\n\t" \
__ASM_
TYPE(name)
\
__ASM_
FUNC(#name) "\n"
\
__ASM_NAME(#name) ":\n\t" \
code );
#else
/* __GNUC__ */
...
...
@@ -739,7 +739,7 @@ typedef HANDLE *PHANDLE;
void __asm_dummy_##name(void) { \
asm( ".align 4\n\t" \
".globl " __ASM_NAME(#name) "\n\t" \
__ASM_
TYPE(name)
\
__ASM_
FUNC(#name) "\n"
\
__ASM_NAME(#name) ":\n\t" \
code ); \
}
...
...
tools/winebuild/import.c
View file @
31b6d090
...
...
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <unistd.h>
#include "config.h"
#include "winnt.h"
#include "build.h"
...
...
@@ -324,7 +325,7 @@ int output_imports( FILE *outfile )
{
for
(
j
=
0
;
j
<
dll_imports
[
i
]
->
nb_imports
;
j
++
,
pos
+=
4
)
{
fprintf
(
outfile
,
"
\"\\
t
.type "
PREFIX
"%s,@function
\\
n
\"\n
"
,
fprintf
(
outfile
,
"
\"\\
t
"
__ASM_FUNC
(
"%s"
)
"
\\
n
\"\n
"
,
dll_imports
[
i
]
->
imports
[
j
]
);
fprintf
(
outfile
,
"
\"\\
t.globl "
PREFIX
"%s
\\
n
\"\n
"
,
dll_imports
[
i
]
->
imports
[
j
]
);
...
...
tools/winebuild/relay.c
View file @
31b6d090
...
...
@@ -11,6 +11,7 @@
#include <ctype.h>
#include <unistd.h>
#include "config.h"
#include "winnt.h"
#include "thread.h"
#include "stackframe.h"
...
...
@@ -94,7 +95,7 @@ static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk, int sho
#ifdef USE_STABS
fprintf
(
outfile
,
".stabs
\"
__wine_call_from_16_%s:F1
\"
,36,0,0,"
PREFIX
"__wine_call_from_16_%s
\n
"
,
name
,
name
);
#endif
fprintf
(
outfile
,
"
\t
.type "
PREFIX
"__wine_call_from_16_%s,@function
\n
"
,
name
);
fprintf
(
outfile
,
"
\t
"
__ASM_FUNC
(
"__wine_call_from_16_%s"
)
"
\n
"
,
name
);
fprintf
(
outfile
,
"
\t
.globl "
PREFIX
"__wine_call_from_16_%s
\n
"
,
name
);
fprintf
(
outfile
,
PREFIX
"__wine_call_from_16_%s:
\n
"
,
name
);
...
...
@@ -452,7 +453,7 @@ static void BuildCallTo16Core( FILE *outfile, int short_ret, int reg_func )
fprintf
(
outfile
,
".stabs
\"
wine_call_to_16_%s:F1
\"
,36,0,0,"
PREFIX
"wine_call_to_16_%s
\n
"
,
name
,
name
);
#endif
fprintf
(
outfile
,
"
\t
.type "
PREFIX
"wine_call_to_16_%s,@function
\n
"
,
name
);
fprintf
(
outfile
,
"
\t
"
__ASM_FUNC
(
"wine_call_to_16_%s"
)
"
\n
"
,
name
);
fprintf
(
outfile
,
"
\t
.globl "
PREFIX
"wine_call_to_16_%s
\n
"
,
name
);
fprintf
(
outfile
,
PREFIX
"wine_call_to_16_%s:
\n
"
,
name
);
...
...
@@ -688,7 +689,7 @@ static void BuildRet16Func( FILE *outfile )
* run-time relocation of the SYSLEVEL_Win16CurrentTeb symbol
*/
fprintf
(
outfile
,
"
\n\t
.type "
PREFIX
"CallTo16_Ret,@function
\n
"
);
fprintf
(
outfile
,
"
\n\t
"
__ASM_FUNC
(
"CallTo16_Ret"
)
"
\n
"
);
fprintf
(
outfile
,
"
\t
.globl "
PREFIX
"CallTo16_Ret
\n
"
);
fprintf
(
outfile
,
PREFIX
"CallTo16_Ret:
\n
"
);
...
...
tools/winebuild/spec32.c
View file @
31b6d090
...
...
@@ -389,7 +389,7 @@ static void output_register_funcs( FILE *outfile )
name
=
make_internal_name
(
odp
,
"regs"
);
fprintf
(
outfile
,
"asm(
\"
.align 4
\\
n
\\
t
\"\n
"
"
\"
.type "
PREFIX
"%s,@function
\\
n
\\
t
\"\n
"
"
\"
"
__ASM_FUNC
(
"%s"
)
"
\\
n
\\
t
\"\n
"
"
\"
"
PREFIX
"%s:
\\
n
\\
t
\"\n
"
"
\"
call "
PREFIX
"CALL32_Regs
\\
n
\\
t
\"\n
"
"
\"
.long "
PREFIX
"%s
\\
n
\\
t
\"\n
"
...
...
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