source: git/omalloc/omAllocFunc.h @ 5f5ce93

spielwiese
Last change on this file since 5f5ce93 was 5f5ce93, checked in by Hans Schönemann <hannes@…>, 18 years ago
*hannes: string.h included removed hint of hankedr@auburn.edu: Solaris/x86, Solaris/x86_64 git-svn-id: file:///usr/local/Singular/svn/trunk@9214 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*******************************************************************
2 *  File:    omAllocFunc.h
3 *  Purpose: declaration of ANSI-C conforming malloc functions
4 *           which are sure to be functions, which start with the om prefix,
5 *           and end with the Func suffix.
6 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
7 *  Created: 11/99
8 *  Version: $Id: omAllocFunc.h,v 1.7 2006-06-14 07:54:08 Singular Exp $
9 *******************************************************************/
10
11void* omCallocFunc(size_t nmemb, size_t size);
12void* omMallocFunc(size_t size);
13void omFreeFunc(void* addr);
14void* omVallocFunc(size_t size);
15#if defined(sgi)
16void* omMemalignFunc(size_t size_1, size_t size_2);
17#else
18#if (defined(__sun) && (defined(__sparc) || defined(__i386) || defined(__x86_64)))
19extern void* omMemalignFunc(size_t, size_t);
20#else
21void* omMemalignFunc(void* alignment, size_t size);
22#endif
23#endif
24void* omReallocFunc(void* old_addr, size_t new_size);
25char* omStrdupFunc(const char* addr);
26void* omReallocSizeFunc(void* old_addr, size_t old_size, size_t new_size);
27void omFreeSizeFunc(void* addr, size_t size);
Note: See TracBrowser for help on using the repository browser.