Nuke NEW, DISPOSE, RENEW, and COPYFROMTO macros, by Johan Danielsson

This is a manual merge of 98c988dd10888cfb72c4 from http://github.com/heimdal/heimdal
This commit is contained in:
Joachim Nilsson
2010-07-23 11:01:51 +02:00
parent 64219dc1f0
commit 511a1a65a4
3 changed files with 102 additions and 73 deletions

View File

@@ -62,11 +62,6 @@ typedef unsigned char CHAR;
#define MEM_INC 64
#define SCREEN_INC 256
#define DISPOSE(p) free((char *)(p))
#define NEW(T, c) ((T *)malloc((unsigned int)(sizeof (T) * (c))))
#define RENEW(p, T, c) (p = (T *)realloc((char *)(p), (unsigned int)(sizeof (T) * (c))))
#define COPYFROMTO(new, p, len) (void)memcpy((char *)(new), (char *)(p), (int)(len))
/*
** Variables and routines internal to this package.
*/