source: git/omalloc/pmalloc.h @ 900cea

fieker-DuValspielwiese
Last change on this file since 900cea was 13fe1b, checked in by Hans Schönemann <hannes@…>, 23 years ago
*hannes: DecAlpha-ccc-port git-svn-id: file:///usr/local/Singular/svn/trunk@5409 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1007 bytes
Line 
1/*******************************************************************
2 *  File:    omMallocSystem.h
3 *  Purpose: declaration of macros for malloc to be used from the system
4 *  Author:  obachman (Olaf Bachmann)
5 *  Created: 11/99
6 *  Version: $Id: pmalloc.h,v 1.4 2001-04-30 09:02:15 Singular Exp $
7 *******************************************************************/
8#ifndef OM_MALLOC_SYSTEM_H
9#define OM_MALLOC_SYSTEM_H
10
11#include "omConfig.h"
12
13/* define to -1 if you want that this implementation provides
14   malloc/calloc/realloc/free funcs */
15#ifndef OM_PROVIDE_MALLOC
16#define OM_PROVIDE_MALLOC 0
17#endif
18
19#if OM_PROVIDE_MALLOC != -1
20#define calloc  cALLOc         
21#define free    fREe           
22#define malloc  mALLOc         
23#define realloc rEALLOc
24#endif
25
26/* this is the minimal set of OM_MALLOC_* macros which must be defined */
27#define OM_MALLOC_MALLOC   malloc
28#define OM_MALLOC_REALLOC  realloc
29#define OM_MALLOC_FREE     free
30#define OM_MALLOC_VFREE(addr, size) OM_MALLOC_FREE(addr)
31
32#endif /* OM_MALLOC_SYSTEM_H */
Note: See TracBrowser for help on using the repository browser.