mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
0737f1e615 | 11 years ago | |
---|---|---|
.. | ||
CLibrary.py | 11 years ago | |
CParser.py | 11 years ago | |
README.md | 11 years ago | |
__init__.py | 11 years ago | |
license.txt | 11 years ago | |
pyparsing.py | 11 years ago |
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.