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
06681774
Commit
06681774
authored
May 04, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
May 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove unused QUIET/NOISY constants and parameters.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c883822d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
heap.c
dlls/ntdll/heap.c
+4
-7
No files found.
dlls/ntdll/heap.c
View file @
06681774
...
@@ -127,9 +127,6 @@ C_ASSERT( sizeof(ARENA_LARGE) % LARGE_ALIGNMENT == 0 );
...
@@ -127,9 +127,6 @@ C_ASSERT( sizeof(ARENA_LARGE) % LARGE_ALIGNMENT == 0 );
#define ROUND_SIZE(size) ((((size) + ALIGNMENT - 1) & ~(ALIGNMENT-1)) + ARENA_OFFSET)
#define ROUND_SIZE(size) ((((size) + ALIGNMENT - 1) & ~(ALIGNMENT-1)) + ARENA_OFFSET)
#define QUIET 1
/* Suppress messages */
#define NOISY 0
/* Report all errors */
/* minimum data size (without arenas) of an allocated block */
/* minimum data size (without arenas) of an allocated block */
/* make sure that it's larger than a free list entry */
/* make sure that it's larger than a free list entry */
#define HEAP_MIN_DATA_SIZE ROUND_SIZE(2 * sizeof(struct list))
#define HEAP_MIN_DATA_SIZE ROUND_SIZE(2 * sizeof(struct list))
...
@@ -289,7 +286,7 @@ static inline BOOL check_subheap( const SUBHEAP *subheap )
...
@@ -289,7 +286,7 @@ static inline BOOL check_subheap( const SUBHEAP *subheap )
return
contains
(
base
,
subheap
->
size
,
base
+
subheap
->
headerSize
,
subheap
->
commitSize
-
subheap
->
headerSize
);
return
contains
(
base
,
subheap
->
size
,
base
+
subheap
->
headerSize
,
subheap
->
commitSize
-
subheap
->
headerSize
);
}
}
static
BOOL
heap_validate
(
HEAP
*
heap
,
BOOL
quiet
);
static
BOOL
heap_validate
(
HEAP
*
heap
);
/* mark a block of memory as free for debugging purposes */
/* mark a block of memory as free for debugging purposes */
static
inline
void
mark_block_free
(
void
*
ptr
,
SIZE_T
size
,
DWORD
flags
)
static
inline
void
mark_block_free
(
void
*
ptr
,
SIZE_T
size
,
DWORD
flags
)
...
@@ -579,7 +576,7 @@ static HEAP *HEAP_GetPtr(
...
@@ -579,7 +576,7 @@ static HEAP *HEAP_GetPtr(
if
(
heapPtr
->
flags
&
HEAP_VALIDATE_ALL
)
if
(
heapPtr
->
flags
&
HEAP_VALIDATE_ALL
)
{
{
heap_lock
(
heapPtr
,
0
);
heap_lock
(
heapPtr
,
0
);
valid
=
heap_validate
(
heapPtr
,
NOISY
);
valid
=
heap_validate
(
heapPtr
);
heap_unlock
(
heapPtr
,
0
);
heap_unlock
(
heapPtr
,
0
);
if
(
!
valid
&&
TRACE_ON
(
heap
))
if
(
!
valid
&&
TRACE_ON
(
heap
))
...
@@ -1290,7 +1287,7 @@ static BOOL heap_validate_ptr( const HEAP *heap, const void *ptr, SUBHEAP **subh
...
@@ -1290,7 +1287,7 @@ static BOOL heap_validate_ptr( const HEAP *heap, const void *ptr, SUBHEAP **subh
return
validate_used_block
(
*
subheap
,
arena
);
return
validate_used_block
(
*
subheap
,
arena
);
}
}
static
BOOL
heap_validate
(
HEAP
*
heap
,
BOOL
quiet
)
static
BOOL
heap_validate
(
HEAP
*
heap
)
{
{
const
ARENA_LARGE
*
large_arena
;
const
ARENA_LARGE
*
large_arena
;
const
SUBHEAP
*
subheap
;
const
SUBHEAP
*
subheap
;
...
@@ -1930,7 +1927,7 @@ BOOLEAN WINAPI RtlValidateHeap( HANDLE heap, ULONG flags, const void *ptr )
...
@@ -1930,7 +1927,7 @@ BOOLEAN WINAPI RtlValidateHeap( HANDLE heap, ULONG flags, const void *ptr )
{
{
heap_lock
(
heapPtr
,
flags
);
heap_lock
(
heapPtr
,
flags
);
if
(
ptr
)
ret
=
heap_validate_ptr
(
heapPtr
,
ptr
,
&
subheap
);
if
(
ptr
)
ret
=
heap_validate_ptr
(
heapPtr
,
ptr
,
&
subheap
);
else
ret
=
heap_validate
(
heapPtr
,
QUIET
);
else
ret
=
heap_validate
(
heapPtr
);
heap_unlock
(
heapPtr
,
flags
);
heap_unlock
(
heapPtr
,
flags
);
}
}
...
...
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