mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Move the Minefield function prototypes into puttymem.h.
I haven't tried compiling with /DMINEFIELD in a while, and when I just did, I found that the declarations in winstuff.h weren't actually being included by memory.c where they're needed.
This commit is contained in:
parent
a432943d19
commit
5e9213ca48
11
puttymem.h
11
puttymem.h
@ -57,4 +57,15 @@ void safefree(void *);
|
|||||||
*/
|
*/
|
||||||
NORETURN void out_of_memory(void);
|
NORETURN void out_of_memory(void);
|
||||||
|
|
||||||
|
#ifdef MINEFIELD
|
||||||
|
/*
|
||||||
|
* Definitions for Minefield, PuTTY's own Windows-specific malloc
|
||||||
|
* debugger in the style of Electric Fence. Implemented in winmisc.c,
|
||||||
|
* and referred to by the main malloc wrappers in memory.c.
|
||||||
|
*/
|
||||||
|
void *minefield_c_malloc(size_t size);
|
||||||
|
void minefield_c_free(void *p);
|
||||||
|
void *minefield_c_realloc(void *p, size_t size);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -700,15 +700,4 @@ char *get_jumplist_registry_entries(void);
|
|||||||
#define CLIPUI_DEFAULT_MOUSE CLIPUI_EXPLICIT
|
#define CLIPUI_DEFAULT_MOUSE CLIPUI_EXPLICIT
|
||||||
#define CLIPUI_DEFAULT_INS CLIPUI_EXPLICIT
|
#define CLIPUI_DEFAULT_INS CLIPUI_EXPLICIT
|
||||||
|
|
||||||
#ifdef MINEFIELD
|
|
||||||
/*
|
|
||||||
* Definitions for Minefield, PuTTY's own Windows-specific malloc
|
|
||||||
* debugger in the style of Electric Fence. Implemented in winmisc.c,
|
|
||||||
* and referred to by the main malloc wrappers in memory.c.
|
|
||||||
*/
|
|
||||||
void *minefield_c_malloc(size_t size);
|
|
||||||
void minefield_c_free(void *p);
|
|
||||||
void *minefield_c_realloc(void *p, size_t size);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user