2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-01 20:52:13 +00:00

- Some small memory improvements

[SVN r18459]
This commit is contained in:
Bruno da Silva de Oliveira
2003-05-20 01:35:13 +00:00
parent c1dbd52de1
commit 06f454e1d3
6 changed files with 98 additions and 26 deletions

View File

@@ -99,7 +99,7 @@ class GCCXMLParser(object):
restricted, id = Check(id, 'r')
decl = self.GetDecl(id)
if isinstance(decl, Type):
res = deepcopy(decl)
res = decl.Copy()
if const:
res.const = const
if volatile:
@@ -259,7 +259,9 @@ class GCCXMLParser(object):
type_ = self.GetType(element.get('type'))
min = element.get('min')
max = element.get('max')
array = ArrayType(type_.name, min, max, type_.const)
array = ArrayType(type_.name, type_.const)
array.min = min
array.max = max
self.Update(id, array)