summaryrefslogtreecommitdiffstats
path: root/Tools/bgen
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2005-12-25 23:18:31 (GMT)
committerTim Peters <tim.peters@gmail.com>2005-12-25 23:18:31 (GMT)
commit536cf99536bce562cfcb44a856fac1c84b9de4c3 (patch)
tree80cf0f425cfc703b228aad716ed66cd4a5080c03 /Tools/bgen
parent83a8c393b06d24b3c6b252b7614c34110c369c43 (diff)
downloadcpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.zip
cpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.tar.gz
cpython-536cf99536bce562cfcb44a856fac1c84b9de4c3.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Tools/bgen')
-rw-r--r--Tools/bgen/bgen/bgenGenerator.py4
-rw-r--r--Tools/bgen/bgen/bgenHeapBuffer.py11
2 files changed, 7 insertions, 8 deletions
diff --git a/Tools/bgen/bgen/bgenGenerator.py b/Tools/bgen/bgen/bgenGenerator.py
index 7b54579..3da3958 100644
--- a/Tools/bgen/bgen/bgenGenerator.py
+++ b/Tools/bgen/bgen/bgenGenerator.py
@@ -218,10 +218,10 @@ class FunctionGenerator(BaseFunctionGenerator):
def beginallowthreads(self):
pass
-
+
def endallowthreads(self):
pass
-
+
def callit(self):
args = ""
s = "%s%s(" % (self.getrvforcallit(), self.callname)
diff --git a/Tools/bgen/bgen/bgenHeapBuffer.py b/Tools/bgen/bgen/bgenHeapBuffer.py
index d677f29..3d440e6 100644
--- a/Tools/bgen/bgen/bgenHeapBuffer.py
+++ b/Tools/bgen/bgen/bgenHeapBuffer.py
@@ -111,10 +111,10 @@ class VarVarHeapOutputBufferType(VarHeapOutputBufferType):
def passOutput(self, name):
return "%s__out__, %s__len__, &%s__len__" % (name, name, name)
-
+
class MallocHeapOutputBufferType(HeapOutputBufferType):
"""Output buffer allocated by the called function -- passed as (&buffer, &size).
-
+
Instantiate without parameters.
Call from Python without parameters.
"""
@@ -124,7 +124,7 @@ class MallocHeapOutputBufferType(HeapOutputBufferType):
def getAuxDeclarations(self, name):
return []
-
+
def passOutput(self, name):
return "&%s__out__, &%s__len__" % (name, name)
@@ -133,10 +133,9 @@ class MallocHeapOutputBufferType(HeapOutputBufferType):
def getargsArgs(self, name):
return None
-
+
def mkvalueFormat(self):
return "z#"
-
+
def cleanup(self, name):
Output("if( %s__out__ ) free(%s__out__);", name, name)
-