summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-04-15 18:23:55 +0000
committerAlan Conway <aconway@apache.org>2008-04-15 18:23:55 +0000
commitcaceb56988996f722585125c1990233aff0a1166 (patch)
tree952400e6d7cd1d0e760c54f96c5b853bf4ad121d /qpid/cpp/rubygen
parentdda43816958847a6514495a9d823a025f53d83d1 (diff)
downloadqpid-python-caceb56988996f722585125c1990233aff0a1166.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@648362 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen')
-rwxr-xr-xqpid/cpp/rubygen/0-10/specification.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/rubygen/0-10/specification.rb b/qpid/cpp/rubygen/0-10/specification.rb
index 4f912228f7..77d59fd214 100755
--- a/qpid/cpp/rubygen/0-10/specification.rb
+++ b/qpid/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"