shithub: sox

Download patch

ref: 54eb025a42e9204f5bac0c82c241a352bfda278f
parent: da3611335323f0ce85d5cfbe6a5ebedb03b160b4
author: rrt <rrt>
date: Wed Dec 13 10:06:42 EST 2006

Actually check in xmalloc.h. Oops.

--- /dev/null
+++ b/src/xmalloc.h
@@ -1,0 +1,31 @@
+/* Memory allocation functions
+   Copyright (c) 2005-2006 Reuben Thomas.
+   All rights reserved.
+
+   This file is part of SoX.
+
+   SoX is free software; you can redistribute it and/or modify it under
+   the terms of the GNU General Public License as published by the Free
+   Software Foundation; either version 2, or (at your option) any later
+   version.
+
+   SoX is distributed in the hope that it will be useful, but WITHOUT ANY
+   WARRANTY; without even the implied warranty of MERCHANTABILITY or
+   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+   for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with SoX; see the file COPYING.  If not, write to the Free
+   Software Foundation, Fifth Floor, 51 Franklin Street, Boston, MA
+   02111-1301, USA.  */
+
+#ifndef XMALLOC_H
+
+#include <stddef.h>
+
+#define xmalloc(size) xrealloc(NULL, (size))
+
+void *xcalloc(size_t nmemb, size_t size);
+void *xrealloc(void *ptr, size_t newsize);
+
+#endif