summaryrefslogtreecommitdiff
path: root/devel/spiff/patches/patch-ae
blob: 6a1b46e342c14d727a34ce2f9b910269660b690a (plain)
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
55
56
$NetBSD: patch-ae,v 1.2 2008/07/09 05:02:06 bjs Exp $

--- compare.c.orig	1990-02-05 15:17:15.000000000 -0500
+++ compare.c
@@ -17,12 +17,15 @@ static char rcsid[]= "$Header: compare.c
 #include "token.h"
 #include "line.h"
 #include "float.h"
-#include "compare.h"
 
 #include <ctype.h>
 
-X_com(a,b,flags)
-int a,b,flags;
+static int _X_cmptokens(K_token p1,K_token p2,int flags);
+static int _X_strcmp(char *s1, char *s2, int flags);
+static int _X_floatdiff(F_float p1,F_float p2,T_tol the_tol);
+
+int
+X_com(int a, int b, int flags)
 {
 	K_token atmp,btmp;
 
@@ -47,9 +50,7 @@ int a,b,flags;
 **	same as strcmp() except that case can be optionally ignored
 */
 static int
-_X_strcmp(s1,s2,flags)
-char *s1,*s2;
-int flags;
+_X_strcmp(char *s1, char *s2, int flags)
 {
 	if (flags & U_NO_CASE)
 	{
@@ -84,9 +85,7 @@ int flags;
 **	routine to compare two tokens
 */
 static int
-_X_cmptokens(p1,p2,flags)
-K_token p1, p2;
-int flags;
+_X_cmptokens(K_token p1,K_token p2,int flags)
 {
 	if (K_gettype(p1) !=  K_gettype(p2))
 	{
@@ -114,9 +113,7 @@ int flags;
 **	compare two F_floats using a tolerance
 */
 static int
-_X_floatdiff(p1,p2,the_tol)
-F_float p1,p2;
-T_tol the_tol;
+_X_floatdiff(F_float p1,F_float p2,T_tol the_tol)
 {
 	F_float diff, float_tmp;
 	T_tol tol_tmp;