2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-28 19:32:14 +00:00

- Fixed bug where an union that was a class member crashed pyste (unions are still not exported)

- Added support for int, double, float and long operators


[SVN r17991]
This commit is contained in:
Bruno da Silva de Oliveira
2003-03-19 02:57:31 +00:00
parent d4b1b46e63
commit 08254b1fe7
3 changed files with 39 additions and 11 deletions

View File

@@ -445,8 +445,20 @@ class Typedef(Declaration):
self.visibility = Scope.public
class Union(Declaration):
'Shallow declaration, because Unions are not supported yet'
def __init__(self, name, namespace):
Declaration.__init__(self, name, namespace)
class ClassUnion(Union):
def __init__(self, name, class_, visib):
Union.__init__(self, name, None)
self.class_ = class_
self.visibility = visib
def FullName(self):
return '%s::%s' % (self.class_, self.name)