summaryrefslogtreecommitdiff
path: root/cpp/rubygen/cppgen.rb
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-08-27 13:31:41 +0000
committerAlan Conway <aconway@apache.org>2007-08-27 13:31:41 +0000
commitccff0f7d310a32c54b12de6b8b6ed73e98b235ec (patch)
tree6f59de8b64308b0a4ae005126f14a566f0766f2a /cpp/rubygen/cppgen.rb
parent54b9b8aeb902851cd52825764938e1b012e06a43 (diff)
downloadqpid-python-ccff0f7d310a32c54b12de6b8b6ed73e98b235ec.tar.gz
* rubygen/cppgen.rb: Use uint rather than u_int form for consistency.
* rubygen/amqpgen.rb: Removed unnecessary sorting. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@570111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/cppgen.rb')
-rwxr-xr-xcpp/rubygen/cppgen.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/cpp/rubygen/cppgen.rb b/cpp/rubygen/cppgen.rb
index 99d80b0b4e..d72731075f 100755
--- a/cpp/rubygen/cppgen.rb
+++ b/cpp/rubygen/cppgen.rb
@@ -108,19 +108,20 @@ end
class AmqpDomain
@@typemap = {
"bit"=> CppType.new("bool").code("Octet"),
- "octet"=>CppType.new("u_int8_t").code("Octet"), # FIXME aconway 2007-08-25: uint
- "short"=>CppType.new("u_int16_t").code("Short"),
- "long"=>CppType.new("u_int32_t").code("Long"),
- "longlong"=>CppType.new("u_int64_t").code("LongLong"),
- "timestamp"=>CppType.new("u_int64_t").code("LongLong"),
+ "octet"=>CppType.new("uint8_t").code("Octet"),
+ "short"=>CppType.new("uint16_t").code("Short"),
+ "long"=>CppType.new("uint32_t").code("Long"),
+ "longlong"=>CppType.new("uint64_t").code("LongLong"),
+ "timestamp"=>CppType.new("uint64_t").code("LongLong"),
"longstr"=>CppType.new("string").passcref.retcref.code("LongString"),
"shortstr"=>CppType.new("string").passcref.retcref.code("ShortString"),
"table"=>CppType.new("FieldTable").passcref.retcref.code("FieldTable"),
"content"=>CppType.new("Content").passcref.retcref.code("Content"),
"rfc1982-long-set"=>CppType.new("SequenceNumberSet").passcref.retcref,
"long-struct"=>CppType.new("string").passcref.retcref.code("LongString"),
- "uuid"=>CppType.new("string").passcref.retcref.code("ShortString") # FIXME aconway 2007-08-25: Remove,
-# "uuid"=>CppType.new("Uuid").passcref.retcref.code,
+ # FIXME aconway 2007-08-25: Use Uuid class.
+ # "uuid"=>CppType.new("Uuid").passcref.retcref.code,
+ "uuid"=>CppType.new("string").passcref.retcref.code("ShortString")
}
def cppname() name.caps; end