From: Luis O. <lu...@gm...> - 2005-11-05 01:37:53
|
Hello, Here's a small test case for this bug related to passing or receiving long-long values to/from foreign functions. $ uname -a Linux pomajxego 2.4.22-ben2 #2 Mon Nov 10 18:22:42 WET 2003 ppc GNU/Linux $ sbcl This is SBCL 0.9.6, an implementation of ANSI Common Lisp. More information about SBCL is available at <http://www.sbcl.org/>. SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. * (sb-alien:define-alien-routine "llabs" sb-alien:long-long (n sb-alien:long-long)) LLABS * (llabs -9223372036854775807) 1 * (llabs -1) 0 This works fine on darwin/ppc and linux/x86. Also, getting and setting foreign variables of type long-long seems to work, including on linux/ppc. Thanks, -- Luís Oliveira luismbo (@) gmail (.) com Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt |