aboutsummaryrefslogtreecommitdiff
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
commitd1a6c2428d38a8a36727df7f693d784854172701 (patch)
treee1ec82f85326d1a8e347a25b10a95b00a4c5f6ec /gas/macro.c
parent38110bc4c34ea54dfcdd65dcd09dc1364240fa5e (diff)
downloadgdb-d1a6c2428d38a8a36727df7f693d784854172701.zip
gdb-d1a6c2428d38a8a36727df7f693d784854172701.tar.gz
gdb-d1a6c2428d38a8a36727df7f693d784854172701.tar.bz2
* 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 11d6511..0842431 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);