From: H. Peter Anvin Date: Thu, 26 Feb 2009 22:34:48 +0000 (-0800) Subject: nasm.c: readability cleanup for seg:off parsing X-Git-Tag: nasm-2.11.05~1064 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7219198d729db708eddfe28615664ef55d2dfeed;p=platform%2Fupstream%2Fnasm.git nasm.c: readability cleanup for seg:off parsing The code to pick apart seg:off in nasm.c was virtually unreadable due to mechanized line breaking. --- diff --git a/nasm.c b/nasm.c index 405fb1e..b2f7631 100644 --- a/nasm.c +++ b/nasm.c @@ -1539,23 +1539,17 @@ static void assemble_file(char *fname, StrList **depend_ptr) false, isext, ofmt, report_error); } else if (output_ins.operands == 2 - && (output_ins.oprs[0]. - type & IMMEDIATE) + && (output_ins.oprs[0].type & IMMEDIATE) && (output_ins.oprs[0].type & COLON) - && output_ins.oprs[0].segment == - NO_SEG + && output_ins.oprs[0].segment == NO_SEG && output_ins.oprs[0].wrt == NO_SEG - && (output_ins.oprs[1]. - type & IMMEDIATE) - && output_ins.oprs[1].segment == - NO_SEG - && output_ins.oprs[1].wrt == - NO_SEG) { + && (output_ins.oprs[1].type & IMMEDIATE) + && output_ins.oprs[1].segment == NO_SEG + && output_ins.oprs[1].wrt == NO_SEG) { def_label(output_ins.label, - output_ins.oprs[0]. - offset | SEG_ABS, - output_ins.oprs[1].offset, NULL, - false, false, ofmt, + output_ins.oprs[0].offset | SEG_ABS, + output_ins.oprs[1].offset, + NULL, false, false, ofmt, report_error); } else report_error(ERR_NONFATAL,