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
b3332d74
Commit
b3332d74
authored
Oct 19, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted the server to -DSTRICT.
parent
8417027c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
12 deletions
+13
-12
Makefile.in
server/Makefile.in
+1
-1
process.c
server/process.c
+1
-1
queue.c
server/queue.c
+1
-1
request.c
server/request.c
+1
-1
sock.c
server/sock.c
+1
-1
trace.c
server/trace.c
+0
-0
user.c
server/user.c
+6
-5
make_requests
tools/make_requests
+2
-2
No files found.
server/Makefile.in
View file @
b3332d74
DEFS
=
-D__WINE__
-DWINE_NO_STRICT
DEFS
=
-D__WINE__
TOPSRCDIR
=
@top_srcdir@
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
..
TOPOBJDIR
=
..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
...
...
server/process.c
View file @
b3332d74
...
@@ -386,7 +386,7 @@ static void startup_info_dump( struct object *obj, int verbose )
...
@@ -386,7 +386,7 @@ static void startup_info_dump( struct object *obj, int verbose )
struct
startup_info
*
info
=
(
struct
startup_info
*
)
obj
;
struct
startup_info
*
info
=
(
struct
startup_info
*
)
obj
;
assert
(
obj
->
ops
==
&
startup_info_ops
);
assert
(
obj
->
ops
==
&
startup_info_ops
);
fprintf
(
stderr
,
"Startup info flags=%x in=%
d out=%d err=%d
\n
"
,
fprintf
(
stderr
,
"Startup info flags=%x in=%
p out=%p err=%p
\n
"
,
info
->
create_flags
,
info
->
hstdin
,
info
->
hstdout
,
info
->
hstderr
);
info
->
create_flags
,
info
->
hstdin
,
info
->
hstdout
,
info
->
hstderr
);
}
}
...
...
server/queue.c
View file @
b3332d74
...
@@ -608,7 +608,7 @@ static void msg_queue_destroy( struct object *obj )
...
@@ -608,7 +608,7 @@ static void msg_queue_destroy( struct object *obj )
static
void
thread_input_dump
(
struct
object
*
obj
,
int
verbose
)
static
void
thread_input_dump
(
struct
object
*
obj
,
int
verbose
)
{
{
struct
thread_input
*
input
=
(
struct
thread_input
*
)
obj
;
struct
thread_input
*
input
=
(
struct
thread_input
*
)
obj
;
fprintf
(
stderr
,
"Thread input focus=%
x capture=%x active=%x
\n
"
,
fprintf
(
stderr
,
"Thread input focus=%
p capture=%p active=%p
\n
"
,
input
->
focus
,
input
->
capture
,
input
->
active
);
input
->
focus
,
input
->
capture
,
input
->
active
);
}
}
...
...
server/request.c
View file @
b3332d74
...
@@ -384,7 +384,7 @@ int send_client_fd( struct process *process, int fd, obj_handle_t handle )
...
@@ -384,7 +384,7 @@ int send_client_fd( struct process *process, int fd, obj_handle_t handle )
int
ret
;
int
ret
;
if
(
debug_level
)
if
(
debug_level
)
fprintf
(
stderr
,
"%08x: *fd* %
d
-> %d
\n
"
,
(
unsigned
int
)
current
,
handle
,
fd
);
fprintf
(
stderr
,
"%08x: *fd* %
p
-> %d
\n
"
,
(
unsigned
int
)
current
,
handle
,
fd
);
#ifdef HAVE_MSGHDR_ACCRIGHTS
#ifdef HAVE_MSGHDR_ACCRIGHTS
msghdr
.
msg_accrightslen
=
sizeof
(
fd
);
msghdr
.
msg_accrightslen
=
sizeof
(
fd
);
...
...
server/sock.c
View file @
b3332d74
...
@@ -253,7 +253,7 @@ static void sock_wake_up( struct sock *sock, int pollev )
...
@@ -253,7 +253,7 @@ static void sock_wake_up( struct sock *sock, int pollev )
}
}
if
(
sock
->
window
)
if
(
sock
->
window
)
{
{
if
(
debug_level
)
fprintf
(
stderr
,
"signalling events %x win %
x
\n
"
,
events
,
sock
->
window
);
if
(
debug_level
)
fprintf
(
stderr
,
"signalling events %x win %
p
\n
"
,
events
,
sock
->
window
);
for
(
i
=
0
;
i
<
FD_MAX_EVENTS
;
i
++
)
for
(
i
=
0
;
i
<
FD_MAX_EVENTS
;
i
++
)
{
{
int
event
=
event_bitorder
[
i
];
int
event
=
event_bitorder
[
i
];
...
...
server/trace.c
View file @
b3332d74
This diff is collapsed.
Click to expand it.
server/user.c
View file @
b3332d74
...
@@ -35,17 +35,18 @@ static int allocated_handles;
...
@@ -35,17 +35,18 @@ static int allocated_handles;
static
struct
user_handle
*
handle_to_entry
(
user_handle_t
handle
)
static
struct
user_handle
*
handle_to_entry
(
user_handle_t
handle
)
{
{
int
index
=
(
handle
&
0xffff
)
-
FIRST_USER_HANDLE
;
int
index
=
(
(
unsigned
int
)
handle
&
0xffff
)
-
FIRST_USER_HANDLE
;
if
(
index
<
0
||
index
>=
nb_handles
)
return
NULL
;
if
(
index
<
0
||
index
>=
nb_handles
)
return
NULL
;
if
(
!
handles
[
index
].
type
)
return
NULL
;
if
(
!
handles
[
index
].
type
)
return
NULL
;
if
((
handle
>>
16
)
&&
(
handle
>>
16
!=
handles
[
index
].
generation
))
return
NULL
;
if
(((
unsigned
int
)
handle
>>
16
)
&&
((
unsigned
int
)
handle
>>
16
!=
handles
[
index
].
generation
))
return
NULL
;
return
&
handles
[
index
];
return
&
handles
[
index
];
}
}
inline
static
user_handle_t
entry_to_handle
(
struct
user_handle
*
ptr
)
inline
static
user_handle_t
entry_to_handle
(
struct
user_handle
*
ptr
)
{
{
int
index
=
ptr
-
handles
;
int
index
=
ptr
-
handles
;
return
(
index
+
FIRST_USER_HANDLE
)
+
(
ptr
->
generation
<<
16
);
return
(
user_handle_t
)((
index
+
FIRST_USER_HANDLE
)
+
(
ptr
->
generation
<<
16
)
);
}
}
inline
static
struct
user_handle
*
alloc_user_entry
(
void
)
inline
static
struct
user_handle
*
alloc_user_entry
(
void
)
...
@@ -110,7 +111,7 @@ user_handle_t get_user_full_handle( user_handle_t handle )
...
@@ -110,7 +111,7 @@ user_handle_t get_user_full_handle( user_handle_t handle )
{
{
struct
user_handle
*
entry
;
struct
user_handle
*
entry
;
if
(
handle
>>
16
)
return
handle
;
if
(
(
unsigned
int
)
handle
>>
16
)
return
handle
;
if
(
!
(
entry
=
handle_to_entry
(
handle
)))
return
handle
;
if
(
!
(
entry
=
handle_to_entry
(
handle
)))
return
handle
;
return
entry_to_handle
(
entry
);
return
entry_to_handle
(
entry
);
}
}
...
@@ -146,7 +147,7 @@ void *next_user_handle( user_handle_t *handle, enum user_object type )
...
@@ -146,7 +147,7 @@ void *next_user_handle( user_handle_t *handle, enum user_object type )
if
(
!*
handle
)
entry
=
handles
;
if
(
!*
handle
)
entry
=
handles
;
else
else
{
{
int
index
=
(
*
handle
&
0xffff
)
-
FIRST_USER_HANDLE
;
int
index
=
(
(
unsigned
int
)
*
handle
&
0xffff
)
-
FIRST_USER_HANDLE
;
if
(
index
<
0
||
index
>=
nb_handles
)
return
NULL
;
if
(
index
<
0
||
index
>=
nb_handles
)
return
NULL
;
entry
=
handles
+
index
+
1
;
/* start from the next one */
entry
=
handles
+
index
+
1
;
/* start from the next one */
}
}
...
...
tools/make_requests
View file @
b3332d74
...
@@ -31,9 +31,9 @@
...
@@ -31,9 +31,9 @@
"void*"
=>
"%p"
,
"void*"
=>
"%p"
,
"time_t"
=>
"%ld"
,
"time_t"
=>
"%ld"
,
"size_t"
=>
"%d"
,
"size_t"
=>
"%d"
,
"obj_handle_t"
=>
"%
d
"
,
"obj_handle_t"
=>
"%
p
"
,
"atom_t"
=>
"%04x"
,
"atom_t"
=>
"%04x"
,
"user_handle_t"
=>
"%
08x
"
,
"user_handle_t"
=>
"%
p
"
,
"process_id_t"
=>
"%08x"
,
"process_id_t"
=>
"%08x"
,
"thread_id_t"
=>
"%08x"
,
"thread_id_t"
=>
"%08x"
,
"rectangle_t"
=>
"&dump_rectangle"
,
"rectangle_t"
=>
"&dump_rectangle"
,
...
...
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