pygtk r3005 - in trunk: . codegen



Author: murrayc
Date: Tue Jul  8 12:30:37 2008
New Revision: 3005
URL: http://svn.gnome.org/viewvc/pygtk?rev=3005&view=rev

Log:
2008-07-08  Murray Cumming  <murrayc murrayc com>

* codegen/h2def.py: clean_func(): Strip GSEAL out, to avoid 
us thinking that there are many functions called GSEAL.

Modified:
   trunk/ChangeLog
   trunk/codegen/h2def.py

Modified: trunk/codegen/h2def.py
==============================================================================
--- trunk/codegen/h2def.py	(original)
+++ trunk/codegen/h2def.py	Tue Jul  8 12:30:37 2008
@@ -247,6 +247,10 @@
     buf = string.replace(buf, 'G_CONST_RETURN ', 'const-')
     buf = string.replace(buf, 'const ', 'const-')
 
+    #strip GSEAL macros from the middle of function declarations:
+    pat = re.compile(r"""GSEAL""", re.VERBOSE)
+    buf = pat.sub('', buf)
+
     return buf
 
 proto_pat=re.compile(r"""



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]