[cffi-devel] uffi:make-pointer
Possible add make-pointer to uffi-compat? This need for clsql-odbc. Thanks! -- WBR, Yaroslav Kavenchuk.
On 4/nov/2005, at 07:34, Yaroslav Kavenchuk wrote:
Possible add make-pointer to uffi-compat?
This need for clsql-odbc.
Done. I think the only missing UFFI operator now is foreign-string-length which doesn't seem to be used anywhere though. Fri Nov 4 10:13:58 WET 2005 Luis Oliveira <loliveira@common-lisp.net> * uffi-compat fixes - Implement uffi:make-pointer and export uffi:pointer-address. Thanks for testing uffi-compat, it hasn't had much real-world testing. I only tested it with CL-GD and uffi-tests (though James had tried clsql IIRC). Do let us know about your successes with it (or failures). :-) -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/ Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
Luis Oliveira wrote:
Done. I think the only missing UFFI operator now is foreign-string-length which doesn't seem to be used anywhere though.
Fri Nov 4 10:13:58 WET 2005 Luis Oliveira <loliveira@common-lisp.net> * uffi-compat fixes
- Implement uffi:make-pointer and export uffi:pointer-address.
Thanks for testing uffi-compat, it hasn't had much real-world testing. I only tested it with CL-GD and uffi-tests (though James had tried clsql IIRC). Do let us know about your successes with it (or failures). :-)
Thanks. But... *** - FUNCALL: CFFI-UFFI-COMPAT:MAKE-POINTER is a macro, not a function The following restarts are available: ... May be use define-compiler-macro instead of defmacro? -- WBR, Yaroslav Kavenchuk.
On 4/nov/2005, at 11:29, Yaroslav Kavenchuk wrote:
*** - FUNCALL: CFFI-UFFI-COMPAT:MAKE-POINTER is a macro, not a function The following restarts are available: ...
That's odd. UFFI's make-pointer is a macro. What code is trying to funcall make-pointer? -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/ Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
Luis Oliveira wrote:
On 4/nov/2005, at 11:29, Yaroslav Kavenchuk wrote:
*** - FUNCALL: CFFI-UFFI-COMPAT:MAKE-POINTER is a macro, not a
function
The following restarts are available: ...
That's odd. UFFI's make-pointer is a macro. What code is trying to funcall make-pointer?
Only here: odbc-api.lisp: (defun %set-attr-odbc-version (henv version) (with-error-handling (:henv henv) (SQLSetEnvAttr henv $SQL_ATTR_ODBC_VERSION (make-pointer version :void) 0))) (def-function "SQLSetEnvAttr" ((henv sql-handle) ; HENV henv (attr :int) (*value :pointer-void) (szLength :int)) :module "odbc" :returning :short) Thanks! -- WBR, Yaroslav Kavenchuk.
On 4/nov/2005, at 11:42, Yaroslav Kavenchuk wrote:
Luis Oliveira wrote:
That's odd. UFFI's make-pointer is a macro. What code is trying to funcall make-pointer?
Only here:
odbc-api.lisp:
(defun %set-attr-odbc-version (henv version) (with-error-handling (:henv henv) (SQLSetEnvAttr henv $SQL_ATTR_ODBC_VERSION (make-pointer version :void) 0)))
Hmm, are you sure that's where the error is? Can you paste the backtrace when FUNCALL throws that error? -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/ Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
Sorry, I not compile clsql after change cffi :) Thanks! -- WBR, Yaroslav Kavenchuk.
On 4/nov/2005, at 11:54, Yaroslav Kavenchuk wrote:
Sorry, I not compile clsql after change cffi :)
Ah, right. For me that's the most annoying thing about UFFI being all macros. -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/ Equipa Portuguesa do Translation Project http://www.iro.umontreal.ca/translation/registry.cgi?team=pt
participants (2)
-
Luis Oliveira
-
Yaroslav Kavenchuk