Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Converts 'capsicum.h' to C code #3
This pull request updates the included 'capsicum.h' file to be C code, rather than C++ code. The tests still compile and pass. Additionally, users may now include this header in their other C (or C++) projects to provide access to capsicum features. The capsicum-linux project doesn't create this header file anyplace on the system, so the version included in this project is the best place for Linux users to grab it.
The conversion was trivial and consisted of replacing the bool type and it's values with the corresponding int representations.
I prefer to keep the current signatures (using
Thanks for pointing out the problem, though – it will be useful to keep in mind when I get as far as libc/userspace libraries (although this particular chunk of code will become irrelevant for the Linux version once I move it over to FreeBSD10-style