summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2010-05-06 00:28:25 +0700
committerMikhail Gusarov <dottedmag@dottedmag.net>2010-05-13 00:20:32 +0700
commit96c7ab27c383ec767f62a7a11e5fd76f86363fbc (patch)
tree7098fe14acd6524a322f01ce2d120da25a615743
parenta5dba0f5caefce236ebd5f71948e5a659bea58e4 (diff)
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>
-rw-r--r--include/os.h9
1 files 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