[ctypes-commit] ctypes/sandbox/tools/codegen typedesc.py,1.2,1.3 gccxmlparser.py,1.7,1.8
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2004-12-22 08:39:49
|
Update of /cvsroot/ctypes/ctypes/sandbox/tools/codegen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16464 Modified Files: typedesc.py gccxmlparser.py Log Message: Fix the handling of 'const' and 'volatile' modifiers. Index: typedesc.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/sandbox/tools/codegen/typedesc.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** typedesc.py 8 Dec 2004 16:09:57 -0000 1.2 --- typedesc.py 22 Dec 2004 08:39:39 -0000 1.3 *************** *** 117,123 **** class CvQualifiedType(object): ! def __init__(self, typ, attrib): self.typ = typ ! self.attrib = attrib class Enumeration(object): --- 117,124 ---- class CvQualifiedType(object): ! def __init__(self, typ, const, volatile): self.typ = typ ! self.const = const ! self.volatile = volatile class Enumeration(object): Index: gccxmlparser.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/sandbox/tools/codegen/gccxmlparser.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** gccxmlparser.py 7 Dec 2004 08:25:26 -0000 1.7 --- gccxmlparser.py 22 Dec 2004 08:39:40 -0000 1.8 *************** *** 107,113 **** # id, type, [const|volatile] typ = attrs["type"] ! ## const = attrs["const"] ! ## volatile = attrs["volatile"] ! return typedesc.CvQualifiedType(typ, "xxx") def _fixup_CvQualifiedType(self, c): --- 107,113 ---- # id, type, [const|volatile] typ = attrs["type"] ! const = attrs.get("const", None) ! volatile = attrs.get("volatile", None) ! return typedesc.CvQualifiedType(typ, const, volatile) def _fixup_CvQualifiedType(self, c): |