First batch of getting replacing malloc() with Z_Malloc

This commit is contained in:
Thilo Schulz 2011-02-09 00:02:42 +00:00
parent 8cd4b77a1e
commit 956c9a262a
2 changed files with 6 additions and 78 deletions

View file

@ -35,23 +35,10 @@ woven in by Terry Thorsen 1/2003.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../qcommon/q_shared.h"
#include "../qcommon/qcommon.h"
#include "unzip.h"
#ifdef STDC
# include <stddef.h>
# include <string.h>
# include <stdlib.h>
#endif
#ifdef NO_ERRNO_H
extern int errno;
#else
# include <errno.h>
#endif
#ifndef local
# define local static
#endif
@ -74,10 +61,10 @@ woven in by Terry Thorsen 1/2003.
#endif
#ifndef ALLOC
# define ALLOC(size) (malloc(size))
# define ALLOC(size) (Z_Malloc(size))
#endif
#ifndef TRYFREE
# define TRYFREE(p) {if (p) free(p);}
# define TRYFREE(p) {if (p) Z_Free(p);}
#endif
#define SIZECENTRALDIRITEM (0x2e)