[next] telepathy-glib: Remove NUM_TP_* from generated code

Simon McVittie smcv at kemper.freedesktop.org
Wed May 2 04:26:10 PDT 2012


Module: telepathy-glib
Branch: next
Commit: 046679c636ccaac09f241c0d37c1b630a1b163cb
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=046679c636ccaac09f241c0d37c1b630a1b163cb

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue May  1 13:13:56 2012 +0100

Remove NUM_TP_* from generated code

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49338
Reviewed-by: Jonny Lamb <jonny.lamb at collabora.co.uk>

---

 tools/c-constants-gen.py |    8 --------
 1 files changed, 0 insertions(+), 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(),



More information about the telepathy-commits mailing list