Last change
on this file since 10621 was
10207,
checked in by ascheibe, 11 years ago
|
#1886 added a unit test for volume calculation and the qhull library
|
File size:
1.5 KB
|
Line | |
---|
1 | /*<html><pre> -<a href="qh-user.htm"
|
---|
2 | >-------------------------------</a><a name="TOP">-</a>
|
---|
3 |
|
---|
4 | usermem.c
|
---|
5 | qh_exit(), qh_free(), and qh_malloc()
|
---|
6 |
|
---|
7 | See README.txt.
|
---|
8 |
|
---|
9 | If you redefine one of these functions you must redefine all of them.
|
---|
10 | If you recompile and load this file, then usermem.o will not be loaded
|
---|
11 | from qhull.a or qhull.lib
|
---|
12 |
|
---|
13 | See libqhull.h for data structures, macros, and user-callable functions.
|
---|
14 | See user.c for qhull-related, redefinable functions
|
---|
15 | see user.h for user-definable constants
|
---|
16 | See userprintf.c for qh_fprintf and userprintf_rbox,c for qh_fprintf_rbox
|
---|
17 |
|
---|
18 | Please report any errors that you fix to qhull@qhull.org
|
---|
19 | */
|
---|
20 |
|
---|
21 | #include "libqhull.h"
|
---|
22 |
|
---|
23 | #include <stdlib.h>
|
---|
24 |
|
---|
25 | /*-<a href="qh-user.htm#TOC"
|
---|
26 | >-------------------------------</a><a name="qh_exit">-</a>
|
---|
27 |
|
---|
28 | qh_exit( exitcode )
|
---|
29 | exit program
|
---|
30 |
|
---|
31 | notes:
|
---|
32 | same as exit()
|
---|
33 | */
|
---|
34 | void qh_exit(int exitcode) {
|
---|
35 | exit(exitcode);
|
---|
36 | } /* exit */
|
---|
37 |
|
---|
38 | /*-<a href="qh-user.htm#TOC"
|
---|
39 | >-------------------------------</a><a name="qh_free">-</a>
|
---|
40 |
|
---|
41 | qh_free( mem )
|
---|
42 | free memory
|
---|
43 |
|
---|
44 | notes:
|
---|
45 | same as free()
|
---|
46 | */
|
---|
47 | void qh_free(void *mem) {
|
---|
48 | free(mem);
|
---|
49 | } /* free */
|
---|
50 |
|
---|
51 | /*-<a href="qh-user.htm#TOC"
|
---|
52 | >-------------------------------</a><a name="qh_malloc">-</a>
|
---|
53 |
|
---|
54 | qh_malloc( mem )
|
---|
55 | allocate memory
|
---|
56 |
|
---|
57 | notes:
|
---|
58 | same as malloc()
|
---|
59 | */
|
---|
60 | void *qh_malloc(size_t size) {
|
---|
61 | return malloc(size);
|
---|
62 | } /* malloc */
|
---|
63 |
|
---|
64 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.