From 05ae0d42a944f6c7d940a5e58eb90b619dadbfdb Mon Sep 17 00:00:00 2001 From: rodri Date: Mon, 5 Aug 2024 10:41:11 +0000 Subject: fix a double-free. add a generic value-swapping macro. --- util.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 2ddf21c..b536147 100644 --- a/util.c +++ b/util.c @@ -32,26 +32,6 @@ fmax(double a, double b) return a > b? a: b; } -void -swapi(int *a, int *b) -{ - int t; - - t = *a; - *a = *b; - *b = t; -} - -void -swappt(Point *a, Point *b) -{ - Point t; - - t = *a; - *a = *b; - *b = t; -} - Point2 modulapt2(Point2 a, Point2 b) { -- cgit v1.2.3