File: 0001-define-VOID.patch

package info (click to toggle)
triangle 1.6-7
  • links: PTS, VCS
  • area: non-free
  • in suites: sid
  • size: 4,412 kB
  • sloc: ansic: 75,086; makefile: 72
file content (41 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (3)
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
From: "Maintainer: Debian Science Maintainers"
 <debian-science-maintainers@lists.alioth.debian.org>
Date: Sun, 19 Dec 2021 10:34:31 +0100
Subject: Define VOID

Forwarded: not-needed
---
 triangle.c | 6 ------
 triangle.h | 2 ++
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/triangle.c b/triangle.c
index f7a5700..7c4b880 100644
--- a/triangle.c
+++ b/triangle.c
@@ -308,12 +308,6 @@
 #define DEADVERTEX -32768
 #define UNDEADVERTEX -32767
 
-/* The next line is used to outsmart some very stupid compilers.  If your    */
-/*   compiler is smarter, feel free to replace the "int" with "void".        */
-/*   Not that it matters.                                                    */
-
-#define VOID int
-
 /* Two constants for algorithms based on random sampling.  Both constants    */
 /*   have been chosen empirically to optimize their respective algorithms.   */
 
diff --git a/triangle.h b/triangle.h
index 9df1f39..aa1ee39 100644
--- a/triangle.h
+++ b/triangle.h
@@ -279,6 +279,8 @@ struct triangulateio {
   int numberofedges;                                             /* Out only */
 };
 
+#define VOID void
+
 #ifdef ANSI_DECLARATORS
 void triangulate(char *, struct triangulateio *, struct triangulateio *,
                  struct triangulateio *);