srsLTE/scripts/module/pyclibrary
ismagom 0737f1e615 Initial commit 2014-01-28 11:41:17 +00:00
..
CLibrary.py Initial commit 2014-01-28 11:41:17 +00:00
CParser.py Initial commit 2014-01-28 11:41:17 +00:00
README.md Initial commit 2014-01-28 11:41:17 +00:00
__init__.py Initial commit 2014-01-28 11:41:17 +00:00
license.txt Initial commit 2014-01-28 11:41:17 +00:00
pyparsing.py Initial commit 2014-01-28 11:41:17 +00:00

README.md

pyclibrary

C parser and ctypes automation for Python.

Fork of https://launchpad.net/pyclibrary. (bzr branch lp:pyclibrary pyclibrary-bzr && mkdir pyclibrary && cd pyclibrary && bar fast-export --plain ../pyclibrary-bzr | git fast-import)

Pyclibrary includes 1) a pure-python C parser and 2) a ctypes automation library that uses C header file definitions to simplify the use of ctypes. The C parser currently processes all macros, typedefs, structs, unions, enums, function prototypes, and global variable declarations, and can evaluate typedefs down to their fundamental C types + pointers/arrays/function signatures. Pyclibrary can automatically build ctypes structs/unions and perform type conversions when calling functions via cdll/windll.