From 486708bd2e7f15e0a69d29a7fa34f0a3d8105eaf Mon Sep 17 00:00:00 2001 From: Alexandros Frantzis Date: Thu, 1 Dec 2011 15:52:32 +0200 Subject: [PATCH] Produce dispatchers for all functions, even in retrace mode. --- dispatch.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/dispatch.py b/dispatch.py index a2f23e9..adb16b7 100644 --- a/dispatch.py +++ b/dispatch.py @@ -61,17 +61,11 @@ class Dispatcher: # functions print '#ifdef RETRACE' for function in api.functions: - if self.is_public_function(function): - print '#define __%s %s' % (function.name, function.name) - else: - print '#define %s __%s' % (function.name, function.name) + print '#define %s __%s' % (function.name, function.name) print '#endif /* RETRACE */' print def dispatch_function(self, function): - if self.is_public_function(function): - print '#ifndef RETRACE' - print ptype = function_pointer_type(function) pvalue = function_pointer_value(function) print 'typedef ' + function.prototype('* %s' % ptype) + ';' @@ -87,9 +81,6 @@ class Dispatcher: print ' %s%s(%s);' % (ret, pvalue, ', '.join([str(arg.name) for arg in function.args])) print '}' print - if self.is_public_function(function): - print '#endif /* !RETRACE */' - print def is_public_function(self, function): return True -- 2.7.4