Revision: 367
Author: roman_yakovenko
Date: 2006-07-30 01:58:23 -0700 (Sun, 30 Jul 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=367&view=rev
Log Message:
-----------
adding new functionality. It is possible now to pass
operator symbol as a name to query functions
Modified Paths:
--------------
pygccxml_dev/pygccxml/declarations/scopedef.py
Modified: pygccxml_dev/pygccxml/declarations/scopedef.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/scopedef.py 2006-07-30 08:12:03 UTC (rev 366)
+++ pygccxml_dev/pygccxml/declarations/scopedef.py 2006-07-30 08:58:23 UTC (rev 367)
@@ -187,14 +187,19 @@
self._optimized = True
def _build_operator_name( self, name, function, symbol ):
+ def add_operator( sym ):
+ if 'new' in sym or 'delete' in sym:
+ return 'operator ' + sym
+ else:
+ return 'operator'+ sym
if callable( name ) and None is function:
name = None
if name:
if not 'operator' in name:
- name = 'operator' + name
+ name = add_operator( name )
return name
elif symbol:
- return 'operator' + symbol
+ return add_operator( symbol )
return name #both name and symbol are None
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|