Mercurial > hg > octave-kai > gnulib-hg
diff lib/xmalloc.c @ 1557:38fd8f5d359d
ansideclify
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 07 Dec 1998 03:12:10 +0000 |
parents | 982a726b793b |
children | 5ec174d20066 |
line wrap: on
line diff
--- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -1,5 +1,5 @@ /* xmalloc.c -- malloc with out of memory checking - Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. + Copyright (C) 1990-1997, 98 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -78,7 +78,7 @@ #endif static void -xalloc_fail () +xalloc_fail (void) { if (xalloc_fail_func) (*xalloc_fail_func) (); @@ -88,8 +88,7 @@ /* Allocate N bytes of memory dynamically, with error checking. */ void * -xmalloc (n) - size_t n; +xmalloc (size_t n) { void *p; @@ -104,9 +103,7 @@ If P is NULL, run xmalloc. */ void * -xrealloc (p, n) - void *p; - size_t n; +xrealloc (void *p, size_t n) { p = realloc (p, n); if (p == 0) @@ -119,8 +116,7 @@ /* Allocate memory for N elements of S bytes, with error checking. */ void * -xcalloc (n, s) - size_t n, s; +xcalloc (size_t n, size_t s) { void *p;