* fix to get numbers.c to compile
@ 2003-04-17 18:03 Thamer Al-Harbash
2003-04-17 22:16 ` Rob Browning
0 siblings, 1 reply; 2+ messages in thread
From: Thamer Al-Harbash @ 2003-04-17 18:03 UTC (permalink / raw)
This is a fix to get numbers.c to get it to compile with gcc
2.95.3:
Small fix to put declarations before code. This may have compiled
on gcc 3, but it's a no go for gcc 2.
Index: libguile/numbers.c
===================================================================
RCS file: /cvsroot/guile/guile/guile-core/libguile/numbers.c,v
retrieving revision 1.179
diff -u -r1.179 numbers.c
--- libguile/numbers.c 16 Apr 2003 19:44:02 -0000 1.179
+++ libguile/numbers.c 17 Apr 2003 18:00:54 -0000
@@ -1150,6 +1150,10 @@
"@end lisp")
#define FUNC_NAME s_scm_integer_expt
{
+ long i2 = 0;
+ SCM z_i2 = SCM_BOOL_F;
+ int i2_is_big = 0;
+
SCM acc = SCM_MAKINUM (1L);
/* 0^0 == 1 according to R5RS */
@@ -1158,10 +1162,6 @@
else if (SCM_EQ_P (n, SCM_MAKINUM (-1L)))
return SCM_FALSEP (scm_even_p (k)) ? n : acc;
- long i2 = 0;
- SCM z_i2 = SCM_BOOL_F;
- int i2_is_big = 0;
-
if (SCM_INUMP (k))
i2 = SCM_INUM (k);
else if (SCM_BIGP (k))
--
Thamer Al-Harbash http://www.whitefang.com/
(if (> pressure too-much-pressure)
'flame 'work)
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fix to get numbers.c to compile
2003-04-17 18:03 fix to get numbers.c to compile Thamer Al-Harbash
@ 2003-04-17 22:16 ` Rob Browning
0 siblings, 0 replies; 2+ messages in thread
From: Rob Browning @ 2003-04-17 22:16 UTC (permalink / raw)
Cc: bug-guile
Thamer Al-Harbash <tmh@whitefang.com> writes:
> This is a fix to get numbers.c to get it to compile with gcc
> 2.95.3:
>
> Small fix to put declarations before code. This may have compiled
> on gcc 3, but it's a no go for gcc 2.
Thought I'd already fixed that, but I guess not. In any case, thanks,
and I've committed this fix to CVS.
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-17 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-17 18:03 fix to get numbers.c to compile Thamer Al-Harbash
2003-04-17 22:16 ` Rob Browning
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).