X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Falloc.h;h=0f4492e391898342363b1df9ad4be672022cedb3;hb=92fb12eb06716d14c05b781f5d9dcde956d77c30;hp=b1b1cc5ea249ea7fb43ac30379352bead32c76f0;hpb=06f9ee45954e5e71fa7f6262dbf37defa1dbf996;p=pspp diff --git a/src/alloc.h b/src/alloc.h index b1b1cc5ea2..0f4492e391 100644 --- a/src/alloc.h +++ b/src/alloc.h @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #if !alloc_h #define alloc_h 1 @@ -23,12 +23,10 @@ #include /* malloc() wrapper functions. */ -void *xmalloc (size_t size); -void *xcalloc (size_t size); -void *xrealloc (void *ptr, size_t size); -char *xstrdup (const char *s); -void out_of_memory (void) NO_RETURN; - +#include "xalloc.h" + +void *nmalloc (size_t n, size_t s); + /* alloca() wrapper functions. */ #if defined (HAVE_ALLOCA) || defined (C_ALLOCA) #ifdef HAVE_ALLOCA_H