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
3c0e5eed
Commit
3c0e5eed
authored
Feb 06, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few fixes for pointer qualifiers (const, volatile) warnings.
parent
e3ebb3aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
winbase.h
include/winbase.h
+2
-2
cptable.c
libs/unicode/cptable.c
+1
-1
mcy.y
tools/wmc/mcy.y
+3
-3
No files found.
include/winbase.h
View file @
3c0e5eed
...
...
@@ -2284,7 +2284,7 @@ static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID volatile *de
:
"=a"
(
ret
)
:
"r"
(
dest
),
"r"
(
xchg
),
"0"
(
compare
)
:
"memory"
);
return
ret
;
#else
return
(
PVOID
)
InterlockedCompareExchange
(
(
PLONG
)
dest
,
(
LONG
)
xchg
,
(
LONG
)
compare
);
return
(
PVOID
)
InterlockedCompareExchange
(
(
LONG
volatile
*
)
dest
,
(
LONG
)
xchg
,
(
LONG
)
compare
);
#endif
}
...
...
@@ -2296,7 +2296,7 @@ static inline PVOID WINAPI InterlockedExchangePointer( PVOID volatile *dest, PVO
:
"=r"
(
ret
)
:
"r"
(
dest
),
"0"
(
val
)
:
"memory"
);
return
ret
;
#else
return
(
PVOID
)
InterlockedExchange
(
(
PLONG
)
dest
,
(
LONG
)
val
);
return
(
PVOID
)
InterlockedExchange
(
(
LONG
volatile
*
)
dest
,
(
LONG
)
val
);
#endif
}
...
...
libs/unicode/cptable.c
View file @
3c0e5eed
...
...
@@ -156,7 +156,7 @@ static const union cptable * const cptables[60] =
static
int
cmp_codepage
(
const
void
*
codepage
,
const
void
*
entry
)
{
return
*
(
unsigned
int
*
)
codepage
-
(
*
(
const
union
cptable
*
const
*
)
entry
)
->
info
.
codepage
;
return
*
(
const
unsigned
int
*
)
codepage
-
(
*
(
const
union
cptable
*
const
*
)
entry
)
->
info
.
codepage
;
}
...
...
tools/wmc/mcy.y
View file @
3c0e5eed
...
...
@@ -465,7 +465,7 @@ static msg_t *add_lanmsg(msg_t *msg, lanmsg_t *lanmsg)
static int sort_lanmsg(const void *p1, const void *p2)
{
return (*(
lanmsg_t **)p1)->lan - (*(lanmsg_t *
*)p2)->lan;
return (*(
const lanmsg_t * const *)p1)->lan - (*(const lanmsg_t * const
*)p2)->lan;
}
static msg_t *complete_msg(msg_t *mp, int id)
...
...
@@ -563,7 +563,7 @@ static int check_languages(node_t *head)
return nm;
}
#define MSGRID(x) ((*(
msg_t *
*)(x))->realid)
#define MSGRID(x) ((*(
const msg_t * const
*)(x))->realid)
static int sort_msg(const void *p1, const void *p2)
{
return MSGRID(p1) > MSGRID(p2) ? 1 : (MSGRID(p1) == MSGRID(p2) ? 0 : -1);
...
...
@@ -653,7 +653,7 @@ static lan_blk_t *block_messages(node_t *head)
static int sc_xlat(const void *p1, const void *p2)
{
return ((c
p_xlat_t *)p1)->lan - ((
cp_xlat_t *)p2)->lan;
return ((c
onst cp_xlat_t *)p1)->lan - ((const
cp_xlat_t *)p2)->lan;
}
static void add_cpxlat(int lan, int cpin, int cpout)
...
...
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