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
9593c9e6
Commit
9593c9e6
authored
Sep 19, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Sep 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dlls: Do not use __WINE_ALLOC_SIZE between void and *.
parent
6d0ffa50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
hhctrl.h
dlls/hhctrl.ocx/hhctrl.h
+4
-4
localspl_private.h
dlls/localspl/localspl_private.h
+6
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+3
-3
editor.h
dlls/riched20/editor.h
+2
-2
No files found.
dlls/hhctrl.ocx/hhctrl.h
View file @
9593c9e6
...
...
@@ -141,22 +141,22 @@ BOOL NavigateToChm(HHInfo*,LPCWSTR,LPCWSTR);
/* memory allocation functions */
static
inline
void
__WINE_ALLOC_SIZE
(
1
)
*
heap_alloc
(
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
static
inline
void
__WINE_ALLOC_SIZE
(
1
)
*
heap_alloc_zero
(
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
);
}
static
inline
void
__WINE_ALLOC_SIZE
(
2
)
*
heap_realloc
(
void
*
mem
,
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
2
)
heap_realloc
(
void
*
mem
,
size_t
len
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
mem
,
len
);
}
static
inline
void
__WINE_ALLOC_SIZE
(
2
)
*
heap_realloc_zero
(
void
*
mem
,
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
2
)
heap_realloc_zero
(
void
*
mem
,
size_t
len
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
mem
,
len
);
}
...
...
dlls/localspl/localspl_private.h
View file @
9593c9e6
...
...
@@ -51,11 +51,16 @@ extern HINSTANCE LOCALSPL_hInstance;
/* ## Memory allocation functions ## */
static
inline
void
__WINE_ALLOC_SIZE
(
1
)
*
heap_alloc
(
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
);
}
static
inline
BOOL
heap_free
(
void
*
mem
)
{
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
...
...
dlls/mshtml/mshtml_private.h
View file @
9593c9e6
...
...
@@ -654,17 +654,17 @@ extern LONG module_ref;
/* memory allocation functions */
static
inline
void
__WINE_ALLOC_SIZE
(
1
)
*
heap_alloc
(
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
static
inline
void
__WINE_ALLOC_SIZE
(
1
)
*
heap_alloc_zero
(
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc_zero
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
);
}
static
inline
void
__WINE_ALLOC_SIZE
(
2
)
*
heap_realloc
(
void
*
mem
,
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
2
)
heap_realloc
(
void
*
mem
,
size_t
len
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
mem
,
len
);
}
...
...
dlls/riched20/editor.h
View file @
9593c9e6
...
...
@@ -25,7 +25,7 @@ struct _RTF_Info;
extern
HANDLE
me_heap
;
static
inline
void
__WINE_ALLOC_SIZE
(
1
)
*
heap_alloc
(
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
1
)
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
me_heap
,
0
,
len
);
}
...
...
@@ -35,7 +35,7 @@ static inline BOOL heap_free( void *ptr )
return
HeapFree
(
me_heap
,
0
,
ptr
);
}
static
inline
void
__WINE_ALLOC_SIZE
(
2
)
*
heap_realloc
(
void
*
ptr
,
size_t
len
)
static
inline
void
*
__WINE_ALLOC_SIZE
(
2
)
heap_realloc
(
void
*
ptr
,
size_t
len
)
{
return
HeapReAlloc
(
me_heap
,
0
,
ptr
,
len
);
}
...
...
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