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
5e32d166
Commit
5e32d166
authored
Dec 26, 2000
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ability to delay loading of an imported DLL until it's needed
(new -delay option for import directive in spec file).
parent
7f74824d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
README
tools/winebuild/README
+7
-1
build.h
tools/winebuild/build.h
+1
-1
import.c
tools/winebuild/import.c
+0
-0
parser.c
tools/winebuild/parser.c
+15
-1
No files found.
tools/winebuild/README
View file @
5e32d166
...
...
@@ -7,7 +7,7 @@ type win16|win32
[mode dll|cuiexe|guiexe|cuiexe_unicode|guiexe_unicode]
[heap SIZE]
[init FUNCTION]
[import DLL]
[import
[IMP_FLAGS]
DLL]
[rsrc RESFILE]
[debug_channels ([CHANNEL [CHANNEL...]])]
[ignore ([SYMBOL [SYMBOL...]])]
...
...
@@ -51,6 +51,12 @@ is loaded. This is only valid for Win32 modules.
modules at the present). The import declaration can be present several
times.
"IMP_FLAGS" is a series of optional flags, preceded by a '-'
character. The supported flags are:
"-delay": the module this module depends upon will be loaded
when the first API will be called (and not while this
module is loaded)
"rsrc" specifies the path of the compiled resource file.
"debug_channels" specifies the list of debug channels used by the dll.
...
...
tools/winebuild/build.h
View file @
5e32d166
...
...
@@ -133,7 +133,7 @@ extern void fatal_perror( const char *msg, ... );
extern
void
warning
(
const
char
*
msg
,
...
);
extern
void
dump_bytes
(
FILE
*
outfile
,
const
unsigned
char
*
data
,
int
len
,
const
char
*
label
,
int
constant
);
extern
void
add_import_dll
(
const
char
*
name
);
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
output_imports
(
FILE
*
outfile
);
...
...
tools/winebuild/import.c
View file @
5e32d166
This diff is collapsed.
Click to expand it.
tools/winebuild/parser.c
View file @
5e32d166
...
...
@@ -580,9 +580,23 @@ SPEC_TYPE ParseTopLevel( FILE *file )
}
else
if
(
strcmp
(
token
,
"import"
)
==
0
)
{
const
char
*
name
;
int
delay
=
0
;
if
(
SpecType
!=
SPEC_WIN32
)
fatal_error
(
"Imports not supported for Win16
\n
"
);
add_import_dll
(
GetToken
(
0
)
);
name
=
GetToken
(
0
);
if
(
*
name
==
'-'
)
{
name
=
GetToken
(
0
);
if
(
!
strcmp
(
name
,
"delay"
))
{
name
=
GetToken
(
0
);
delay
=
1
;
}
else
fatal_error
(
"Unknown option '%s' for import directive
\n
"
,
name
);
}
add_import_dll
(
name
,
delay
);
}
else
if
(
strcmp
(
token
,
"rsrc"
)
==
0
)
{
...
...
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