From: Luis Oliveira <luismbo@gm...> - 2005-11-05 01:37:53
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
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
* (llabs -9223372036854775807)
* (llabs -1)
This works fine on darwin/ppc and linux/x86. Also, getting and setting
foreign variables of type long-long seems to work, including on
luismbo (@) gmail (.) com
Equipa Portuguesa do Translation Project