12 Aug 2004 19:24
def-function :out
retrying this now that i'm subscribed to the list..... i've written preliminary support for :out arguments for def-function. on cmucl, scl, sbcl, and lispworks, it delegates to their underlying mechanisms. for allegro, mcl, et al it creates wrapper functions. (perhaps some inline declarations are in order.) caveats: 1) this hasn't been tested on anything other than cmucl since i don't have access! the wrapper functions should work, though. 2) i'm not so good with patch. i'm sending the full source to my modified functions.lisp. 3) this is not very pretty, sorry. as you can see i've grafted it on top of your def-function (now %def-function.) comments / revisions would be appreciated. thanks for the nice package, take care, B ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: UFFI -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: function.lisp ;;;; Purpose: UFFI source to C function definitions ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;;(Continue reading)
RSS Feed