This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
aalloc.h
51 lines (38 loc) · 1.59 KB
/
aalloc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/************************************************************************ *
* Goma - Multiphysics finite element software *
* Sandia National Laboratories *
* *
* Copyright (c) 2014 Sandia Corporation. *
* *
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, *
* the U.S. Government retains certain rights in this software. *
* *
* This software is distributed under the GNU General Public License. *
\************************************************************************/
/* aalloc.h - function declarations for array and genl memory allocation
*/
#ifndef _AALLOC_H
#define _AALLOC_H
#ifdef EXTERN
#undef EXTERN
#endif
#ifdef _AALLOC_C
#define EXTERN /* do nothing */
#endif
#ifndef _AALLOC_C
#define EXTERN extern
#endif
#if 0
typedef unsigned long ULONG;
EXTERN void *aalloc
PROTO((int numdim,
...)); /* variable number of arguments */
#endif
#define smalloc(arg) safe_malloc((arg), __FILE__, __LINE__)
EXTERN void *safe_malloc
PROTO((const int , /* numbytes */
const char *, /* filename */
const int )); /* line */
EXTERN void safe_free
PROTO((void *)); /* ptr to previously allocated memory */
#endif /* _AALLOC_H */