summaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2002-05-03 02:25:33 +0000
committerKazu Hirata <kazu@codesourcery.com>2002-05-03 02:25:33 +0000
commitb08e4f870c60d108e1e8338acb31dd9fe4334c96 (patch)
treea3eadb227ede01f676ef8e38c170530c6ab18131 /gas/macro.c
parentb2596a9cb81575f49974370ba73cdb4e92025c8a (diff)
downloadbinutils-redhat-b08e4f870c60d108e1e8338acb31dd9fe4334c96.tar.gz
* as.h: Fix formatting.
* cgen.c: Likewise. * cgen.h: Likewise. * dwarf2dbg.c: Likewise. * frags.h: Likewise. * gasp.c: Likewise. * macro.c: Likewise. * read.c: Likewise. * stabs.c: Likewise. * symbols.c: Likewise.
Diffstat (limited to 'gas/macro.c')
-rw-r--r--gas/macro.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/gas/macro.c b/gas/macro.c
index 11d6511381..08424317c4 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -383,7 +383,7 @@ get_any_string (idx, in, out, expand, pretend_quoted)
idx + 1,
in,
&val);
- sprintf(buf, "%d", val);
+ sprintf (buf, "%d", val);
sb_add_string (out, buf);
}
else if (in->ptr[idx] == '"'
@@ -928,29 +928,29 @@ macro_expand (idx, in, m, out, comment_char)
/* The macro may be called with an optional qualifier, which may
be referred to in the macro body as \0. */
if (idx < in->len && in->ptr[idx] == '.')
- {
- /* The Microtec assembler ignores this if followed by a white space.
- (Macro invocation with empty extension) */
- idx++;
- if ( idx < in->len
- && in->ptr[idx] != ' '
- && in->ptr[idx] != '\t')
- {
- formal_entry *n;
-
- n = (formal_entry *) xmalloc (sizeof (formal_entry));
- sb_new (&n->name);
- sb_new (&n->def);
- sb_new (&n->actual);
- n->index = QUAL_INDEX;
-
- n->next = m->formals;
- m->formals = n;
-
- idx = get_any_string (idx, in, &n->actual, 1, 0);
- }
- }
- }
+ {
+ /* The Microtec assembler ignores this if followed by a white space.
+ (Macro invocation with empty extension) */
+ idx++;
+ if ( idx < in->len
+ && in->ptr[idx] != ' '
+ && in->ptr[idx] != '\t')
+ {
+ formal_entry *n;
+
+ n = (formal_entry *) xmalloc (sizeof (formal_entry));
+ sb_new (&n->name);
+ sb_new (&n->def);
+ sb_new (&n->actual);
+ n->index = QUAL_INDEX;
+
+ n->next = m->formals;
+ m->formals = n;
+
+ idx = get_any_string (idx, in, &n->actual, 1, 0);
+ }
+ }
+ }
/* Peel off the actuals and store them away in the hash tables' actuals. */
idx = sb_skip_white (idx, in);