[cffi-devel] Cosmetic changes to grovel/c-write
Akshay Srinivasan
akshaysrinivasan at gmail.com
Sat Feb 16 19:47:14 UTC 2013
Hello,
I found that c-write was producing code in a weird style with
parentheses in odd places (yes it still works):
--------------------------------------------------------------------------------------------
(cffi:defcunion (spnav-event :size 40)
(type :int
)
(motion (:struct spnav-event-motion)
)
(button (:struct spnav-event-button)
))
--------------------------------------------------------------------------------------------
instead of the more reasonable:
--------------------------------------------------------------------------------------------
(cffi:defcunion (spnav-event :size 40)
(type :int)
(motion (:struct spnav-event-motion))
(button (:struct spnav-event-button)))
--------------------------------------------------------------------------------------------
The attached patch makes some minor changes to the function c-write
and adds the option of passing no-package to c-print-symbol down the
call stack.
Akshay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Cosmetic-changes-to-c-write.patch
Type: application/octet-stream
Size: 1273 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20130216/def23eef/attachment.obj>
More information about the cffi-devel
mailing list