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
18f7ec36
Commit
18f7ec36
authored
Jul 16, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Remove unnecessary consts.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af00d2cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
vartype.c
dlls/oleaut32/vartype.c
+12
-12
oleauto.h
include/oleauto.h
+12
-12
No files found.
dlls/oleaut32/vartype.c
View file @
18f7ec36
...
...
@@ -3781,7 +3781,7 @@ HRESULT WINAPI VarCyFromUI8(ULONG64 ullIn, CY* pCyOut)
* Success: S_OK.
* Failure: DISP_E_OVERFLOW, if the value will not fit in the destination
*/
HRESULT
WINAPI
VarCyAdd
(
const
CY
cyLeft
,
const
CY
cyRight
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyAdd
(
CY
cyLeft
,
CY
cyRight
,
CY
*
pCyOut
)
{
double
l
,
r
;
_VarR8FromCy
(
cyLeft
,
&
l
);
...
...
@@ -3804,7 +3804,7 @@ HRESULT WINAPI VarCyAdd(const CY cyLeft, const CY cyRight, CY* pCyOut)
* Success: S_OK.
* Failure: DISP_E_OVERFLOW, if the value will not fit in the destination
*/
HRESULT
WINAPI
VarCyMul
(
const
CY
cyLeft
,
const
CY
cyRight
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyMul
(
CY
cyLeft
,
CY
cyRight
,
CY
*
pCyOut
)
{
double
l
,
r
;
_VarR8FromCy
(
cyLeft
,
&
l
);
...
...
@@ -3827,7 +3827,7 @@ HRESULT WINAPI VarCyMul(const CY cyLeft, const CY cyRight, CY* pCyOut)
* Success: S_OK.
* Failure: DISP_E_OVERFLOW, if the value will not fit in the destination
*/
HRESULT
WINAPI
VarCyMulI4
(
const
CY
cyLeft
,
LONG
lRight
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyMulI4
(
CY
cyLeft
,
LONG
lRight
,
CY
*
pCyOut
)
{
double
d
;
...
...
@@ -3850,7 +3850,7 @@ HRESULT WINAPI VarCyMulI4(const CY cyLeft, LONG lRight, CY* pCyOut)
* Success: S_OK.
* Failure: DISP_E_OVERFLOW, if the value will not fit in the destination
*/
HRESULT
WINAPI
VarCySub
(
const
CY
cyLeft
,
const
CY
cyRight
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCySub
(
CY
cyLeft
,
CY
cyRight
,
CY
*
pCyOut
)
{
double
l
,
r
;
_VarR8FromCy
(
cyLeft
,
&
l
);
...
...
@@ -3872,7 +3872,7 @@ HRESULT WINAPI VarCySub(const CY cyLeft, const CY cyRight, CY* pCyOut)
* Success: S_OK. pCyOut contains the absolute value.
* Failure: DISP_E_OVERFLOW, if the value will not fit in the destination
*/
HRESULT
WINAPI
VarCyAbs
(
const
CY
cyIn
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyAbs
(
CY
cyIn
,
CY
*
pCyOut
)
{
if
(
cyIn
.
s
.
Hi
==
(
int
)
0x80000000
&&
!
cyIn
.
s
.
Lo
)
return
DISP_E_OVERFLOW
;
...
...
@@ -3898,7 +3898,7 @@ HRESULT WINAPI VarCyAbs(const CY cyIn, CY* pCyOut)
* - The difference between this function and VarCyInt() is that VarCyInt() rounds
* negative numbers away from 0, while this function rounds them towards zero.
*/
HRESULT
WINAPI
VarCyFix
(
const
CY
cyIn
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyFix
(
CY
cyIn
,
CY
*
pCyOut
)
{
pCyOut
->
int64
=
cyIn
.
int64
/
CY_MULTIPLIER
;
pCyOut
->
int64
*=
CY_MULTIPLIER
;
...
...
@@ -3922,7 +3922,7 @@ HRESULT WINAPI VarCyFix(const CY cyIn, CY* pCyOut)
* - The difference between this function and VarCyFix() is that VarCyFix() rounds
* negative numbers towards 0, while this function rounds them away from zero.
*/
HRESULT
WINAPI
VarCyInt
(
const
CY
cyIn
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyInt
(
CY
cyIn
,
CY
*
pCyOut
)
{
pCyOut
->
int64
=
cyIn
.
int64
/
CY_MULTIPLIER
;
pCyOut
->
int64
*=
CY_MULTIPLIER
;
...
...
@@ -3947,7 +3947,7 @@ HRESULT WINAPI VarCyInt(const CY cyIn, CY* pCyOut)
* Success: S_OK.
* Failure: DISP_E_OVERFLOW, if the value will not fit in the destination
*/
HRESULT
WINAPI
VarCyNeg
(
const
CY
cyIn
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyNeg
(
CY
cyIn
,
CY
*
pCyOut
)
{
if
(
cyIn
.
s
.
Hi
==
(
int
)
0x80000000
&&
!
cyIn
.
s
.
Lo
)
return
DISP_E_OVERFLOW
;
...
...
@@ -3970,7 +3970,7 @@ HRESULT WINAPI VarCyNeg(const CY cyIn, CY* pCyOut)
* Success: S_OK.
* Failure: E_INVALIDARG, if cDecimals is less than 0.
*/
HRESULT
WINAPI
VarCyRound
(
const
CY
cyIn
,
int
cDecimals
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyRound
(
CY
cyIn
,
int
cDecimals
,
CY
*
pCyOut
)
{
if
(
cDecimals
<
0
)
return
E_INVALIDARG
;
...
...
@@ -4008,7 +4008,7 @@ HRESULT WINAPI VarCyRound(const CY cyIn, int cDecimals, CY* pCyOut)
* compare is less, equal or greater than source respectively.
* Failure: DISP_E_OVERFLOW, if overflow occurs during the comparison
*/
HRESULT
WINAPI
VarCyCmp
(
const
CY
cyLeft
,
const
CY
cyRight
)
HRESULT
WINAPI
VarCyCmp
(
CY
cyLeft
,
CY
cyRight
)
{
HRESULT
hRet
;
CY
result
;
...
...
@@ -4042,7 +4042,7 @@ HRESULT WINAPI VarCyCmp(const CY cyLeft, const CY cyRight)
* less than, equal to or greater than cyLeft respectively.
* Failure: DISP_E_OVERFLOW, if overflow occurs during the comparison
*/
HRESULT
WINAPI
VarCyCmpR8
(
const
CY
cyLeft
,
double
dblRight
)
HRESULT
WINAPI
VarCyCmpR8
(
CY
cyLeft
,
double
dblRight
)
{
HRESULT
hRet
;
CY
cyRight
;
...
...
@@ -4069,7 +4069,7 @@ HRESULT WINAPI VarCyCmpR8(const CY cyLeft, double dblRight)
* Success: S_OK.
* Failure: DISP_E_OVERFLOW, if the value will not fit in the destination
*/
HRESULT
WINAPI
VarCyMulI8
(
const
CY
cyLeft
,
LONG64
llRight
,
CY
*
pCyOut
)
HRESULT
WINAPI
VarCyMulI8
(
CY
cyLeft
,
LONG64
llRight
,
CY
*
pCyOut
)
{
double
d
;
...
...
include/oleauto.h
View file @
18f7ec36
...
...
@@ -561,18 +561,18 @@ HRESULT WINAPI VarDecNeg(const DECIMAL*,DECIMAL*);
HRESULT
WINAPI
VarDecRound
(
const
DECIMAL
*
,
int
,
DECIMAL
*
);
HRESULT
WINAPI
VarDecSub
(
const
DECIMAL
*
,
const
DECIMAL
*
,
DECIMAL
*
);
HRESULT
WINAPI
VarCyAbs
(
const
CY
,
CY
*
);
HRESULT
WINAPI
VarCyAdd
(
const
CY
,
const
CY
,
CY
*
);
HRESULT
WINAPI
VarCyCmp
(
const
CY
,
const
CY
);
HRESULT
WINAPI
VarCyCmpR8
(
const
CY
,
DOUBLE
);
HRESULT
WINAPI
VarCyFix
(
const
CY
,
CY
*
);
HRESULT
WINAPI
VarCyInt
(
const
CY
,
CY
*
);
HRESULT
WINAPI
VarCyMul
(
const
CY
,
CY
,
CY
*
);
HRESULT
WINAPI
VarCyMulI4
(
const
CY
,
LONG
,
CY
*
);
HRESULT
WINAPI
VarCyMulI8
(
const
CY
,
LONG64
,
CY
*
);
HRESULT
WINAPI
VarCyNeg
(
const
CY
,
CY
*
);
HRESULT
WINAPI
VarCyRound
(
const
CY
,
INT
,
CY
*
);
HRESULT
WINAPI
VarCySub
(
const
CY
,
const
CY
,
CY
*
);
HRESULT
WINAPI
VarCyAbs
(
CY
,
CY
*
);
HRESULT
WINAPI
VarCyAdd
(
CY
,
CY
,
CY
*
);
HRESULT
WINAPI
VarCyCmp
(
CY
,
CY
);
HRESULT
WINAPI
VarCyCmpR8
(
CY
,
DOUBLE
);
HRESULT
WINAPI
VarCyFix
(
CY
,
CY
*
);
HRESULT
WINAPI
VarCyInt
(
CY
,
CY
*
);
HRESULT
WINAPI
VarCyMul
(
CY
,
CY
,
CY
*
);
HRESULT
WINAPI
VarCyMulI4
(
CY
,
LONG
,
CY
*
);
HRESULT
WINAPI
VarCyMulI8
(
CY
,
LONG64
,
CY
*
);
HRESULT
WINAPI
VarCyNeg
(
CY
,
CY
*
);
HRESULT
WINAPI
VarCyRound
(
CY
,
INT
,
CY
*
);
HRESULT
WINAPI
VarCySub
(
CY
,
CY
,
CY
*
);
HRESULT
WINAPI
VarAdd
(
LPVARIANT
,
LPVARIANT
,
LPVARIANT
);
HRESULT
WINAPI
VarAnd
(
LPVARIANT
,
LPVARIANT
,
LPVARIANT
);
...
...
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