diff options
author | Alan Conway <aconway@apache.org> | 2008-09-16 00:22:00 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-09-16 00:22:00 +0000 |
commit | de70df69b4b086ac6bf9ce09d3741d527c290f19 (patch) | |
tree | a9e30e22b19bf86fca0eb136defd2290bc1f869b /qpid/cpp/rubygen | |
parent | e307d4138fff7b2635ce808eea50f01f4d542a85 (diff) | |
download | qpid-python-de70df69b4b086ac6bf9ce09d3741d527c290f19.tar.gz |
Simplified cluster updates.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@695696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen')
-rwxr-xr-x | qpid/cpp/rubygen/cppgen.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/rubygen/cppgen.rb b/qpid/cpp/rubygen/cppgen.rb index 3a4228567a..13f6f3744d 100755 --- a/qpid/cpp/rubygen/cppgen.rb +++ b/qpid/cpp/rubygen/cppgen.rb @@ -118,6 +118,7 @@ class AmqpRoot # preview; map 0-10 types to preview code generator types @@typemap = { "bit"=> CppType.new("bool").code("Octet").defval("false"), + "boolean"=> CppType.new("bool").code("Octet").defval("false"), "uint8"=>CppType.new("uint8_t").code("Octet").defval("0"), "uint16"=>CppType.new("uint16_t").code("Short").defval("0"), "uint32"=>CppType.new("uint32_t").code("Long").defval("0"), @@ -189,7 +190,7 @@ class AmqpField c=containing_class c.struct(type_) end - def cpptype() lookup_cpptype(type_) or raise "no cpptype #{self}" end + def cpptype() lookup_cpptype(type_) or raise "no cpptype #{type_} for field #{self}" end def cppname() name.lcaps.cppsafe; end def bit?() type_ == "bit"; end def signature() cpptype.param+" "+cppname; end |