Skip to content

Commit a933e45

Browse files
author
Bruno da Silva de Oliveira
committed
- Fixed a bug in the pure virtual functions
[SVN r19648]
1 parent 06b8320 commit a933e45

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

pyste/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Applied a patch by Gottfried Ganssauge that adds exception specifiers to
33
wrapper functions and pointer declarations. Thanks a lot Gottfried!!
44

5+
Applied a patch by Prabhu Ramachandran that fixes ae problem with the
6+
pure virtual method generation. Thanks again Prabhu!
7+
58
10 August 2003
69
Support for incremental generation of the code has been added. This changes
710
how --multiple works; documentation of this new feature will follow. Thanks

pyste/TODO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
- Virtual operators
1111

12-
- Apply Gottfried patches
12+
- args() support

pyste/src/Pyste/ClassExporter.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,12 +713,13 @@ def DefaultImpl(method, param_names):
713713
if method.abstract:
714714
s = indent2 + 'PyErr_SetString(PyExc_RuntimeError, "pure virtual function called");\n' +\
715715
indent2 + 'throw_error_already_set();\n'
716-
if method.result.FullName() != 'void':
717-
s += indent2 + 'return %s();\n' % method.result.FullName()
716+
params = ', '.join(param_names)
717+
s += indent2 + '%s%s(%s);\n' % \
718+
(return_str, method.name, params)
718719
return s
719-
else:
720+
else:
720721
return indent2 + '%s%s(%s);\n' % \
721-
(return_str, method.FullName(), ', '.join(param_names))
722+
(return_str, method.FullName(), ', '.join(param_names))
722723
else:
723724
# return a call for the wrapper
724725
params = ', '.join(['this'] + param_names)

pyste/src/Pyste/pyste.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import time
4444
from declarations import Typedef
4545

46-
__VERSION__ = '0.9.13'
46+
__VERSION__ = '0.9.14'
4747

4848
def RecursiveIncludes(include):
4949
'Return a list containg the include dir and all its subdirectories'

0 commit comments

Comments
 (0)