[PATCH] fixed python to generate #define instead of const for enums

Bart Massey bart at cs.pdx.edu
Tue Mar 10 23:04:06 PDT 2009


---
 src/c_client.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/c_client.py b/src/c_client.py
index 299ad54..1c1e8c8 100755
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -230,7 +230,7 @@ def c_enum(self, name):
             next += 1
         else:
             next = int(eval)
-        _h('static const uint32_t %s = %d;', _n(name + (enam,)).upper(), next)
+        _h('#define %s %d', _n(name + (enam,)).upper(), next)
 
 def _c_type_setup(self, name, postfix):
     '''
-- 
1.6.1.3


------- =_aaaaaaaaaa0--


More information about the Xcb mailing list