Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
80cff47c
Commit
80cff47c
authored
Dec 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Get rid of the WINE_NO_LONG_AS_INT ifdefs.
parent
67449294
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
23 deletions
+3
-23
guiddef.h
include/guiddef.h
+1
-1
windef.h
include/windef.h
+1
-1
debug.h
include/wine/debug.h
+0
-16
test.h
include/wine/test.h
+0
-4
winnt.h
include/winnt.h
+1
-1
No files found.
include/guiddef.h
View file @
80cff47c
...
...
@@ -20,7 +20,7 @@
#define GUID_DEFINED
typedef
struct
_GUID
{
#if
defined(_MSC_VER) || (defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64))
#if
def _MSC_VER
unsigned
long
Data1
;
#else
unsigned
int
Data1
;
...
...
include/windef.h
View file @
80cff47c
...
...
@@ -196,7 +196,7 @@ typedef int INT, *PINT, *LPINT;
typedef
unsigned
int
UINT
,
*
PUINT
;
typedef
float
FLOAT
,
*
PFLOAT
;
typedef
char
*
PSZ
;
#if
defined(_MSC_VER) || (defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64))
#if
def _MSC_VER
typedef
long
*
LPLONG
;
typedef
unsigned
long
DWORD
,
*
PDWORD
,
*
LPDWORD
;
typedef
unsigned
long
ULONG
,
*
PULONG
;
...
...
include/wine/debug.h
View file @
80cff47c
...
...
@@ -187,11 +187,7 @@ static inline const char *wine_dbgstr_guid( const GUID *id )
{
if
(
!
id
)
return
"(null)"
;
if
(
!
((
INT_PTR
)
id
>>
16
))
return
wine_dbg_sprintf
(
"<guid-0x%04x>"
,
(
INT_PTR
)
id
&
0xffff
);
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
return
wine_dbg_sprintf
(
"{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
,
#else
return
wine_dbg_sprintf
(
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}"
,
#endif
id
->
Data1
,
id
->
Data2
,
id
->
Data3
,
id
->
Data4
[
0
],
id
->
Data4
[
1
],
id
->
Data4
[
2
],
id
->
Data4
[
3
],
id
->
Data4
[
4
],
id
->
Data4
[
5
],
id
->
Data4
[
6
],
id
->
Data4
[
7
]
);
...
...
@@ -200,32 +196,20 @@ static inline const char *wine_dbgstr_guid( const GUID *id )
static
inline
const
char
*
wine_dbgstr_point
(
const
POINT
*
pt
)
{
if
(
!
pt
)
return
"(null)"
;
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
return
wine_dbg_sprintf
(
"(%ld,%ld)"
,
pt
->
x
,
pt
->
y
);
#else
return
wine_dbg_sprintf
(
"(%d,%d)"
,
pt
->
x
,
pt
->
y
);
#endif
}
static
inline
const
char
*
wine_dbgstr_size
(
const
SIZE
*
size
)
{
if
(
!
size
)
return
"(null)"
;
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
return
wine_dbg_sprintf
(
"(%ld,%ld)"
,
size
->
cx
,
size
->
cy
);
#else
return
wine_dbg_sprintf
(
"(%d,%d)"
,
size
->
cx
,
size
->
cy
);
#endif
}
static
inline
const
char
*
wine_dbgstr_rect
(
const
RECT
*
rect
)
{
if
(
!
rect
)
return
"(null)"
;
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
return
wine_dbg_sprintf
(
"(%ld,%ld)-(%ld,%ld)"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
);
#else
return
wine_dbg_sprintf
(
"(%d,%d)-(%d,%d)"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
);
#endif
}
static
inline
const
char
*
wine_dbgstr_longlong
(
ULONGLONG
ll
)
...
...
include/wine/test.h
View file @
80cff47c
...
...
@@ -371,11 +371,7 @@ static int run_test( const char *name )
if
(
winetest_debug
)
{
#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)
fprintf
(
stdout
,
"%s: %ld tests executed, %ld marked as todo, %ld %s.
\n
"
,
#else
fprintf
(
stdout
,
"%s: %d tests executed, %d marked as todo, %d %s.
\n
"
,
#endif
name
,
successes
+
failures
+
todo_successes
+
todo_failures
,
todo_successes
,
failures
+
todo_failures
,
(
failures
+
todo_failures
!=
1
)
?
"failures"
:
"failure"
);
...
...
include/winnt.h
View file @
80cff47c
...
...
@@ -319,7 +319,7 @@ typedef VOID *PVOID64;
typedef
BYTE
BOOLEAN
,
*
PBOOLEAN
;
typedef
char
CHAR
,
*
PCHAR
;
typedef
short
SHORT
,
*
PSHORT
;
#if
defined(_MSC_VER) || (defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64))
#if
def _MSC_VER
typedef
long
LONG
,
*
PLONG
;
#else
typedef
int
LONG
,
*
PLONG
;
...
...
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