Deprecate allocation functions which are plain wrappers for C stdlib

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Mikhail Gusarov 2010-05-06 00:28:25 +07:00
parent a5dba0f5ca
commit 96c7ab27c3

View File

@ -218,19 +218,20 @@ extern _X_EXPORT int set_font_authorizations(
/* /*
* Use malloc(3) instead. * 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 * 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 * 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 * Use free(3) instead
*/ */
extern _X_EXPORT void Xfree(void * /*ptr*/); extern _X_EXPORT void Xfree(void * /*ptr*/) X_DEPRECATED;
#endif #endif