Debian Codegraph @

HACKING

raw
1 == Needed tools ==
2
3 You need to install python, with development headers, and a C/C++ compiler.
4
5
6 == Project style / goals / development guidelines ==
7
8 Code style rules:
9
10 * Should generate clean C or C++ code
11 - Near what a human programmer would write;
12 * Do not depend on C++ language features except when wrapping C++ APIs
13 - It should be possible to generate pure C modules for wrapping pure C libraries;
14 * No C++ templates allowed (except if wrapping them)
15 * Macros should be used rarely, and should be small if used at all
16 - Shift the complexity into Python side, keep the C/C++ simple (even if large);
17 * Generated code should not require any external library
18 - Whenever possible, do not create functions, expand the needed code from the Python code generator instead;
19
20 == Submitting patches ==
21
22 1. First, make sure all unit tests pass: waf clean && waf check
23 2. Report the feature/bug in launchpad: https://bugs.launchpad.net/pybindgen/+filebug
24 3. Attach a patch or branch to the bug report
25