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
3724de93
Commit
3724de93
authored
May 22, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 22, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some issues.
parent
5db8d2f4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
10 deletions
+18
-10
build.h
tools/winebuild/build.h
+1
-1
import.c
tools/winebuild/import.c
+1
-1
main.c
tools/winebuild/main.c
+5
-2
parser.c
tools/winebuild/parser.c
+0
-2
spec16.c
tools/winebuild/spec16.c
+9
-2
spec32.c
tools/winebuild/spec32.c
+2
-2
No files found.
tools/winebuild/build.h
View file @
3724de93
...
...
@@ -137,7 +137,7 @@ extern int get_alignment(int alignBoundary);
extern
void
add_import_dll
(
const
char
*
name
,
int
delay
);
extern
void
add_ignore_symbol
(
const
char
*
name
);
extern
int
resolve_imports
(
FILE
*
outfile
);
extern
int
resolve_imports
(
void
);
extern
int
output_imports
(
FILE
*
outfile
);
extern
void
load_res32_file
(
const
char
*
name
);
extern
int
output_resources
(
FILE
*
outfile
);
...
...
tools/winebuild/import.c
View file @
3724de93
...
...
@@ -317,7 +317,7 @@ static void remove_ignored_symbols(void)
}
/* resolve the imports for a Win32 module */
int
resolve_imports
(
FILE
*
outfile
)
int
resolve_imports
(
void
)
{
int
i
,
j
;
...
...
tools/winebuild/main.c
View file @
3724de93
...
...
@@ -244,7 +244,10 @@ int main(int argc, char **argv)
do_usage
();
break
;
}
fclose
(
output_file
);
output_file_name
=
NULL
;
if
(
output_file_name
)
{
fclose
(
output_file
);
output_file_name
=
NULL
;
}
return
0
;
}
tools/winebuild/parser.c
View file @
3724de93
...
...
@@ -264,8 +264,6 @@ static void ParseExportFunction( ORDDEF *odp )
fatal_error
(
"Too many arguments
\n
"
);
odp
->
u
.
func
.
arg_types
[
i
]
=
'\0'
;
if
((
odp
->
type
==
TYPE_STDCALL
)
&&
!
i
)
odp
->
type
=
TYPE_CDECL
;
/* stdcall is the same as cdecl for 0 args */
if
(
odp
->
type
==
TYPE_VARARGS
)
odp
->
flags
|=
FLAG_NORELAY
;
/* no relay debug possible for varags entry point */
odp
->
link_name
=
xstrdup
(
GetToken
(
0
)
);
...
...
tools/winebuild/spec16.c
View file @
3724de93
...
...
@@ -519,8 +519,8 @@ static void output_stub_funcs( FILE *outfile )
fprintf
(
outfile
,
" void *rec, *addr;
\n
"
);
fprintf
(
outfile
,
" unsigned int params;
\n
"
);
fprintf
(
outfile
,
" const void *info[15];
\n
"
);
fprintf
(
outfile
,
" } rec;
\n
"
);
fprintf
(
outfile
,
" extern void RtlRaiseException( struct exc_record * );
\n\n
"
);
fprintf
(
outfile
,
" } rec;
\n
\n
"
);
fprintf
(
outfile
,
" extern void
__stdcall
RtlRaiseException( struct exc_record * );
\n\n
"
);
fprintf
(
outfile
,
" rec.code = 0x%08x;
\n
"
,
EXCEPTION_WINE_STUB
);
fprintf
(
outfile
,
" rec.flags = %d;
\n
"
,
EH_NONCONTINUABLE
);
fprintf
(
outfile
,
" rec.rec = 0;
\n
"
);
...
...
@@ -582,6 +582,13 @@ void BuildSpec16File( FILE *outfile )
strupper
(
DLLName
);
fprintf
(
outfile
,
"static const char dllname[] =
\"
%s
\"
;
\n\n
"
,
DLLName
);
#ifdef __i386__
fprintf
(
outfile
,
"#define __stdcall __attribute__((__stdcall__))
\n\n
"
);
#else
fprintf
(
outfile
,
"#define __stdcall
\n\n
"
);
#endif
output_stub_funcs
(
outfile
);
/* Build sorted list of all argument types, without duplicates */
...
...
tools/winebuild/spec32.c
View file @
3724de93
...
...
@@ -441,7 +441,7 @@ void BuildSpec32File( FILE *outfile )
AssignOrdinals
();
nr_exports
=
Base
<=
Limit
?
Limit
-
Base
+
1
:
0
;
resolve_imports
(
outfile
);
resolve_imports
();
fprintf
(
outfile
,
"/* File generated automatically from %s; do not edit! */
\n\n
"
,
input_file_name
);
...
...
@@ -451,7 +451,7 @@ void BuildSpec32File( FILE *outfile )
fprintf
(
outfile
,
"extern char pe_header[];
\n
"
);
fprintf
(
outfile
,
"asm(
\"
.section .text
\\
n
\\
t
\"\n
"
);
fprintf
(
outfile
,
"
\"
.align %d
\\
n
\"\n
"
,
get_alignment
(
page_size
)
);
fprintf
(
outfile
,
"
\"
pe_header:
\\
t.fill %ld,1,0
\\
n
\\
t
\"
);
\n
"
,
page_size
);
fprintf
(
outfile
,
"
\"
"
PREFIX
"
pe_header:
\\
t.fill %ld,1,0
\\
n
\\
t
\"
);
\n
"
,
page_size
);
fprintf
(
outfile
,
"static const char dllname[] =
\"
%s
\"
;
\n\n
"
,
DLLName
);
fprintf
(
outfile
,
"extern int __wine_spec_exports[];
\n\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