summaryrefslogtreecommitdiff
path: root/Tools/bgen/bgen/bgenStackBuffer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/bgen/bgen/bgenStackBuffer.py')
-rw-r--r--Tools/bgen/bgen/bgenStackBuffer.py56
1 files changed, 28 insertions, 28 deletions
diff --git a/Tools/bgen/bgen/bgenStackBuffer.py b/Tools/bgen/bgen/bgenStackBuffer.py
index 1b6350a99e..96696078c2 100644
--- a/Tools/bgen/bgen/bgenStackBuffer.py
+++ b/Tools/bgen/bgen/bgenStackBuffer.py
@@ -6,54 +6,54 @@ from bgenBuffer import FixedInputBufferType, FixedOutputBufferType
class StackOutputBufferType(FixedOutputBufferType):
- """Fixed output buffer allocated on the stack -- passed as (buffer, size).
+ """Fixed output buffer allocated on the stack -- passed as (buffer, size).
- Instantiate with the buffer size as parameter.
- """
+ Instantiate with the buffer size as parameter.
+ """
- def passOutput(self, name):
- return "%s__out__, %s" % (name, self.size)
+ def passOutput(self, name):
+ return "%s__out__, %s" % (name, self.size)
class VarStackOutputBufferType(StackOutputBufferType):
- """Output buffer allocated on the stack -- passed as (buffer, &size).
+ """Output buffer allocated on the stack -- passed as (buffer, &size).
- Instantiate with the buffer size as parameter.
- """
+ Instantiate with the buffer size as parameter.
+ """
- def declareSize(self, name):
- Output("int %s__len__ = %s;", name, self.size)
+ def declareSize(self, name):
+ Output("int %s__len__ = %s;", name, self.size)
- def passOutput(self, name):
- return "%s__out__, &%s__len__" % (name, name)
+ def passOutput(self, name):
+ return "%s__out__, &%s__len__" % (name, name)
- def mkvalueArgs(self, name):
- return "%s__out__, (int)%s__len__" % (name, name)
+ def mkvalueArgs(self, name):
+ return "%s__out__, (int)%s__len__" % (name, name)
class VarVarStackOutputBufferType(VarStackOutputBufferType):
- """Output buffer allocated on the stack -- passed as (buffer, size, &size).
+ """Output buffer allocated on the stack -- passed as (buffer, size, &size).
- Instantiate with the buffer size as parameter.
- """
+ Instantiate with the buffer size as parameter.
+ """
- def passOutput(self, name):
- return "%s__out__, %s__len__, &%s__len__" % (name, name, name)
+ def passOutput(self, name):
+ return "%s__out__, %s__len__, &%s__len__" % (name, name, name)
class ReturnVarStackOutputBufferType(VarStackOutputBufferType):
- """Output buffer allocated on the stack -- passed as (buffer, size) -> size.
+ """Output buffer allocated on the stack -- passed as (buffer, size) -> size.
- Instantiate with the buffer size as parameter.
- The function's return value is the size.
- (XXX Should have a way to suppress returning it separately, too.)
- """
+ Instantiate with the buffer size as parameter.
+ The function's return value is the size.
+ (XXX Should have a way to suppress returning it separately, too.)
+ """
- def passOutput(self, name):
- return "%s__out__, %s__len__" % (name, name)
+ def passOutput(self, name):
+ return "%s__out__, %s__len__" % (name, name)
- def mkvalueArgs(self, name):
- return "%s__out__, (int)_rv" % name
+ def mkvalueArgs(self, name):
+ return "%s__out__, (int)_rv" % name