+2002-11-19 Bruno Haible <bruno@clisp.org>
+
+ * gcd.h (PARAMS): Remove macro.
+ (gcd): Use ANSI C function declarations.
+ * gcd.c (gcd): Likewise.
+
2002-11-15 Bruno Haible <bruno@clisp.org>
* strcspn.c: Include <stddef.h>.
/* Return the greatest common divisor of a > 0 and b > 0. */
unsigned long
-gcd (a, b)
- unsigned long a;
- unsigned long b;
+gcd (unsigned long a, unsigned long b)
{
/* Why no division, as in Euclid's algorithm? Because in Euclid's algorithm
the division result floor(a/b) or floor(b/a) is very often = 1 or = 2,
#ifndef _GCD_H
#define _GCD_H
-#ifndef PARAMS
-# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
-# define PARAMS(args) args
-# else
-# define PARAMS(args) ()
-# endif
-#endif
-
/* Return the greatest common divisor of a > 0 and b > 0. */
-extern unsigned long gcd PARAMS ((unsigned long a, unsigned long b));
+extern unsigned long gcd (unsigned long a, unsigned long b);
#endif /* _GCD_H */