newLISP ctypes module

Q&A's, tips, howto's

newLISP ctypes module

Postby ryuo » Wed Jul 23, 2014 1:01 pm

I have been working on a module to assist with mapping types from the C programming language to newLISP. The idea is to have an API that can help translate sections of the C API by providing aliases for C types and convenient lambda macros for mapping user-defined types. Currently, the only user-defined type that has a lambda macro is enumerated types. The define-enum function creates a set of integer constants that mimic the behavior of C enumerated types as much as possible. The source is available here: https://github.com/ryuo/newlisp-modules ... ctypes.lsp

It would be nice if at least part of this module could be added to the official newLISP distribution. However, I am happy to just use it for my own modules. The module still needs more work, but it does include the few things I have found missing from the newLISP API for C types and such. Thanks for reading.
ryuo
 
Posts: 43
Joined: Wed May 21, 2014 4:40 pm

Re: newLISP ctypes module

Postby Lutz » Wed Jul 23, 2014 5:08 pm

There is now a link to your modules on this page: http://www.newlisp.org/modules/
Lutz
 
Posts: 5276
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California


Return to newLISP in the real world

Who is online

Users browsing this forum: ralph.ronnquist and 1 guest