summaryrefslogtreecommitdiff
path: root/libguile/numbers.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@red-bean.com>1997-01-07 23:42:35 +0000
committerJim Blandy <jimb@red-bean.com>1997-01-07 23:42:35 +0000
commit805df3e8af166d84bb5f67b34929816cac6433ad (patch)
tree4b18d889d756e6380b0ac68dec424c6578776e12 /libguile/numbers.c
parentae65f9f937fab843cba469d0ebe484adb42bdd47 (diff)
downloadguile-805df3e8af166d84bb5f67b34929816cac6433ad.tar.gz
I think the Sun compiler has chosen a perverse way to interpret
ANSI declarations combined with K&R definitions. We'll appease it a little bit. But when it invades France, we fight. * print.c (scm_iprlist): Change 'tlr' argument to an int. * print.h (scm_iprlist): Here too. * numbers.c (scm_divbigdig): Change definition to match declaration in numbers.h. * unif.c (scm_makflo): Change definition to match declaration in unif.h.
Diffstat (limited to 'libguile/numbers.c')
-rw-r--r--libguile/numbers.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/libguile/numbers.c b/libguile/numbers.c
index 360527611..474fc4afd 100644
--- a/libguile/numbers.c
+++ b/libguile/numbers.c
@@ -998,11 +998,16 @@ scm_mulbig(x, nx, y, ny, sgn)
}
+/* Sun's compiler complains about the fact that this function has an
+ ANSI prototype in numbers.h, but a K&R declaration here, and the
+ two specify different promotions for the third argument. I'm going
+ to turn this into an ANSI declaration, and see if anyone complains
+ about it not being K&R. */
+
unsigned int
-scm_divbigdig(ds, h, div)
- SCM_BIGDIG *ds;
- scm_sizet h;
- SCM_BIGDIG div;
+scm_divbigdig(SCM_BIGDIG *ds,
+ scm_sizet h,
+ SCM_BIGDIG div)
{
register unsigned long t2 = 0;
while(h--) {