diff options
author | Guido van Rossum <guido@python.org> | 1995-05-03 17:36:54 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-05-03 17:36:54 (GMT) |
commit | 953dc1a079fc13208ca56ee1a6a9070cfa151a43 (patch) | |
tree | b78e434d4d83530b775b78cbfc9d16fd5fad6b7c /Tools/bgen | |
parent | a12bbff857c0c322b9645b70516f00f33385b5f1 (diff) | |
download | cpython-953dc1a079fc13208ca56ee1a6a9070cfa151a43.zip cpython-953dc1a079fc13208ca56ee1a6a9070cfa151a43.tar.gz cpython-953dc1a079fc13208ca56ee1a6a9070cfa151a43.tar.bz2 |
added transferSize() method
Diffstat (limited to 'Tools/bgen')
-rw-r--r-- | Tools/bgen/bgen/bgenBuffer.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/bgen/bgen/bgenBuffer.py b/Tools/bgen/bgen/bgenBuffer.py index 46f3db4..b7abe9d 100644 --- a/Tools/bgen/bgen/bgenBuffer.py +++ b/Tools/bgen/bgen/bgenBuffer.py @@ -68,6 +68,9 @@ class FixedInputOutputBufferType(InputOnlyType): self.size) Output("goto %s__error__;", name) OutRbrace() + self.transferSize() + + def transferSize(): Output("%s__len__ = %s__in_len__;", name, name) def passOutput(self, name): @@ -171,6 +174,9 @@ class StructInputOutputBufferType(FixedInputOutputBufferType): def getargsArgs(self, name): return "(char **)&%s__in__, &%s__in_len__" % (name, name) + def transferSize(self): + pass + def passInput(self, name): return "%s__in__" % name |