[pygccxml-commit] SF.net SVN: pygccxml: [1144] pygccxml_dev/pygccxml/parser
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2007-11-12 20:19:43
|
Revision: 1144 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1144&view=rev Author: roman_yakovenko Date: 2007-11-12 12:19:48 -0800 (Mon, 12 Nov 2007) Log Message: ----------- adding restricted type Modified Paths: -------------- pygccxml_dev/pygccxml/parser/linker.py pygccxml_dev/pygccxml/parser/scanner.py Modified: pygccxml_dev/pygccxml/parser/linker.py =================================================================== --- pygccxml_dev/pygccxml/parser/linker.py 2007-11-12 20:19:25 UTC (rev 1143) +++ pygccxml_dev/pygccxml/parser/linker.py 2007-11-12 20:19:48 UTC (rev 1144) @@ -264,3 +264,7 @@ def visit_declarated( self ): if isinstance( self.__inst.declaration, types.StringTypes ): self.__inst.declaration = self.__decls[self.__inst.declaration] + + def visit_restrict( self ): + self.__link_compound_type() + Modified: pygccxml_dev/pygccxml/parser/scanner.py =================================================================== --- pygccxml_dev/pygccxml/parser/scanner.py 2007-11-12 20:19:25 UTC (rev 1143) +++ pygccxml_dev/pygccxml/parser/scanner.py 2007-11-12 20:19:48 UTC (rev 1144) @@ -318,9 +318,7 @@ elif attrs.has_key( XML_AN_VOLATILE ): return volatile_t( attrs[XML_AN_TYPE] ) elif attrs.has_key( XML_AN_RESTRICT ): - #TODO: find out what is restrict type - #and I really don't know what I should return - return volatile_t( attrs[XML_AN_TYPE] ) + return restrict_t( attrs[XML_AN_TYPE] ) else: assert 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |