Add missing declaration of ssize_t as unsigned long for SWIG
authorAmit Margalit <amitm@il.ibm.com>
Tue, 20 Aug 2013 07:41:30 +0000 (10:41 +0300)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Aug 2013 17:43:23 +0000 (13:43 -0400)
The file babeltrace.i.in contains a declaration of bt_get_int_len()
returning ssize_t, which SWIG does not recognize as an integer (perhaps
only in some cases).

Add a typedef to generate correct code.

Acked-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Amit Margalit <amitm@il.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
bindings/python/babeltrace.i.in

index 24581604e57856713ceaa9744a26dd8092dfdc24..bd2d740c5f51fa1ad39fa944a3487dbf2ffa3a84 100644 (file)
@@ -53,6 +53,7 @@ trace to it."
 typedef unsigned long long uint64_t;
 typedef long long int64_t;
 typedef int bt_intern_str;
+typedef unsigned long ssize_t;
 
 /* =================================================================
                CONTEXT.H, CONTEXT-INTERNAL.H
This page took 0.032144 seconds and 4 git commands to generate.