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
c4c129dc
Commit
c4c129dc
authored
Aug 15, 1999
by
James Juran
Committed by
Alexandre Julliard
Aug 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document use of "init" in build-spec.txt, and make build.c print a
warning if someone tries to use "init" in a Win16 spec file.
parent
a21fe345
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
build-spec.txt
tools/build-spec.txt
+7
-0
build.c
tools/build.c
+9
-0
No files found.
tools/build-spec.txt
View file @
c4c129dc
Spec file format
----------------
name NAME
type win16|win32
[file WINFILENAME]
[base ORDINAL]
[heap SIZE]
[init FUNCTION]
[import DLL]
ORDINAL VARTYPE EXPORTNAME (DATA [DATA [DATA [...]]])
...
...
@@ -36,6 +40,9 @@ modules); default is no local heap.
builtin. <name>.DLL is assumed if none is given. (This is important
for kernel, which lives in the Windows file KRNL386.EXE).
"init" specifies a function which will be called when this dll
is loaded. This is only valid for Win32 modules.
"import" names a module that this one depends on (only for Win32
modules at the present). The import declaration can be present several
times.
...
...
tools/build.c
View file @
c4c129dc
...
...
@@ -749,8 +749,17 @@ static int ParseTopLevel(void)
else
if
(
strcmp
(
token
,
"init"
)
==
0
)
{
strcpy
(
DLLInitFunc
,
GetToken
());
if
(
SpecType
==
SPEC_WIN16
)
{
fprintf
(
stderr
,
"%s:%d: init cannot be used for Win16 spec files
\n
"
,
SpecName
,
Line
);
return
-
1
;
}
if
(
!
DLLInitFunc
[
0
])
{
fprintf
(
stderr
,
"%s:%d: Expected function name after init
\n
"
,
SpecName
,
Line
);
return
-
1
;
}
}
else
if
(
strcmp
(
token
,
"import"
)
==
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