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
a80d8c6c
Commit
a80d8c6c
authored
Sep 27, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate Win32 dll descriptor structure in the .spec.c file so that we
don't need to depend on builtin32.h.
parent
124657f5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
+17
-8
builtin.c
if1632/builtin.c
+0
-1
builtin32.h
include/builtin32.h
+1
-1
relay386.c
relay32/relay386.c
+0
-1
snoop.c
relay32/snoop.c
+0
-1
spec32.c
tools/winebuild/spec32.c
+16
-4
No files found.
if1632/builtin.c
View file @
a80d8c6c
...
...
@@ -12,7 +12,6 @@
#include "wine/winbase16.h"
#include "wine/winestring.h"
#include "builtin16.h"
#include "builtin32.h"
#include "global.h"
#include "heap.h"
#include "module.h"
...
...
include/builtin32.h
View file @
a80d8c6c
...
...
@@ -7,6 +7,7 @@
#ifndef __WINE_BUILTIN32_H
#define __WINE_BUILTIN32_H
/* Warning: this must match the definition in tools/winebuild/spec32.c */
typedef
struct
{
const
char
*
filename
;
/* DLL file name */
...
...
@@ -21,7 +22,6 @@ typedef struct
}
BUILTIN32_DESCRIPTOR
;
extern
void
BUILTIN32_RegisterDLL
(
const
BUILTIN32_DESCRIPTOR
*
descr
);
extern
void
BUILTIN32_Unimplemented
(
const
char
*
dllname
,
const
char
*
funcname
);
extern
void
RELAY_SetupDLL
(
const
char
*
module
);
#endif
/* __WINE_BUILTIN32_H */
relay32/relay386.c
View file @
a80d8c6c
...
...
@@ -9,7 +9,6 @@
#include <string.h>
#include <stdio.h>
#include "winnt.h"
#include "builtin32.h"
#include "selectors.h"
#include "stackframe.h"
#include "syslevel.h"
...
...
relay32/snoop.c
View file @
a80d8c6c
...
...
@@ -12,7 +12,6 @@
#include "winbase.h"
#include "winnt.h"
#include "heap.h"
#include "builtin32.h"
#include "snoop.h"
#include "neexe.h"
#include "selectors.h"
...
...
tools/winebuild/spec32.c
View file @
a80d8c6c
...
...
@@ -288,7 +288,7 @@ void BuildSpec32File( FILE *outfile )
fprintf
(
outfile
,
"/* File generated automatically from %s; do not edit! */
\n\n
"
,
input_file_name
);
fprintf
(
outfile
,
"
#include
\"
builtin32.h
\"
\n\n
"
);
fprintf
(
outfile
,
"
extern void BUILTIN32_Unimplemented( const char *dllname, const char *funcname );
\n\n
"
);
/* Reserve some space for the PE header */
...
...
@@ -439,7 +439,18 @@ void BuildSpec32File( FILE *outfile )
if
(
rsrc_name
[
0
])
fprintf
(
outfile
,
"extern char %s[];
\n\n
"
,
rsrc_name
);
fprintf
(
outfile
,
"static const BUILTIN32_DESCRIPTOR descriptor =
\n
{
\n
"
);
/* Warning: this must match the definition in builtin32.h */
fprintf
(
outfile
,
"static const struct dll_descriptor
\n
{
\n
"
);
fprintf
(
outfile
,
" const char* filename;
\n
"
);
fprintf
(
outfile
,
" int nb_imports;
\n
"
);
fprintf
(
outfile
,
" void *pe_header;
\n
"
);
fprintf
(
outfile
,
" void *exports;
\n
"
);
fprintf
(
outfile
,
" unsigned int exports_size;
\n
"
);
fprintf
(
outfile
,
" const char * const *imports;
\n
"
);
fprintf
(
outfile
,
" void (*dllentrypoint)();
\n
"
);
fprintf
(
outfile
,
" int characteristics;
\n
"
);
fprintf
(
outfile
,
" void *rsrc;
\n
"
);
fprintf
(
outfile
,
"} descriptor = {
\n
"
);
fprintf
(
outfile
,
"
\"
%s
\"
,
\n
"
,
DLLFileName
);
fprintf
(
outfile
,
" %d,
\n
"
,
nb_imports
);
fprintf
(
outfile
,
" pe_header,
\n
"
);
...
...
@@ -462,6 +473,7 @@ void BuildSpec32File( FILE *outfile )
fprintf
(
outfile
,
"
\"\\
t.previous
\\
n
\"
);
\n
"
);
fprintf
(
outfile
,
"}
\n
"
);
fprintf
(
outfile
,
"#endif /* defined(__GNUC__) */
\n
"
);
fprintf
(
outfile
,
"static void %s_init(void) { BUILTIN32_RegisterDLL( &descriptor ); }
\n
"
,
DLLName
);
fprintf
(
outfile
,
"static void %s_init(void)
\n
{
\n
"
,
DLLName
);
fprintf
(
outfile
,
" extern void BUILTIN32_RegisterDLL( const struct dll_descriptor * );
\n
"
);
fprintf
(
outfile
,
" BUILTIN32_RegisterDLL( &descriptor );
\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