mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-31 02:43:06 +03:00
Disable Python bindings for debugger
Most of the functions couldn't be used from Python anyway. Fixes #75.
This commit is contained in:
@ -136,13 +136,6 @@ def enum(type, name, value):
|
||||
#######################################################################
|
||||
|
||||
skipped_modules = {
|
||||
'xmlmemory': None,
|
||||
'DOCBparser': None,
|
||||
'SAX': None,
|
||||
'hash': None,
|
||||
'list': None,
|
||||
'threads': None,
|
||||
'xpointer': None,
|
||||
'transform': None,
|
||||
}
|
||||
skipped_types = {
|
||||
@ -156,6 +149,15 @@ skipped_types = {
|
||||
'xmlBufferPtr': "internal representation not suitable for python",
|
||||
'FILE *': None,
|
||||
}
|
||||
skipped_functions = {
|
||||
'xsltMatchPattern': True,
|
||||
# Debugger
|
||||
'xslAddCall': True,
|
||||
'xslDropCall': True,
|
||||
'xslHandleDebugger': True,
|
||||
'xsltSetDebuggerCallbacks': True,
|
||||
'xsltSetDebuggerStatus': True,
|
||||
}
|
||||
|
||||
#######################################################################
|
||||
#
|
||||
@ -247,12 +249,8 @@ unknown_types = {}
|
||||
#######################################################################
|
||||
|
||||
def skip_function(name):
|
||||
if name[0:12] == "xmlXPathWrap":
|
||||
if name in skipped_functions:
|
||||
return 1
|
||||
if name == "xsltMatchPattern":
|
||||
return 1
|
||||
# if name[0:11] == "xmlXPathNew":
|
||||
# return 1
|
||||
return 0
|
||||
|
||||
def print_function_wrapper(name, output, export, include):
|
||||
|
Reference in New Issue
Block a user