[Python-checkins] CVS: python/dist/src/Tools/bgen/bgen bgenBuffer.py,1.5,1.6
Jack Jansen
jackjansen@users.sourceforge.net
Wed, 05 Sep 2001 03:27:50 -0700
Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory usw-pr-cvs1:/tmp/cvs-serv10847/python/Tools/bgen/bgen
Modified Files:
bgenBuffer.py
Log Message:
Only output the buffer size error label if it is used.
Shuts up another couple of gcc warnings.
Index: bgenBuffer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenBuffer.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** bgenBuffer.py 1999/09/30 14:15:14 1.5
--- bgenBuffer.py 2001/09/05 10:27:48 1.6
***************
*** 37,40 ****
--- 37,41 ----
self.sizetype = sizetype
self.sizeformat = sizeformat or type2format[sizetype]
+ self.label_needed = 0
def declare(self, name):
***************
*** 68,71 ****
--- 69,73 ----
self.size)
Output("goto %s__error__;", name)
+ self.label_needed = 1
OutRbrace()
self.transferSize(name)
***************
*** 84,90 ****
def cleanup(self, name):
! DedentLevel()
! Output(" %s__error__: ;", name)
! IndentLevel()
--- 86,93 ----
def cleanup(self, name):
! if self.label_needed:
! DedentLevel()
! Output(" %s__error__: ;", name)
! IndentLevel()