cmp/c++: fix inlined function calls

We have 3 more regressions with CXX in comparison to pure C mode.
Related to #241.
This commit is contained in:
Daniel Kochmański 2016-07-28 18:34:26 +02:00
parent e010740f06
commit 691e77c3be

View file

@ -43,7 +43,7 @@
(si::put-sysprop ',name :callback
(list
(ffi:c-inline () () :object
,(format nil "ecl_make_foreign_data(@':pointer-void,0,~a)" c-name)
,(format nil "ecl_make_foreign_data(@':pointer-void,0,(void*)~a)" c-name)
:one-liner t)))))
)))
@ -126,7 +126,7 @@
(wt-nl "ecl_stack_frame_push(frame,ecl_foreign_data_ref_elt(&var"
n "," ct "));")
(wt-nl "ecl_stack_frame_push(frame,ecl_make_foreign_data(&var"
n "," ct "," (ffi:size-of-foreign-type type) "));")))
n "," ct ", (void*)" (ffi:size-of-foreign-type type) "));")))
(wt-nl "aux = ecl_apply_from_stack_frame(frame,"
"ecl_fdefinition(" c-name-constant "));")
(wt-nl "ecl_stack_frame_close(frame);")