enable support for InclusiveNamespaces PrefixList in exclusive C14N s…
…pec -- see http://www.w3.org/TR/xml-exc-c14n/
add try..finally and move code inside try blocks
use PyMem_Malloc and PyMem_Free
fix bug with last pointer
Just wondering if you might have time to review/integrate. Given lxml's not able to support this right now we're forking our own custom version on our production sites because of it. Much appreciate the code review feedback! (we just fixed another bug that was found during our test runs in the last commit hash) Thanks!
Looks mostly ok, thanks! I'll fix some minor memory handling issues and merge it.
It turns out that your changes didn't include any error tests. I guess that's why you ran into the problem in production. Since I've essentially fixed up your production code, you might want to make sure it keeps working by contributing another series of tests.
I'm depending on a bug fix in Cython here that isn't in 0.16 yet. Basically, the user provided "const_xmlChar*" declaration isn't considered equivalent to "unsigned char*" by previous Cython versions and thus won't coerce automatically.
You can get a 0.17 pre-release from here:
I'll release another Cython beta (as in "release candidate") some time this week.