From 927ccec772af6e2af2ea0afcd65d33b2d8d57955 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Sun, 22 Mar 2009 15:16:45 +0000 Subject: [PATCH] idp.i: Simplified the assemble() implementation --- swig/idp.i | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/swig/idp.i b/swig/idp.i index ff9e0a0..899dc54 100644 --- a/swig/idp.i +++ b/swig/idp.i @@ -290,18 +290,15 @@ int idaapi IDB_Callback(void *ud, int notification_code, va_list va) // returns: 1: success, 0: failure inline const int assemble(ea_t ea, ea_t cs, ea_t ip, bool use32, const char *line) { - int instr_len, i; + int inslen; char buf[256]; // FIXME: Shouldn't be longer than this... is there a MAX_INSTR_LENGTH anywhere? if (ph.notify != NULL) { - instr_len = ph.notify(ph.assemble, ea, cs, ip, use32, line, buf); - if (instr_len > 0) + inslen = ph.notify(ph.assemble, ea, cs, ip, use32, line, buf); + if (inslen > 0) { - for (i=0; i