[pygccxml-commit] SF.net SVN: pygccxml: [700] pygccxml_dev/pygccxml
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-11-13 19:54:46
|
Revision: 700 http://svn.sourceforge.net/pygccxml/?rev=700&view=rev Author: roman_yakovenko Date: 2006-11-08 10:58:43 -0800 (Wed, 08 Nov 2006) Log Message: ----------- adding fix for signed char, char bug Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/__init__.py pygccxml_dev/pygccxml/declarations/cpptypes.py pygccxml_dev/pygccxml/declarations/type_traits.py pygccxml_dev/pygccxml/declarations/type_visitor.py pygccxml_dev/pygccxml/parser/linker.py Modified: pygccxml_dev/pygccxml/declarations/__init__.py =================================================================== --- pygccxml_dev/pygccxml/declarations/__init__.py 2006-11-08 18:47:53 UTC (rev 699) +++ pygccxml_dev/pygccxml/declarations/__init__.py 2006-11-08 18:58:43 UTC (rev 700) @@ -27,6 +27,7 @@ from cpptypes import fundamental_t from cpptypes import void_t from cpptypes import char_t +from cpptypes import signed_char_t from cpptypes import unsigned_char_t from cpptypes import wchar_t from cpptypes import short_int_t Modified: pygccxml_dev/pygccxml/declarations/cpptypes.py =================================================================== --- pygccxml_dev/pygccxml/declarations/cpptypes.py 2006-11-08 18:47:53 UTC (rev 699) +++ pygccxml_dev/pygccxml/declarations/cpptypes.py 2006-11-08 18:58:43 UTC (rev 700) @@ -112,6 +112,12 @@ def __init__( self ): fundamental_t.__init__( self, char_t.CPPNAME ) +class signed_char_t( fundamental_t ): + """represents signed char type""" + CPPNAME = 'signed char' + def __init__( self ): + fundamental_t.__init__( self, signed_char_t.CPPNAME ) + class unsigned_char_t( fundamental_t ): """represents unsigned char type""" CPPNAME = 'unsigned char' @@ -265,7 +271,7 @@ FUNDAMENTAL_TYPES = { void_t.CPPNAME : void_t() , char_t.CPPNAME : char_t() - , 'signed ' + char_t.CPPNAME : char_t() + , signed_char_t.CPPNAME : signed_char_t() , unsigned_char_t.CPPNAME : unsigned_char_t() , wchar_t.CPPNAME : wchar_t() , short_int_t.CPPNAME : short_int_t() Modified: pygccxml_dev/pygccxml/declarations/type_traits.py =================================================================== --- pygccxml_dev/pygccxml/declarations/type_traits.py 2006-11-08 18:47:53 UTC (rev 699) +++ pygccxml_dev/pygccxml/declarations/type_traits.py 2006-11-08 18:58:43 UTC (rev 700) @@ -118,6 +118,7 @@ """returns True, if type represents C++ integral type, False otherwise""" integral_def = create_cv_types( cpptypes.char_t() ) \ + create_cv_types( cpptypes.unsigned_char_t() ) \ + + create_cv_types( cpptypes.signed_char_t() ) \ + create_cv_types( cpptypes.wchar_t() ) \ + create_cv_types( cpptypes.short_int_t() ) \ + create_cv_types( cpptypes.short_unsigned_int_t() ) \ Modified: pygccxml_dev/pygccxml/declarations/type_visitor.py =================================================================== --- pygccxml_dev/pygccxml/declarations/type_visitor.py 2006-11-08 18:47:53 UTC (rev 699) +++ pygccxml_dev/pygccxml/declarations/type_visitor.py 2006-11-08 18:58:43 UTC (rev 700) @@ -24,7 +24,10 @@ def visit_unsigned_char( self ): raise NotImplementedError() - + + def visit_signed_char( self ): + raise NotImplementedError() + def visit_wchar( self ): raise NotImplementedError() Modified: pygccxml_dev/pygccxml/parser/linker.py =================================================================== --- pygccxml_dev/pygccxml/parser/linker.py 2006-11-08 18:47:53 UTC (rev 699) +++ pygccxml_dev/pygccxml/parser/linker.py 2006-11-08 18:58:43 UTC (rev 700) @@ -141,6 +141,9 @@ def visit_char( self ): pass + def visit_signed_char( self ): + pass + def visit_unsigned_char( self ): pass This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |