Kevin Rosenberg | 18 Mar 2002 18:53

uffi Makefile

Update of /pubcvs/uffi
In directory boa.b9.com:/tmp/cvs-serv7082

Modified Files:
	Makefile 
Log Message:
test

Kevin Rosenberg | 18 Mar 2002 18:57

CVS commit: uffi

Update of /pubcvs/uffi
In directory boa.b9.com:/tmp/cvs-serv7261

Modified Files:
	Makefile 
Log Message:
test

Reini Urban | 18 Mar 2002 19:27
Picon
Gravatar

Re: CVS commit: uffi

Just a short announce that I plan to add cormanlisp support 
as soon as my schedule permits. probably mid of april.

BTW: I agree that cstrings should be automatically translated.
(If you wanted to say that)

--

-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

Kevin Rosenberg | 18 Mar 2002 22:46
Favicon

Re: CVS commit: uffi

> Just a short announce that I plan to add cormanlisp support 
> as soon as my schedule permits. probably mid of april.

Great -- glad to hear that. John Desoi is planning on adding
MCL support.

With then 5 platforms being supported, I think that the current
technique of placing all of the implementations in one file is
getting unwieldy. Further, since the interface is stabilizing,
I think it may soon be time to split each implementation into it's 
own set of source files.

Mid-april sounds like a good time to start. I hope that by that time the
interface will be stable.

> BTW: I agree that cstrings should be automatically translated.
> (If you wanted to say that)

String handling is problematic due to implementation variance. CMUCL
supports automatically translation to and from functions the best.
ACL handles it pretty well, but I've not found a way to prevent
a run-time warning about translating NIL values into NULL pointers.
LW doesn't handle automatic conversion at all.

Thus, for cross-platform support, UFFI users must call routines to
translate strings to and from functions. Unless, at some point,
I add a wrapper around a function definition that does string 
translation. For CMUCL, currently, with-cstring and 
convert-from-cstring doesn't do anything to the arguments.
So, I have a different set of routines (foreign-string) which always
(Continue reading)

Kevin Rosenberg | 18 Mar 2002 23:47

uffi ChangeLog,1.18,1.19 Makefile,1.22,1.23

Update of /pubcvs/uffi
In directory boa.b9.com:/tmp/cvs-serv10619

Modified Files:
	ChangeLog Makefile 
Log Message:
Added array allocation to allocate-foreign-objects

Kevin Rosenberg | 18 Mar 2002 23:47

uffi/src objects.cl,1.7,1.8 primitives.cl,1.9,1.10 strings.cl,1.6,1.7

Update of /pubcvs/uffi/src
In directory boa.b9.com:/tmp/cvs-serv10619/src

Modified Files:
	objects.cl primitives.cl strings.cl 
Log Message:
Added array allocation to allocate-foreign-objects

Kevin Rosenberg | 18 Mar 2002 23:47

uffi/examples array-2d.cl,1.1,1.2 strtol.cl,1.9,1.10

Update of /pubcvs/uffi/examples
In directory boa.b9.com:/tmp/cvs-serv10619/examples

Modified Files:
	array-2d.cl strtol.cl 
Log Message:
Added array allocation to allocate-foreign-objects

Kevin Rosenberg | 18 Mar 2002 23:56
Favicon

CVS Mail List

I've created a new mail list that has automated log messages for CVS
updates. The web address is http://www.b9.com/mailman/listinfo/uffi-cvs.
This list is likely only of interest to active CVS writers for UFFI
or for people who want to follow the moment to moment development.

Kevin

Kevin Rosenberg | 21 Mar 2002 09:32
Favicon

New version 0.2.11 available

From the ChangeLog:

21 Mar 2002
	* Fixed problem with NULL foreign-strings with CMUCL
	* Added c-test-fns to examples for allow more specific testing
	of UFFI. Builds on UNIX and Win32 platforms.
	* Added def-union function, added union.cl example
	* Fixed error with ensure-char-[character|integer]
	* Added 2-d array example to examples/arrays.cl	
	* Fixed documentation error on gethostname
	* Added ensure-char-* and def-union to documentation
	

John DeSoi | 29 Mar 2002 15:50

deref-pointer

Should this use convert-from-uffi-type? Seems like it should.

Thanks,

John DeSoi, Ph.D.

(defmacro deref-pointer (ptr type)
   "Returns a object pointed"
   #+(or cmu lispworks) (declare (ignore type))
   #+cmu  `(alien:deref ,ptr)
   #+lispworks `(fli:dereference ,ptr)
   #+allegro `(ff:fslot-value-typed ,type :c ,ptr)
)


Gmane