Re: :pointer-self and LispWorks
Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Tue, 12 Aug 2003 08:59:55 -0600
| Newsgroups | gmane.lisp.uffi.general |
|---|---|
| Message-ID | <[email protected]> |
--C+ts3FVlLX8+P6JN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Edi Weitz wrote: > Yes, but the forward reference was just a workaround (it also didn't > work with CMUCL). With the patch I don't think we don't need to care. Agreed. > Have you had a chance to look into the "pointer coercion" issue I > asked about? Just sent e-mail. In general, UFFI doesn't have a concept of coercing pointers. But, since Alllegro requires type information passed to it, that type info is in most UFFI calls. deref-array, for example, can coerce the type for lispworks as mentioned. However, for CMUCL, that requires some casting as you your example shows. It's not a great idea to make every call to deref-array cast for cmucl as some calls may not require casting. It's probably reasonable to add a cast-pointer macro to UFFI. Feel free to look more at this. Patches gladly accepted. Kevin Kevin Rosenberg kevin-HJRc7zDS/[email protected] --C+ts3FVlLX8+P6JN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/OQDrES7N8sSjgj4RAkdsAJ9P9dLn2eRiX+NFpBKJyH1ANojwcACfQ9Z+ 4Q2kJlWI42QIfRoQFeNFOoI= =CUWx -----END PGP SIGNATURE----- --C+ts3FVlLX8+P6JN--