summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygheap_malloc.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-07-31 14:43:05 +0000
committerChristopher Faylor <me@cgf.cx>2013-07-31 14:43:05 +0000
commit24557e9caaf23db2a642c7637f3c0df7c8bc9106 (patch)
treeb2e3ba2820544ecbaa25e4e73018fa4abeb43cee /winsup/cygwin/cygheap_malloc.h
parentc39e8632d10a0bf45b927741c37bd663f8863112 (diff)
downloadcygnal-24557e9caaf23db2a642c7637f3c0df7c8bc9106.tar.gz
cygnal-24557e9caaf23db2a642c7637f3c0df7c8bc9106.tar.bz2
cygnal-24557e9caaf23db2a642c7637f3c0df7c8bc9106.zip
* cygheap.cc (cmalloc): Use size_t for size field.
(cmalloc_abort): Ditto. (crealloc): Ditto. (crealloc_abort): Ditto. (ccalloc): Ditto. (ccalloc_abort): Ditto. * cygheap_malloc.h (HEAP_USER): Add. (cmalloc): Use size_t for size field in declaration. (cmalloc_abort): Ditto. (crealloc): Ditto. (crealloc_abort): Ditto. (ccalloc): Ditto. (ccalloc_abort): Ditto. * path.cc (normalize_posix_path): Don't check existence of / or // dir in parent dir check.
Diffstat (limited to 'winsup/cygwin/cygheap_malloc.h')
-rw-r--r--winsup/cygwin/cygheap_malloc.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/winsup/cygwin/cygheap_malloc.h b/winsup/cygwin/cygheap_malloc.h
index a7632a940..a4ab2462e 100644
--- a/winsup/cygwin/cygheap_malloc.h
+++ b/winsup/cygwin/cygheap_malloc.h
@@ -25,6 +25,7 @@ enum cygheap_types
HEAP_ARCHETYPES,
HEAP_TLS,
HEAP_COMMUNE,
+ HEAP_USER,
HEAP_1_START,
HEAP_1_HOOK,
HEAP_1_STR,
@@ -41,12 +42,12 @@ enum cygheap_types
extern "C" {
void __reg1 cfree (void *);
-void *__reg2 cmalloc (cygheap_types, DWORD);
-void *__reg2 crealloc (void *, DWORD);
-void *__reg3 ccalloc (cygheap_types, DWORD, DWORD);
-void *__reg2 cmalloc_abort (cygheap_types, DWORD);
-void *__reg2 crealloc_abort (void *, DWORD);
-void *__reg3 ccalloc_abort (cygheap_types, DWORD, DWORD);
+void *__reg2 cmalloc (cygheap_types, size_t);
+void *__reg2 crealloc (void *, size_t);
+void *__reg3 ccalloc (cygheap_types, size_t, size_t);
+void *__reg2 cmalloc_abort (cygheap_types, size_t);
+void *__reg2 crealloc_abort (void *, size_t);
+void *__reg3 ccalloc_abort (cygheap_types, size_t, size_t);
PWCHAR __reg1 cwcsdup (const PWCHAR);
PWCHAR __reg1 cwcsdup1 (const PWCHAR);
char *__reg1 cstrdup (const char *);