Mercurial > hg > octave-lyh > gnulib-hg
changeset 2012:18d83cebc08c
(XMALLOC): Correct misnamed macro parameter name: s/N_bytes/N_items/.
(XCALLOC): Likewise.
(XREALLOC): Likewise.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 09 Nov 1999 20:34:17 +0000 |
parents | b4e353f9d352 |
children | e4a5324fa543 |
files | lib/xalloc.h |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -61,10 +61,10 @@ void *xrealloc PARAMS ((void *p, size_t n)); char *xstrdup PARAMS ((const char *str)); -# define XMALLOC(Type, N_bytes) ((Type *) xmalloc (sizeof (Type) * (N_bytes))) -# define XCALLOC(Type, N_bytes) ((Type *) xcalloc (sizeof (Type), (N_bytes))) -# define XREALLOC(Ptr, Type, N_bytes) \ - ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_bytes))) +# define XMALLOC(Type, N_items) ((Type *) xmalloc (sizeof (Type) * (N_items))) +# define XCALLOC(Type, N_items) ((Type *) xcalloc (sizeof (Type), (N_items))) +# define XREALLOC(Ptr, Type, N_items) \ + ((Type *) xrealloc ((void *) (Ptr), sizeof (Type) * (N_items))) /* Declare and alloc memory for VAR of type TYPE. */ # define NEW(Type, Var) Type *(Var) = XMALLOC (Type, 1)