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
152b98fa
Commit
152b98fa
authored
Jul 28, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added -private flag for entry points that shouldn't be imported from
other dlls. Support PRIVATE flag in .def files (based on a patch by Jon Griffiths).
parent
b96b3d15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
2 deletions
+17
-2
build.h
tools/winebuild/build.h
+2
-0
import.c
tools/winebuild/import.c
+5
-0
parser.c
tools/winebuild/parser.c
+1
-0
spec32.c
tools/winebuild/spec32.c
+5
-2
winebuild.man.in
tools/winebuild/winebuild.man.in
+4
-0
No files found.
tools/winebuild/build.h
View file @
152b98fa
...
...
@@ -102,6 +102,8 @@ typedef struct
#define FLAG_I386 0x08
/* function is i386 only */
#define FLAG_REGISTER 0x10
/* use register calling convention */
#define FLAG_INTERRUPT 0x20
/* function is an interrupt handler */
#define FLAG_PRIVATE 0x40
/* function is private (cannot be imported) */
#define FLAG_FORWARD 0x100
/* function is a forwarded name */
/* Offset of a structure field relative to the start of the struct */
...
...
tools/winebuild/import.c
View file @
152b98fa
...
...
@@ -341,6 +341,11 @@ static int read_import_lib( const char *name, struct import *imp )
/* we don't support importing non-function entry points */
goto
next
;
}
else
if
(
!
strcmp
(
flags
,
"PRIVATE"
))
{
/* function must not be imported */
goto
next
;
}
else
{
error
(
"Garbage after ordinal declaration
\n
"
);
...
...
tools/winebuild/parser.c
View file @
152b98fa
...
...
@@ -62,6 +62,7 @@ static const char * const FlagNames[] =
"i386"
,
/* FLAG_I386 */
"register"
,
/* FLAG_REGISTER */
"interrupt"
,
/* FLAG_INTERRUPT */
"private"
,
/* FLAG_PRIVATE */
NULL
};
...
...
tools/winebuild/spec32.c
View file @
152b98fa
...
...
@@ -853,8 +853,11 @@ void BuildDef32File(FILE *outfile)
default:
assert
(
0
);
}
fprintf
(
outfile
,
" @%d%s%s
\n
"
,
odp
->
ordinal
,
odp
->
name
?
""
:
" NONAME"
,
is_data
?
" DATA"
:
""
);
fprintf
(
outfile
,
" @%d"
,
odp
->
ordinal
);
if
(
!
odp
->
name
)
fprintf
(
outfile
,
" NONAME"
);
if
(
is_data
)
fprintf
(
outfile
,
" DATA"
);
if
(
odp
->
flags
&
FLAG_PRIVATE
)
fprintf
(
outfile
,
" PRIVATE"
);
fprintf
(
outfile
,
"
\n
"
);
}
}
...
...
tools/winebuild/winebuild.man.in
View file @
152b98fa
...
...
@@ -243,6 +243,10 @@ The function uses CPU register to pass arguments.
.TP
.B -interrupt
The function is an interrupt handler routine.
.TP
.B -private
The function cannot be imported from other dlls, it can only be
accessed through GetProcAddress.
.SS "Function ordinals"
Syntax:
.br
...
...
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