/[cffi-objects]/redefines.lisp
ViewVC logotype

Diff of /redefines.lisp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by rklochkov, Thu Feb 9 15:53:55 2012 UTC revision 5 by rklochkov, Sun Jul 29 15:15:41 2012 UTC
# Line 22  Line 22 
22  (defmethod translate-to-foreign ((value string) (type cffi-string))  (defmethod translate-to-foreign ((value string) (type cffi-string))
23    (values (foreign-string-alloc value) value))    (values (foreign-string-alloc value) value))
24    
25    (defmethod translate-to-foreign (value (type cffi-string))
26      (values (foreign-string-alloc (string value)) value))
27    
28  (defmethod free-ptr ((type cffi-string) ptr)  (defmethod free-ptr ((type cffi-string) ptr)
29    (foreign-string-free ptr))    (foreign-string-free ptr))
30    

Legend:
Removed from v.1  
changed lines
  Added in v.5

  ViewVC Help
Powered by ViewVC 1.1.5