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
b31af31c
Commit
b31af31c
authored
Nov 23, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the WINE_NO_STRICT support.
parent
fb82973a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
39 deletions
+1
-39
server_protocol.h
include/wine/server_protocol.h
+0
-6
winnt.h
include/winnt.h
+1
-27
protocol.def
server/protocol.def
+0
-6
No files found.
include/wine/server_protocol.h
View file @
b31af31c
...
...
@@ -32,14 +32,8 @@ struct request_max_size
int
pad
[
16
];
};
#ifdef WINE_NO_STRICT
typedef
int
obj_handle_t
;
typedef
unsigned
int
user_handle_t
;
#else
typedef
void
*
obj_handle_t
;
typedef
void
*
user_handle_t
;
#endif
typedef
unsigned
short
atom_t
;
typedef
unsigned
int
process_id_t
;
typedef
unsigned
int
thread_id_t
;
...
...
include/winnt.h
View file @
b31af31c
...
...
@@ -539,36 +539,10 @@ typedef DWORD EXECUTION_STATE;
/* Handle type */
/* FIXME: Wine does not compile with strict on, therefore strict
* handles are presently only usable on machines where sizeof(UINT) ==
* sizeof(void*). HANDLEs are supposed to be void* but a large amount
* of WINE code operates on HANDLES as if they are UINTs. So to WINE
* they exist as UINTs but to the Winelib user who turns on strict,
* they exist as void*. If there is a size difference between UINT and
* void* then things get ugly.
*
* Here is the plan to convert Wine to STRICT:
*
* Types will be converted one at a time by volunteers who will compile
* Wine with STRICT turned on. Handles that have not been converted yet
* will be declared with DECLARE_OLD_HANDLE. Converted handles are
* declared with DECLARE_HANDLE.
* See the bug report 90 for more details:
* http://wine.codeweavers.com/bugzilla/show_bug.cgi?id=90
*/
/*
* when compiling Wine we always treat HANDLE as an UINT. Then when
* we're ready we'll remove the '!defined(__WINE__)' (the equivalent
* of converting it from DECLARE_OLD_HANDLE to DECLARE_HANDLE).
*/
#ifdef WINE_NO_STRICT
typedef
UINT
HANDLE
;
#else
typedef
void
*
HANDLE
;
#endif
typedef
HANDLE
*
PHANDLE
,
*
LPHANDLE
;
#if (defined(STRICT) || defined(__WINE__))
&& !defined(WINE_NO_STRICT)
#if (defined(STRICT) || defined(__WINE__))
#define DECLARE_HANDLE(a) \
typedef struct a##__ { int unused; } *a; \
typedef a *P##a
...
...
server/protocol.def
View file @
b31af31c
...
...
@@ -48,14 +48,8 @@ struct request_max_size
int pad[16]; /* the max request size is 16 ints */
};
#ifdef WINE_NO_STRICT
typedef int obj_handle_t;
typedef unsigned int user_handle_t;
#else
typedef void *obj_handle_t;
typedef void *user_handle_t;
#endif
typedef unsigned short atom_t;
typedef unsigned int process_id_t;
typedef unsigned int thread_id_t;
...
...
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