From 8b3c30c0eb82399bddf42dc8c9b0bf92f2566231 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 Apr 1998 16:04:12 +0000 Subject: [PATCH] class ByAddressType, a simple Type but passed by address even on input. (Jack) --- Tools/bgen/bgen/bgenType.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py index ba9a53e4304..b63a06f98f0 100644 --- a/Tools/bgen/bgen/bgenType.py +++ b/Tools/bgen/bgen/bgenType.py @@ -100,6 +100,13 @@ class Type: """ pass +class ByAddressType(Type): + "Simple type that is also passed by address for input" + + def passInput(self, name): + return "&%s" % name + + # Sometimes it's useful to define a type that's only usable as input or output parameter