qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tr...@apache.org
Subject svn commit: r1227208 - /qpid/trunk/qpid/cpp/bindings/swig_ruby_typemaps.i
Date Wed, 04 Jan 2012 16:24:33 GMT
Author: tross
Date: Wed Jan  4 16:24:33 2012
New Revision: 1227208

URL: http://svn.apache.org/viewvc?rev=1227208&view=rev
Log:
QPID-3718 - Added Ruby typemaps for uint8_t and int8_t.
Applied patch from Darryl Pierce.

Modified:
    qpid/trunk/qpid/cpp/bindings/swig_ruby_typemaps.i

Modified: qpid/trunk/qpid/cpp/bindings/swig_ruby_typemaps.i
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/swig_ruby_typemaps.i?rev=1227208&r1=1227207&r2=1227208&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/swig_ruby_typemaps.i (original)
+++ qpid/trunk/qpid/cpp/bindings/swig_ruby_typemaps.i Wed Jan  4 16:24:33 2012
@@ -168,6 +168,26 @@
     $result = (VALUE) $1;
 }
 
+%typemap (in) uint8_t
+{
+  $1 = NUM2UINT ($input);
+}
+
+%typemap (out) uint8_t
+{
+  $result = UINT2NUM((uint8_t) $1);
+}
+
+%typemap (in) int8_t
+{
+  $1 = NUM2INT ($input);
+}
+
+%typemap (out) int8_t
+{
+  $result = INT2NUM((int8_t) $1);
+}
+
 %typemap (in) uint16_t
 {
     $1 = NUM2UINT ($input);



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message