-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Keep information about OpenLDAP constants in Python, genera…
…te C
Modules/errors.{c,h} are merged into Modules/constants.{c,h}
The function LDAPerror_TypeError is moved to common.{c,h}, as it's not
concerned with LDAPError.
Add a new Python module, ldap.constants, to keep information about
all OpenLDAP constants that we know about, including those that aren't
available in the OpenLDAP used.
Generate a C header file, Modules/constants_generated.h, from this information.
(Checking generated files into Git is better avoided, but it's much
more straightforward than generating the file from setup.py.)
Use proper error checking when adding the constants.- Loading branch information
Petr Viktorin
committed
Nov 27, 2017
1 parent
8807e75
commit 48a9241
Showing
15 changed files
with
950 additions
and
591 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.