From 96c7ab27c383ec767f62a7a11e5fd76f86363fbc Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Thu, 6 May 2010 00:28:25 +0700 Subject: [PATCH] Deprecate allocation functions which are plain wrappers for C stdlib Signed-off-by: Mikhail Gusarov Reviewed-by: Peter Hutterer --- include/os.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/os.h b/include/os.h index 226e2b93d..7f358eeaf 100644 --- a/include/os.h +++ b/include/os.h @@ -218,19 +218,20 @@ extern _X_EXPORT int set_font_authorizations( /* * Use malloc(3) instead. */ -extern _X_EXPORT void *Xalloc(unsigned long /*amount*/); +extern _X_EXPORT void *Xalloc(unsigned long /*amount*/) X_DEPRECATED; /* * Use calloc(3) instead */ -extern _X_EXPORT void *Xcalloc(unsigned long /*amount*/); +extern _X_EXPORT void *Xcalloc(unsigned long /*amount*/) X_DEPRECATED; /* * Use realloc(3) instead */ -extern _X_EXPORT void *Xrealloc(void * /*ptr*/, unsigned long /*amount*/); +extern _X_EXPORT void *Xrealloc(void * /*ptr*/, unsigned long /*amount*/) + X_DEPRECATED; /* * Use free(3) instead */ -extern _X_EXPORT void Xfree(void * /*ptr*/); +extern _X_EXPORT void Xfree(void * /*ptr*/) X_DEPRECATED; #endif