Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
a518dffc
Commit
a518dffc
authored
Jan 20, 2010
by
Uwe Schulzweida
Browse files
convert argument to size_t
parent
5447ebb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dmemory.h
View file @
a518dffc
...
...
@@ -28,15 +28,15 @@ extern void Free (const char *caller, const char *file, int line, void *ptr
#endif
#if defined WITH_CALLER_NAME
# define realloc(
x
,
y
) Realloc(func, __FILE__, __LINE__,
x
,
y
)
# define calloc(
x
,
y
) Calloc(func, __FILE__, __LINE__,
x
,
y
)
# define malloc(
x
) Malloc(func, __FILE__, __LINE__,
x
)
# define free(
x
) Free(func, __FILE__, __LINE__,
x
)
# define realloc(
p
,
s
) Realloc(func, __FILE__, __LINE__,
p
,
(size_t)s
)
# define calloc(
n
,
s
) Calloc(func, __FILE__, __LINE__,
n
,
(size_t)s
)
# define malloc(
s
) Malloc(func, __FILE__, __LINE__,
(size_t)s
)
# define free(
p
) Free(func, __FILE__, __LINE__,
p
)
#else
# define realloc(
x
,
y
) Realloc((void *) NULL, __FILE__, __LINE__,
x
,
y
)
# define calloc(
x
,
y
) Calloc((void *) NULL, __FILE__, __LINE__,
x
,
y
)
# define malloc(
x
) Malloc((void *) NULL, __FILE__, __LINE__,
x
)
# define free(
x
) Free((void *) NULL, __FILE__, __LINE__,
x
)
# define realloc(
p
,
s
) Realloc((void *) NULL, __FILE__, __LINE__,
p
,
(size_t)s
)
# define calloc(
n
,
s
) Calloc((void *) NULL, __FILE__, __LINE__,
n
,
(size_t)s
)
# define malloc(
s
) Malloc((void *) NULL, __FILE__, __LINE__,
(size_t)s
)
# define free(
p
) Free((void *) NULL, __FILE__, __LINE__,
p
)
#endif
#endif
/* DEBUG_MEMORY */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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