ext/cproton/cproton.c in qpid_proton-0.26.0 vs ext/cproton/cproton.c in qpid_proton-0.27.1
- old
+ new
@@ -1,8 +1,8 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 3.0.11
+ * Version 3.0.12
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
@@ -1891,11 +1891,11 @@
#define SWIG_RUBY_THREAD_BEGIN_BLOCK
#define SWIG_RUBY_THREAD_END_BLOCK
-#define SWIGVERSION 0x030011
+#define SWIGVERSION 0x030012
#define SWIG_VERSION SWIGVERSION
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
@@ -1926,11 +1926,11 @@
{
return Qnil;
}
-/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
unsigned long *res = (unsigned long *)(args[1]);
@@ -1971,11 +1971,11 @@
# define SWIG_LONG_LONG_AVAILABLE
#endif
#ifdef SWIG_LONG_LONG_AVAILABLE
-/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
long long *res = (long long *)(args[1]);
@@ -2301,11 +2301,11 @@
return result;
}
-/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
long *res = (long *)(args[1]);
@@ -2583,13 +2583,15 @@
/* Use a template so that this works whether isfinite() is std::isfinite() or
* in the global namespace. The reality seems to vary between compiler
* versions.
*
* Make sure namespace std exists to avoid compiler warnings.
+ *
+ * extern "C++" is required as this fragment can end up inside an extern "C" { } block
*/
namespace std { }
-template<typename T>
+extern "C++" template<typename T>
inline int SWIG_isfinite_func(T x) {
using namespace std;
return isfinite(x);
}
# define SWIG_isfinite(X) (SWIG_isfinite_func(X))
@@ -2608,11 +2610,11 @@
#else
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
#endif
-/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
double *res = (double *)(args[1]);
@@ -2697,11 +2699,11 @@
return res;
}
#ifdef SWIG_LONG_LONG_AVAILABLE
-/*@SWIG:/usr/share/swig/3.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
+/*@SWIG:/usr/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
{
VALUE obj = args[0];
VALUE type = TYPE(obj);
long long *res = (long long *)(args[1]);
@@ -12485,16 +12487,16 @@
SWIGINTERN VALUE
_wrap_pn_transport_tick(int argc, VALUE *argv, VALUE self) {
pn_transport_t *arg1 = (pn_transport_t *) 0 ;
- pn_timestamp_t arg2 ;
+ int64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
long long val2 ;
int ecode2 = 0 ;
- pn_timestamp_t result;
+ int64_t result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
@@ -12503,14 +12505,14 @@
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_transport_t *","pn_transport_tick", 1, argv[0] ));
}
arg1 = (pn_transport_t *)(argp1);
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","pn_transport_tick", 2, argv[1] ));
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","pn_transport_tick", 2, argv[1] ));
}
- arg2 = (pn_timestamp_t)(val2);
- result = (pn_timestamp_t)pn_transport_tick(arg1,arg2);
+ arg2 = (int64_t)(val2);
+ result = (int64_t)pn_transport_tick(arg1,arg2);
vresult = SWIG_From_long_SS_long((long long)(result));
return vresult;
fail:
return Qnil;
}
@@ -21965,11 +21967,11 @@
rb_define_module_function(mCproton, "pni_connection_driver_transport", _wrap_pni_connection_driver_transport, -1);
rb_define_module_function(mCproton, "pni_connection_driver_read_copy", _wrap_pni_connection_driver_read_copy, -1);
rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
- rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(26)));
- rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(27)));
+ rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1);
rb_define_singleton_method(mCproton, "pn_bytes_null", _wrap_pn_bytes_null_get, 0);
rb_define_module_function(mCproton, "pn_rwbytes", _wrap_pn_rwbytes, -1);