source: git/omalloc/pmalloc.h @ 599326

spielwiese
Last change on this file since 599326 was 599326, checked in by Kai Krüger <krueger@…>, 14 years ago
Anne, Kai, Frank: - changes to #include "..." statements to allow cleaner build structure - affected directories: omalloc, kernel, Singular - not yet done: IntergerProgramming git-svn-id: file:///usr/local/Singular/svn/trunk@13032 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 964 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$
7 *******************************************************************/
8#ifndef OM_MALLOC_SYSTEM_H
9#define OM_MALLOC_SYSTEM_H
10
11#include <omalloc/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.