summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-01-09 16:40:03 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2010-01-09 20:36:18 +0300
commitd879900c5a138654fb73758a98155f822b00893c (patch)
tree931f814d36968575d7fb0d73fe5692781741300d /nasm.c
parentb849f7f6f709b7ca84448d86bdc1a9dfa984e2b8 (diff)
downloadnasm-d879900c5a138654fb73758a98155f822b00893c.tar.gz
nasm-d879900c5a138654fb73758a98155f822b00893c.tar.bz2
nasm-d879900c5a138654fb73758a98155f822b00893c.zip
nasm.c: Restore strings broken by `indent`
A number of strings are broken by nindent passed over the nasm.c. Though the compiler doesn't care about this fact it's really unpleasant to have a string split at "dot" symbol. Lets restore it in a sake of readability. (No change on binary level) Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c44
1 files changed, 14 insertions, 30 deletions
diff --git a/nasm.c b/nasm.c
index 28a6086..d8f64c5 100644
--- a/nasm.c
+++ b/nasm.c
@@ -1514,8 +1514,7 @@ static void assemble_file(char *fname, StrList **depend_ptr)
if (forwref != NULL && globallineno == forwref->lineno) {
output_ins.forw_ref = true;
do {
- output_ins.oprs[forwref->operand].opflags |=
- OPFLAG_FORWARD;
+ output_ins.oprs[forwref->operand].opflags |= OPFLAG_FORWARD;
forwref = saa_rstruct(forwrefs);
} while (forwref != NULL
&& forwref->lineno == globallineno);
@@ -1525,8 +1524,7 @@ static void assemble_file(char *fname, StrList **depend_ptr)
if (output_ins.forw_ref) {
if (passn == 1) {
for (i = 0; i < output_ins.operands; i++) {
- if (output_ins.oprs[i].
- opflags & OPFLAG_FORWARD) {
+ if (output_ins.oprs[i].opflags & OPFLAG_FORWARD) {
struct forwrefinfo *fwinf =
(struct forwrefinfo *)
saa_wstruct(forwrefs);
@@ -1593,18 +1591,13 @@ static void assemble_file(char *fname, StrList **depend_ptr)
output_ins.oprs[0].offset,
NULL, false, false);
} 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[1].
- type & IMMEDIATE)
- && output_ins.oprs[1].segment ==
- NO_SEG) {
+ && output_ins.oprs[0].segment == NO_SEG
+ && (output_ins.oprs[1].type & IMMEDIATE)
+ && output_ins.oprs[1].segment == NO_SEG) {
define_label(output_ins.label,
- output_ins.oprs[0].
- offset | SEG_ABS,
+ output_ins.oprs[0].offset | SEG_ABS,
output_ins.oprs[1].offset,
NULL, false, false);
} else
@@ -1628,38 +1621,31 @@ static void assemble_file(char *fname, StrList **depend_ptr)
switch (output_ins.opcode) {
case I_RESB:
typeinfo =
- TYS_ELEMENTS(output_ins.oprs[0].
- offset) | TY_BYTE;
+ TYS_ELEMENTS(output_ins.oprs[0].offset) | TY_BYTE;
break;
case I_RESW:
typeinfo =
- TYS_ELEMENTS(output_ins.oprs[0].
- offset) | TY_WORD;
+ TYS_ELEMENTS(output_ins.oprs[0].offset) | TY_WORD;
break;
case I_RESD:
typeinfo =
- TYS_ELEMENTS(output_ins.oprs[0].
- offset) | TY_DWORD;
+ TYS_ELEMENTS(output_ins.oprs[0].offset) | TY_DWORD;
break;
case I_RESQ:
typeinfo =
- TYS_ELEMENTS(output_ins.oprs[0].
- offset) | TY_QWORD;
+ TYS_ELEMENTS(output_ins.oprs[0].offset) | TY_QWORD;
break;
case I_REST:
typeinfo =
- TYS_ELEMENTS(output_ins.oprs[0].
- offset) | TY_TBYTE;
+ TYS_ELEMENTS(output_ins.oprs[0].offset) | TY_TBYTE;
break;
case I_RESO:
typeinfo =
- TYS_ELEMENTS(output_ins.oprs[0].
- offset) | TY_OWORD;
+ TYS_ELEMENTS(output_ins.oprs[0].offset) | TY_OWORD;
break;
case I_RESY:
typeinfo =
- TYS_ELEMENTS(output_ins.oprs[0].
- offset) | TY_YWORD;
+ TYS_ELEMENTS(output_ins.oprs[0].offset) | TY_YWORD;
break;
case I_DB:
typeinfo |= TY_BYTE;
@@ -2132,5 +2118,3 @@ static int get_bits(char *value)
}
return i;
}
-
-/* end of nasm.c */