diff options
author | Tony Garnock-Jones <tonyg@lshift.net> | 2009-05-12 16:34:03 +0100 |
---|---|---|
committer | Tony Garnock-Jones <tonyg@lshift.net> | 2009-05-12 16:34:03 +0100 |
commit | ee1a261d858e94a4b1d017bd58ce3b733c69837e (patch) | |
tree | a2c113f8b7b1587d44486019743f2dd4c7871e7f /codegen.py | |
parent | 8184d3cdc5c495520b994cc9768ec36a41478375 (diff) | |
download | rabbitmq-server-ee1a261d858e94a4b1d017bd58ce3b733c69837e.tar.gz |
Cope with both 0-8/0-9 style and 0-9-1 style protocol headers.
Diffstat (limited to 'codegen.py')
-rw-r--r-- | codegen.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -308,6 +308,7 @@ def genHrl(spec): print "-define(PROTOCOL_VERSION_MAJOR, %d)." % (spec.major) print "-define(PROTOCOL_VERSION_MINOR, %d)." % (spec.minor) + print "-define(PROTOCOL_VERSION_REVISION, %d)." % (spec.revision) print "-define(PROTOCOL_PORT, %d)." % (spec.port) for (c,v,cls) in spec.constants: |