Re: [Chicken-users] Chicken-setup

2009-05-30 Thread Peter Bex
On Sat, May 30, 2009 at 06:36:51PM -0400, bill wrote:
> Hi all,
> 
> I've just moved my system to Xubuntu.   The Ubuntu repository is running 
> 3.2.7!!!   I downloaded chicken-4.0.0, which I've been running for some 
> time, but it does not seem to build chicken-setup.
> How do I get a new clean copy of chicken-setup?

There is no chicken-setup for Chicken 4!  It comes with a new set of
egg repository maintenance scripts to replace it.  Try chicken-install,
chicken-status and chicken-uninstall instead :)

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
-- Donald Knuth


pgp6Ea6r7r3Xs.pgp
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Chicken-setup

2009-05-30 Thread bill

Hi all,

I've just moved my system to Xubuntu.   The Ubuntu repository is running 
3.2.7!!!   I downloaded chicken-4.0.0, which I've been running for some 
time, but it does not seem to build chicken-setup.

How do I get a new clean copy of chicken-setup?

Bill


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] How to deal with bit sets in chicken?

2009-05-30 Thread Anthony Carrico
For example, according epoll_ctl(2) on the Linux AMD64 platform, the
following are __uint32_t.

(foreign-declare "#include \n")
(define-foreign-variable _EPOLLET unsigned-integer32 "EPOLLET")
(define EPOLLET _EPOLLET)
(define-foreign-variable _EPOLLONESHOT unsigned-integer32 "EPOLLONESHOT")
(define EPOLLONESHOT _EPOLLONESHOT)

#;2> EPOLLET
1.84467440715621e+19
#;3> EPOLLONESHOT
1073741824
#;4>

Here I declare them as int:

(define-foreign-variable _EPOLLET int "EPOLLET")
(define EPOLLET _EPOLLET)
(define-foreign-variable _EPOLLONESHOT int "EPOLLONESHOT")
(define EPOLLONESHOT _EPOLLONESHOT)

#;8> EPOLLET
-2147483648
#;9> EPOLLONESHOT
1073741824
#;10>

It seems like I can only get fixnums or flonums, is there a way to deal
with genuine 32-bit integers? What is the best way to declare and
manipulate these in Chicken?

Thank you.

-- 
Anthony Carrico



signature.asc
Description: OpenPGP digital signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users