diff options
-rw-r--r-- | giscanner/giscannermodule.c | 2 | ||||
-rw-r--r-- | giscanner/libtoolimporter.py | 3 | ||||
-rw-r--r-- | giscanner/scannerlexer.l | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c index 3f21bb19..dee9fed7 100644 --- a/giscanner/giscannermodule.c +++ b/giscanner/giscannermodule.c @@ -33,6 +33,8 @@ #include <windows.h> #endif +DL_EXPORT(void) init_giscanner(void); + #define NEW_CLASS(ctype, name, cname) \ static const PyMethodDef _Py##cname##_methods[]; \ PyTypeObject Py##cname##_Type = { \ diff --git a/giscanner/libtoolimporter.py b/giscanner/libtoolimporter.py index 1a53bc5f..772a7831 100644 --- a/giscanner/libtoolimporter.py +++ b/giscanner/libtoolimporter.py @@ -26,6 +26,7 @@ from .utils import extract_libtool class LibToolImporter(object): + def __init__(self, name, path): self.name = name self.path = path @@ -44,8 +45,10 @@ class LibToolImporter(object): ('.so', 'rb', 3)) return mod + def install_libtoolimporter(): sys.meta_path.append(LibToolImporter) + def uninstall_libtoolimporter(): sys.meta_path.remove(LibToolImporter) diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index 29e3c702..5a53cfcc 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -1,5 +1,5 @@ /* -*- Mode: C -*- -/* GObject introspection: C lexer + * GObject introspection: C lexer * * Copyright (c) 1997 Sandro Sigala <ssigala@globalnet.it> * Copyright (c) 2007-2008 Jürg Billeter <j@bitron.ch> |