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
7827254c
Commit
7827254c
authored
Apr 28, 2000
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Apr 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of HEAP_xrealloc.
parent
2941a212
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
21 deletions
+2
-21
debugger.h
debugger/debugger.h
+2
-2
heap.h
include/heap.h
+0
-1
heap.c
memory/heap.c
+0
-18
No files found.
debugger/debugger.h
View file @
7827254c
...
@@ -451,8 +451,8 @@ extern char* DEBUG_XStrDup(const char *str);
...
@@ -451,8 +451,8 @@ extern char* DEBUG_XStrDup(const char *str);
work, etc... if someone could make optimized routines so it wouldn't
work, etc... if someone could make optimized routines so it wouldn't
take so long to load, it could be made default) */
take so long to load, it could be made default) */
#include "heap.h"
#include "heap.h"
#define DBG_alloc(x) H
EAP_xa
lloc(dbg_heap,0,x)
#define DBG_alloc(x) H
eapA
lloc(dbg_heap,0,x)
#define DBG_realloc(x,y) H
EAP_xr
ealloc(dbg_heap,0,x,y)
#define DBG_realloc(x,y) H
eapR
ealloc(dbg_heap,0,x,y)
#define DBG_free(x) HeapFree(dbg_heap,0,x)
#define DBG_free(x) HeapFree(dbg_heap,0,x)
#define DBG_strdup(x) HEAP_strdupA(dbg_heap,0,x)
#define DBG_strdup(x) HEAP_strdupA(dbg_heap,0,x)
#define DBG_need_heap
#define DBG_need_heap
...
...
include/heap.h
View file @
7827254c
...
@@ -17,7 +17,6 @@ extern HANDLE SegptrHeap;
...
@@ -17,7 +17,6 @@ extern HANDLE SegptrHeap;
extern
int
HEAP_IsInsideHeap
(
HANDLE
heap
,
DWORD
flags
,
LPCVOID
ptr
);
extern
int
HEAP_IsInsideHeap
(
HANDLE
heap
,
DWORD
flags
,
LPCVOID
ptr
);
extern
SEGPTR
HEAP_GetSegptr
(
HANDLE
heap
,
DWORD
flags
,
LPCVOID
ptr
);
extern
SEGPTR
HEAP_GetSegptr
(
HANDLE
heap
,
DWORD
flags
,
LPCVOID
ptr
);
extern
LPVOID
HEAP_xalloc
(
HANDLE
heap
,
DWORD
flags
,
DWORD
size
);
extern
LPVOID
HEAP_xalloc
(
HANDLE
heap
,
DWORD
flags
,
DWORD
size
);
extern
LPVOID
HEAP_xrealloc
(
HANDLE
heap
,
DWORD
flags
,
LPVOID
lpMem
,
DWORD
size
);
extern
LPSTR
HEAP_strdupA
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
);
extern
LPSTR
HEAP_strdupA
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
);
extern
LPWSTR
HEAP_strdupW
(
HANDLE
heap
,
DWORD
flags
,
LPCWSTR
str
);
extern
LPWSTR
HEAP_strdupW
(
HANDLE
heap
,
DWORD
flags
,
LPCWSTR
str
);
extern
LPWSTR
HEAP_strdupAtoW
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
);
extern
LPWSTR
HEAP_strdupAtoW
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
);
...
...
memory/heap.c
View file @
7827254c
...
@@ -1652,24 +1652,6 @@ LPVOID HEAP_xalloc( HANDLE heap, DWORD flags, DWORD size )
...
@@ -1652,24 +1652,6 @@ LPVOID HEAP_xalloc( HANDLE heap, DWORD flags, DWORD size )
/***********************************************************************
/***********************************************************************
* HEAP_xrealloc
*
* Same as HeapReAlloc(), but die on failure.
*/
LPVOID
HEAP_xrealloc
(
HANDLE
heap
,
DWORD
flags
,
LPVOID
lpMem
,
DWORD
size
)
{
LPVOID
p
=
HeapReAlloc
(
heap
,
flags
,
lpMem
,
size
);
if
(
!
p
)
{
MESSAGE
(
"Virtual memory exhausted.
\n
"
);
exit
(
1
);
}
SET_EIP
(
p
);
return
p
;
}
/***********************************************************************
* HEAP_strdupA
* HEAP_strdupA
*/
*/
LPSTR
HEAP_strdupA
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
)
LPSTR
HEAP_strdupA
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
)
...
...
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