/**********************************************************************
 * Macros to deal with allocation properly
 *
 * $Author: probe $
 * $Source: /afs/sipb.mit.edu/project/sipb-athena/repository/src/olh/include/memory.h,v $
 * $Header: /afs/sipb.mit.edu/project/sipb-athena/repository/src/olh/include/memory.h,v 1.1 1993/10/12 05:46:23 probe Exp $
 *
 * Copyright (c) 1990, Massachusetts Institute of Technology
 **********************************************************************/

#ifndef lint
#ifndef SABER
static char rcsid_memory_h[] = "$Header: /afs/sipb.mit.edu/project/sipb-athena/repository/src/olh/include/memory.h,v 1.1 1993/10/12 05:46:23 probe Exp $";
#endif
#endif

#ifndef __MEMORY_MACROS__
#define __MEMORY_MACROS__


extern char *malloc();
extern char *realloc();

#define New(type) ((type *)malloc((unsigned int)sizeof (type)))
#define NewArray(type, n) ((type *)malloc((unsigned int)sizeof(type) * (n)))
#define ResizeArray(type,old,n) ((type *)realloc((void *)(old), \
						 (unsigned int)(sizeof(type)*(n))))
#define NewString(s) malloc((unsigned int)strlen(s)+1)
#define ResizeString(old, s) realloc(old, (unsigned int)strlen(s)+1);

#endif /* __MEMORY_MACROS__ */


