Cleanups.

This commit is contained in:
Mathieu Lacage authored and Gustavo J. A. M. Carneiro committed 2008-07-03 14:27:28 +01:00
1 parent 8a890c4875
commit 613a4e98a4
5 files changed
+3 -6

No files matched your search

+1
View File
@@ -599,6 +599,7 @@ class AbstractXpto
{
public:
AbstractXpto () {}
virtual ~AbstractXpto () {}
virtual void something (int x) const = 0;
};
-1
View File
@@ -16,7 +16,6 @@ import foomodulegen_common
def my_module_gen():
out = FileCodeSink(sys.stdout)
pygen_file = open(sys.argv[2], "wt")
pybindgen.write_preamble(out)
module_parser = ModuleParser('foo2', '::')
module = module_parser.parse([sys.argv[1]], includes=['"foo.h"'], pygen_sink=FileCodeSink(pygen_file))
pygen_file.close()
+2 -3
View File
@@ -16,12 +16,11 @@ import foomodulegen_common
def my_module_gen(out_file):
pybindgen.write_preamble(FileCodeSink(out_file))
print >> out_file, "#include \"foo.h\""
mod = Module('foo')
mod.add_include ('"foo.h"')
Foo = mod.add_class('Foo', automatic_type_narrowing=True)
Foo.add_static_attribute('instance_count', ReturnValue.new('int'))
-1
View File
@@ -35,7 +35,6 @@ def my_module_gen():
foomodulegen_generated.register_functions(root_module)
foomodulegen_common.customize_module(root_module)
pybindgen.write_preamble(out)
root_module.generate(out)
-1
View File
@@ -54,7 +54,6 @@ def my_module_gen():
foomodulegen_split.register_functions(root_module)
foomodulegen_common.customize_module(root_module)
#pybindgen.write_preamble(out)
root_module.generate(out)
out.close()