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
f489a272
Commit
f489a272
authored
Mar 17, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed support for the 'forward' ordinal type.
parent
85c6ea4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
51 deletions
+6
-51
build.h
tools/winebuild/build.h
+0
-1
parser.c
tools/winebuild/parser.c
+1
-18
spec32.c
tools/winebuild/spec32.c
+5
-14
winebuild.man.in
tools/winebuild/winebuild.man.in
+0
-18
No files found.
tools/winebuild/build.h
View file @
f489a272
...
...
@@ -48,7 +48,6 @@ typedef enum
TYPE_CDECL
,
/* cdecl function (Win32) */
TYPE_VARARGS
,
/* varargs function (Win32) */
TYPE_EXTERN
,
/* external symbol (Win32) */
TYPE_FORWARD
,
/* forwarded function (Win32) */
TYPE_NBTYPES
}
ORD_TYPE
;
...
...
tools/winebuild/parser.c
View file @
f489a272
...
...
@@ -51,8 +51,7 @@ static const char * const TypeNames[TYPE_NBTYPES] =
"stdcall"
,
/* TYPE_STDCALL */
"cdecl"
,
/* TYPE_CDECL */
"varargs"
,
/* TYPE_VARARGS */
"extern"
,
/* TYPE_EXTERN */
"forward"
/* TYPE_FORWARD */
"extern"
/* TYPE_EXTERN */
};
static
const
char
*
const
FlagNames
[]
=
...
...
@@ -302,19 +301,6 @@ static void ParseExtern( ORDDEF *odp )
/*******************************************************************
* ParseForward
*
* Parse a 'forward' definition.
*/
static
void
ParseForward
(
ORDDEF
*
odp
)
{
if
(
SpecType
==
SPEC_WIN16
)
fatal_error
(
"'forward' not supported for Win16
\n
"
);
odp
->
link_name
=
xstrdup
(
GetToken
(
0
)
);
odp
->
flags
|=
FLAG_FORWARD
;
}
/*******************************************************************
* ParseFlags
*
* Parse the optional flags for an entry point
...
...
@@ -402,9 +388,6 @@ static void ParseOrdinal(int ordinal)
case
TYPE_EXTERN
:
ParseExtern
(
odp
);
break
;
case
TYPE_FORWARD
:
ParseForward
(
odp
);
break
;
default:
assert
(
0
);
}
...
...
tools/winebuild/spec32.c
View file @
f489a272
...
...
@@ -168,12 +168,6 @@ static int output_exports( FILE *outfile, int nr_exports )
else
switch
(
odp
->
type
)
{
case
TYPE_EXTERN
:
if
(
!
(
odp
->
flags
&
FLAG_FORWARD
))
{
fprintf
(
outfile
,
"
\"\\
t.long "
__ASM_NAME
(
"%s"
)
"
\\
n
\"\n
"
,
odp
->
link_name
);
break
;
}
/* else fall through */
case
TYPE_STDCALL
:
case
TYPE_VARARGS
:
case
TYPE_CDECL
:
...
...
@@ -181,12 +175,12 @@ static int output_exports( FILE *outfile, int nr_exports )
{
fprintf
(
outfile
,
"
\"\\
t.long "
__ASM_NAME
(
"%s"
)
"
\\
n
\"\n
"
,
(
odp
->
flags
&
FLAG_REGISTER
)
?
make_internal_name
(
odp
,
"regs"
)
:
odp
->
link_name
);
break
;
}
/* else fall through */
case
TYPE_FORWARD
:
fprintf
(
outfile
,
"
\"\\
t.long __wine_spec_forwards+%d
\\
n
\"\n
"
,
fwd_size
);
fwd_size
+=
strlen
(
odp
->
link_name
)
+
1
;
else
{
fprintf
(
outfile
,
"
\"\\
t.long __wine_spec_forwards+%d
\\
n
\"\n
"
,
fwd_size
);
fwd_size
+=
strlen
(
odp
->
link_name
)
+
1
;
}
break
;
case
TYPE_STUB
:
fprintf
(
outfile
,
"
\"\\
t.long "
__ASM_NAME
(
"%s"
)
"
\\
n
\"\n
"
,
make_internal_name
(
odp
,
"stub"
)
);
...
...
@@ -855,9 +849,6 @@ void BuildDef32File(FILE *outfile)
}
break
;
}
case
TYPE_FORWARD
:
fprintf
(
outfile
,
"=%s"
,
odp
->
link_name
);
break
;
default:
assert
(
0
);
}
...
...
tools/winebuild/winebuild.man.in
View file @
f489a272
...
...
@@ -205,9 +205,6 @@ syntax is the following:
.IB ordinal\ equate
.RI [ flags ]\ exportname\ data
.br
.IB ordinal\ forward
.RI [ flags ]\ exportname\ forwardname
.br
.BI #\ comments
.PP
Lines whose first character is a
...
...
@@ -393,21 +390,6 @@ This declaration defines an ordinal as an absolute value.
will be the name available for dynamic linking.
.I data
can be a decimal number or a hex number preceeded by "0x".
.SS "Forwarded ordinals"
Syntax:
.br
.IB ordinal\ forward
.RI [ flags ]\ exportname\ forwardname
.PP
This declaration defines an entry that is forwarded to another entry
point (kind of a symbolic link).
.I exportname
will forward to the
entry point
.I forwardname
that must be of the form
.B DLL.Function.
This declaration only works in Win32 spec files.
.SH "GLUE FUNCTIONS"
Glue functions are used to call down to 16-bit code from a 32-bit
function. This is done by declaring a special type of function
...
...
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