From 40e9dd0b4976e0aafe37f70c2b58515f4824da76 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 1 May 2012 13:13:56 +0100 Subject: [PATCH 10/15] Remove NUM_TP_* from generated code --- tools/c-constants-gen.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tools/c-constants-gen.py b/tools/c-constants-gen.py index c7a93d3..caa2793 100644 --- a/tools/c-constants-gen.py +++ b/tools/c-constants-gen.py @@ -130,13 +130,6 @@ extern "C" { * * 1 higher than the highest valid value of #%(mixed-name)s. */ - -/** - * NUM_%(upper-prefix)s%(upper-plural)s: (skip) - * - * 1 higher than the highest valid value of #%(mixed-name)s. - * In new code, use %(upper-prefix)sNUM_%(upper-plural)s instead. - */ """ % {'mixed-name' : (self.prefix + name).replace('_', ''), 'upper-prefix' : self.prefix.upper(), 'upper-plural' : name_plural.upper(), @@ -144,7 +137,6 @@ extern "C" { self.write("""\ #define %(upper-prefix)sNUM_%(upper-plural)s (%(last-val)s+1) -#define NUM_%(upper-prefix)s%(upper-plural)s %(upper-prefix)sNUM_%(upper-plural)s """ % {'mixed-name' : (self.prefix + name).replace('_', ''), 'upper-prefix' : self.prefix.upper(), -- 1.7.10