[Python-checkins] python/dist/src/Tools/bgen/bgen bgenBuffer.py, 1.12, 1.13 bgenGenerator.py, 1.22, 1.23 bgenHeapBuffer.py, 1.7, 1.8 bgenObjectDefinition.py, 1.33, 1.34 bgenType.py, 1.19, 1.20 bgenVariable.py, 1.10, 1.11 scantools.py, 1.40, 1.41

tim_one@users.sourceforge.net tim_one at users.sourceforge.net
Sun Jul 10 22:37:53 CEST 2005


Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8194/Tools/bgen/bgen

Modified Files:
	bgenBuffer.py bgenGenerator.py bgenHeapBuffer.py 
	bgenObjectDefinition.py bgenType.py bgenVariable.py 
	scantools.py 
Log Message:
Whitespace normalization.


Index: bgenBuffer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenBuffer.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- bgenBuffer.py	5 Jul 2005 10:00:57 -0000	1.12
+++ bgenBuffer.py	10 Jul 2005 20:37:50 -0000	1.13
@@ -41,23 +41,23 @@
     def getArgDeclarations(self, name, reference=False, constmode=False):
         if reference:
             raise RuntimeError, "Cannot pass buffer types by reference"
-        return (self.getBufferDeclarations(name, constmode) + 
+        return (self.getBufferDeclarations(name, constmode) +
                 self.getSizeDeclarations(name))
 
     def getBufferDeclarations(self, name, constmode=False):
         return self.getInputBufferDeclarations(name, constmode) + \
-        	self.getOutputBufferDeclarations(name, constmode)
+                self.getOutputBufferDeclarations(name, constmode)
 
     def getInputBufferDeclarations(self, name, constmode=False):
-    	if constmode:
-    		const = "const "
-    	else:
-    		const = ""
+        if constmode:
+            const = "const "
+        else:
+            const = ""
         return ["%s%s *%s__in__" % (const, self.datatype, name)]
 
     def getOutputBufferDeclarations(self, name, constmode=False):
-    	if constmode:
-    		raise RuntimeError, "Cannot use const output buffer"
+        if constmode:
+            raise RuntimeError, "Cannot use const output buffer"
         return ["%s %s__out__[%s]" % (self.datatype, name, self.size)]
 
     def getSizeDeclarations(self, name):
@@ -194,21 +194,21 @@
         self.typeName = self.type = type
 
     def getInputBufferDeclarations(self, name, constmode=False):
-    	if constmode:
-    		const = "const "
-    	else:
-    		const = ""
+        if constmode:
+            const = "const "
+        else:
+            const = ""
         return ["%s%s *%s__in__" % (const, self.type, name)]
 
     def getSizeDeclarations(self, name):
         return []
-        
+
     def getAuxDeclarations(self, name):
         return ["int %s__in_len__" % (name)]
 
     def getOutputBufferDeclarations(self, name, constmode=False):
-    	if constmode:
-    		raise RuntimeError, "Cannot use const output buffer"
+        if constmode:
+            raise RuntimeError, "Cannot use const output buffer"
         return ["%s %s__out__" % (self.type, name)]
 
     def getargsArgs(self, name):

Index: bgenGenerator.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenGenerator.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- bgenGenerator.py	3 Jul 2005 20:58:08 -0000	1.22
+++ bgenGenerator.py	10 Jul 2005 20:37:50 -0000	1.23
@@ -32,7 +32,7 @@
 
     def checkgenerate(self):
         return True
-        
+
     def generate(self):
         if not self.checkgenerate():
             return
@@ -234,7 +234,7 @@
             return "%s = " % self.rv.name
         else:
             return ""
-            
+
     def checkit(self):
         for arg in self.argumentList:
             arg.errorCheck()

Index: bgenHeapBuffer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenHeapBuffer.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- bgenHeapBuffer.py	5 Jul 2005 10:00:57 -0000	1.7
+++ bgenHeapBuffer.py	10 Jul 2005 20:37:50 -0000	1.8
@@ -17,8 +17,8 @@
         FixedInputOutputBufferType.__init__(self, "0", datatype, sizetype, sizeformat)
 
     def getOutputBufferDeclarations(self, name, constmode=False):
-    	if constmode:
-    		raise RuntimeError, "Cannot use const output buffer"
+        if constmode:
+            raise RuntimeError, "Cannot use const output buffer"
         return ["%s *%s__out__" % (self.datatype, name)]
 
     def getargsCheck(self, name):

Index: bgenObjectDefinition.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenObjectDefinition.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- bgenObjectDefinition.py	8 Jul 2005 15:03:37 -0000	1.33
+++ bgenObjectDefinition.py	10 Jul 2005 20:37:50 -0000	1.34
@@ -220,7 +220,7 @@
         Output("""Py_INCREF(&%s);""", self.typename)
         Output("PyModule_AddObject(m, \"%s\", (PyObject *)&%s);", self.name, self.typename);
         self.outputTypeObjectInitializerCompat()
-        
+
     def outputTypeObjectInitializerCompat(self):
         Output("/* Backward-compatible name */")
         Output("""Py_INCREF(&%s);""", self.typename);

Index: bgenType.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenType.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- bgenType.py	5 Jul 2005 10:00:57 -0000	1.19
+++ bgenType.py	10 Jul 2005 20:37:50 -0000	1.20
@@ -47,7 +47,7 @@
         type, such as helper variables used to hold sizes, etc. These declarations
         are not part of the C/C++ function call interface."""
         return []
-        
+
     def getargs(self):
         return self.getargsFormat(), self.getargsArgs()
 
@@ -68,10 +68,10 @@
 
     def getargsPreCheck(self, name):
         """Perform any actions needed before calling getargs().
-        
+
         This could include declaring temporary variables and such.
         """
-    
+
     def getargsCheck(self, name):
         """Perform any needed post-[new]getargs() checks.
 
@@ -133,10 +133,10 @@
 
     def mkvaluePreCheck(self, name):
         """Perform any actions needed before calling mkvalue().
-        
+
         This could include declaring temporary variables and such.
         """
-    
+
     def cleanup(self, name):
         """Clean up if necessary.
 

Index: bgenVariable.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenVariable.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- bgenVariable.py	5 Jul 2005 10:00:57 -0000	1.10
+++ bgenVariable.py	10 Jul 2005 20:37:51 -0000	1.11
@@ -48,10 +48,10 @@
     def getArgDeclarations(self, constmode=False):
         refmode = (self.flags & RefMode)
         if constmode:
-        	constmode = (self.flags & ConstMode)
+            constmode = (self.flags & ConstMode)
         return self.type.getArgDeclarations(self.name,
-        	reference=refmode, constmode=constmode)
-    
+                reference=refmode, constmode=constmode)
+
     def getAuxDeclarations(self):
         return self.type.getAuxDeclarations(self.name)
 

Index: scantools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/scantools.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- scantools.py	29 Jun 2005 14:17:05 -0000	1.40
+++ scantools.py	10 Jul 2005 20:37:51 -0000	1.41
@@ -626,7 +626,7 @@
 
     def destination(self, type, name, arglist):
         return "FunctionGenerator", "functions"
-        
+
     def generatemodifiers(self, classname, name, modifiers):
         pass
 



More information about the Python-checkins mailing list