File: fix_sequence_of_function_definitions.patch

package info (click to toggle)
ampliconnoise 1.29-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,316 kB
  • sloc: ansic: 18,085; sh: 2,901; perl: 2,089; makefile: 240
file content (54 lines) | stat: -rw-r--r-- 1,528 bytes parent folder | download | duplicates (2)
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
52
53
54
Description: fix sequence of function definitions
 Fix the sequence of function definitions to make sure
 UpdateMinCacheForRow() is known before its first usage.
 .
 This package is orphaned upstream, hence the patch not being forwarded.
Bug-Debian: https://bugs.debian.org/1066300
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-04-11
Forwarded: no

--- a/FCluster/FCluster.c
+++ b/FCluster/FCluster.c
@@ -219,20 +219,6 @@ void UpdateMinCacheWithNewValue(struct t
     }
 };
 
-// Recalculate cached data for all rows
-UpdateMinCacheForMarkedRows(struct t_Min* asMin,float** aafDistMatrix,int nN)
-{
-    int i;
-    for (i = 1; i < nN; i++)
-    {
-        if( asMin[i].reCalc == 1)
-        {
-            UpdateMinCacheForRow(asMin,i,aafDistMatrix);
-        }
-        asMin[i].reCalc = 0;
-    } 
-};
-
 // Update the cached data for a row 
 UpdateMinCacheForRow(struct t_Min* asMin,int i,float** aafDistMatrix)
 {
@@ -254,6 +240,20 @@ UpdateMinCacheForRow(struct t_Min* asMin
         asMin[i].indexOfMinNode = nj;    
 };
 
+// Recalculate cached data for all rows
+UpdateMinCacheForMarkedRows(struct t_Min* asMin,float** aafDistMatrix,int nN)
+{
+    int i;
+    for (i = 1; i < nN; i++)
+    {
+        if( asMin[i].reCalc == 1)
+        {
+            UpdateMinCacheForRow(asMin,i,aafDistMatrix);
+        }
+        asMin[i].reCalc = 0;
+    } 
+};
+
 // Initialise min cache per group
 void InitMinCacheData(int nN, struct t_Min* asMin, float** aafDistMatrix)
 {