[libxslt] Disable Python bindings for debugger
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Disable Python bindings for debugger
- Date: Wed, 31 Aug 2022 16:14:41 +0000 (UTC)
commit 33023085bfd7fd1f6145e04b830a63f8a1f9c6e6
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Aug 30 03:27:48 2022 +0200
Disable Python bindings for debugger
Most of the functions couldn't be used from Python anyway.
Fixes #75.
python/generator.py | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/python/generator.py b/python/generator.py
index 025e58a1..b44f4987 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -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":
- return 1
- if name == "xsltMatchPattern":
+ if name in skipped_functions:
return 1
-# if name[0:11] == "xmlXPathNew":
-# return 1
return 0
def print_function_wrapper(name, output, export, include):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]