functions that.
ok millert@ martijn@
-/* $OpenBSD: alloc.c,v 1.17 2015/12/26 13:48:38 mestre Exp $ */
+/* $OpenBSD: alloc.c,v 1.18 2018/09/18 02:29:10 miko Exp $ */
/* $NetBSD: alloc.c,v 1.6 1995/03/21 09:02:23 cgd Exp $ */
/*-
#include "extern.h"
void *
-Malloc(size_t n)
+xmalloc(size_t n)
{
void *ptr;
}
void *
-Reallocarray(void * p, size_t c, size_t n)
+xreallocarray(void * p, size_t c, size_t n)
{
void *ptr;
}
void *
-Calloc(size_t s, size_t n)
+xcalloc(size_t s, size_t n)
{
void *ptr;
-/* $OpenBSD: csh.h,v 1.30 2017/08/30 06:42:21 anton Exp $ */
+/* $OpenBSD: csh.h,v 1.31 2018/09/18 02:29:10 miko Exp $ */
/* $NetBSD: csh.h,v 1.9 1995/03/21 09:02:40 cgd Exp $ */
/*-
#include "char.h"
#include "error.h"
-#define xmalloc(i) Malloc(i)
-#define xreallocarray(p, i, j) Reallocarray(p, i, j)
-#define xcalloc(n, s) Calloc(n, s)
-
#include <stdio.h>
FILE *cshin, *cshout, *csherr;
-/* $OpenBSD: extern.h,v 1.28 2018/09/17 16:00:19 martijn Exp $ */
+/* $OpenBSD: extern.h,v 1.29 2018/09/18 02:29:10 miko Exp $ */
/* $NetBSD: extern.h,v 1.8 1996/10/31 23:50:54 christos Exp $ */
/*-
/*
* alloc.c
*/
-void * Malloc(size_t);
-void * Reallocarray(void *, size_t, size_t);
-void * Calloc(size_t, size_t);
+void * xmalloc(size_t);
+void * xreallocarray(void *, size_t, size_t);
+void * xcalloc(size_t, size_t);
/*
* str.c: