diff options
author | Alan Conway <aconway@apache.org> | 2008-04-15 18:23:55 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-15 18:23:55 +0000 |
commit | 04f90cff6570c8f035eaa2a86fa31ebd1caf3f0f (patch) | |
tree | 4567305f8974177a74655738a694ff2bc167bc59 /cpp/rubygen/0-10/specification.rb | |
parent | 2a0efe8231595bc6bb891b525427297ce446c20a (diff) | |
download | qpid-python-04f90cff6570c8f035eaa2a86fa31ebd1caf3f0f.tar.gz |
Correct Struct32 encoding: size/code/data.
Proper re-encoding for unknown struct codes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648362 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/0-10/specification.rb')
-rwxr-xr-x | cpp/rubygen/0-10/specification.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/rubygen/0-10/specification.rb b/cpp/rubygen/0-10/specification.rb index 4f912228f7..77d59fd214 100755 --- a/cpp/rubygen/0-10/specification.rb +++ b/cpp/rubygen/0-10/specification.rb @@ -159,7 +159,7 @@ class Specification < CppGen end # Generate struct definitions into a separate header file so the - # can be included by Struct32.h without circularity. + # can be included by StructHolder.h without circularity. def gen_structs() h_file("#{@dir}/structs") { include "#{@dir}/specification_fwd" @@ -177,7 +177,7 @@ class Specification < CppGen cpp_file("#{@dir}/structs") { include "#{@dir}/structs" - include "#{@dir}/Struct32" + include "#{@dir}/StructHolder" namespace(@ns) { each_class_ns { |c| c.collect_all(AmqpStruct).each { |s| struct_cpp(s) } @@ -283,7 +283,7 @@ class Specification < CppGen end def gen_holder(base, subs) - name= (base=="Struct") ? "Struct32" : base+"Holder" + name=base+"Holder" h_file("#{@dir}/#{name}") { include "#{@dir}/Apply#{base}" include "#{@dir}/Holder" |