From b184767ba08521ca2a970995c43eee064df989d2 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Tue, 21 Jul 2009 18:45:58 +0000 Subject: [PATCH] ua.i: insn_t char members are converted to integers --- swig/ua.i | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/swig/ua.i b/swig/ua.i index 1ae9cd1..e441a70 100644 --- a/swig/ua.i +++ b/swig/ua.i @@ -1,7 +1,12 @@ +// Convert op_t char members to integers %apply unsigned char { char n }; %apply unsigned char { char offb }; %apply unsigned char { char offo }; %apply unsigned char { char dtyp }; +// Convert insn_t char members to integers +%apply unsigned char { char segpref }; +%apply unsigned char { char insnpref }; +%apply unsigned char { char flags }; %include "ua.hpp" @@ -10,6 +15,10 @@ %clear (char offo); %clear (char dtyp); +%clear (segpref); +%clear (insnpref); +%clear (flags); + // Small function to get the global cmd pointer // In Python it returns an insn_t class instance %inline {