[Ecls-list] Foreign passing bug?

Seth Burleigh seth at tewebs.com
Sun Mar 21 01:23:54 UTC 2010


I dont know if this is just me, but when i compile this form:
(defun print-str (str)
  (C-INLINE (STR) (:STRING) :VOID "printf(\"%s\",#0);" 
     :ONE-LINER NIL :SIDE-EFFECTS t))

and attempt to call (print-str "HI") i get garbled output:

^N_^N.

Does this happen for anyone else on linux?

Ive also been having some troubles with passing :pointer-void types.
When operating on them, i would get a segmentation fault (unprotected
memory error message from ecl). On the other hand if i passed
an :object, and simply did object->foreign.data, everything would work.









More information about the ecl-devel mailing list