This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] gas/*.[ch]: Fix formatting.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: binutils at sources dot redhat dot com
- Date: Thu, 02 May 2002 21:45:04 -0400 (EDT)
- Subject: [patch] gas/*.[ch]: Fix formatting.
Hi,
Attached is a patch to fix formatting of gas/*.[ch]. OK to apply?
Kazu Hirata
2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
* 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.
Index: as.h
===================================================================
RCS file: /cvs/src/src/gas/as.h,v
retrieving revision 1.25
diff -u -r1.25 as.h
--- as.h 19 Sep 2001 05:33:18 -0000 1.25
+++ as.h 3 May 2002 01:40:11 -0000
@@ -168,7 +168,7 @@
/* Hack to make "gcc -Wall" not complain about obstack macros. */
#if !defined (memcpy) && !defined (bcopy)
-#define bcopy(src,dest,size) memcpy(dest,src,size)
+#define bcopy(src,dest,size) memcpy (dest, src, size)
#endif
/* Make Saber happier on obstack.h. */
Index: cgen.c
===================================================================
RCS file: /cvs/src/src/gas/cgen.c,v
retrieving revision 1.17
diff -u -r1.17 cgen.c
--- cgen.c 17 Dec 2001 19:50:31 -0000 1.17
+++ cgen.c 3 May 2002 01:40:13 -0000
@@ -105,8 +105,8 @@
to keep track of how many fixup chains have been stored and which
elements of the array they are in.
- The algorithms used are the same as in the old scheme. Other than the
- "array-ness" of the whole thing, the functionality is identical to the
+ The algorithms used are the same as in the old scheme. Other than the
+ "array-ness" of the whole thing, the functionality is identical to the
old scheme.
gas_cgen_initialize_saved_fixups_array():
@@ -173,7 +173,7 @@
}
num_fixups = stored_fixups[i].num_fixups_in_chain;
- memcpy (fixups,stored_fixups[i].fixup_chain,
+ memcpy (fixups, stored_fixups[i].fixup_chain,
(sizeof (stored_fixups[i].fixup_chain[0])) * num_fixups);
stored_fixups[i].num_fixups_in_chain = 0;
}
Index: cgen.h
===================================================================
RCS file: /cvs/src/src/gas/cgen.h,v
retrieving revision 1.10
diff -u -r1.10 cgen.h
--- cgen.h 17 Dec 2001 19:50:31 -0000 1.10
+++ cgen.h 3 May 2002 01:40:13 -0000
@@ -53,7 +53,7 @@
/* Call this from md_assemble to initialize the assembler callback. */
extern void gas_cgen_init_parse PARAMS ((void));
-/* Routines and macros for saving fixup chains. */
+/* Routines and macros for saving fixup chains. */
extern void gas_cgen_save_fixups PARAMS ((int));
extern void gas_cgen_restore_fixups PARAMS ((int));
extern void gas_cgen_swap_fixups PARAMS ((int));
Index: dwarf2dbg.c
===================================================================
RCS file: /cvs/src/src/gas/dwarf2dbg.c,v
retrieving revision 1.45
diff -u -r1.45 dwarf2dbg.c
--- dwarf2dbg.c 17 Apr 2002 23:08:42 -0000 1.45
+++ dwarf2dbg.c 3 May 2002 01:40:14 -0000
@@ -241,7 +241,7 @@
symbols apply to assembler code. It is necessary to emit
duplicate line symbols when a compiler asks for them, because GDB
uses them to determine the end of the prologue. */
- if (debug_type == DEBUG_DWARF2
+ if (debug_type == DEBUG_DWARF2
&& line == loc->line && filenum == loc->filenum)
return;
Index: frags.h
===================================================================
RCS file: /cvs/src/src/gas/frags.h,v
retrieving revision 1.11
diff -u -r1.11 frags.h
--- frags.h 30 Mar 2001 02:19:36 -0000 1.11
+++ frags.h 3 May 2002 01:40:22 -0000
@@ -38,7 +38,7 @@
of a particular frag}+offset.
BUG: it may be smarter to have a single pointer off to various different
- notes for different frag kinds. See how code pans. */
+ notes for different frag kinds. See how code pans. */
struct frag {
/* Object file address (as an octet offset). */
Index: gasp.c
===================================================================
RCS file: /cvs/src/src/gas/gasp.c,v
retrieving revision 1.15
diff -u -r1.15 gasp.c
--- gasp.c 13 Feb 2002 08:59:24 -0000 1.15
+++ gasp.c 3 May 2002 01:40:24 -0000
@@ -575,7 +575,7 @@
if (regcomp (®, "^[0-9]*\\.[0-9]+([eE][+-]?[0-9]+)?", REG_EXTENDED) != 0)
return 0;
-
+
rc = regexec (®, &buf.ptr[idx], 0, NULL, 0);
sb_kill (&buf);
regfree (®);
Index: macro.c
===================================================================
RCS file: /cvs/src/src/gas/macro.c,v
retrieving revision 1.16
diff -u -r1.16 macro.c
--- macro.c 17 Jan 2002 11:28:49 -0000 1.16
+++ macro.c 3 May 2002 01:40:28 -0000
@@ -383,7 +383,7 @@
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 @@
/* 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);
Index: read.c
===================================================================
RCS file: /cvs/src/src/gas/read.c,v
retrieving revision 1.50
diff -u -r1.50 read.c
--- read.c 7 Jan 2002 17:51:18 -0000 1.50
+++ read.c 3 May 2002 01:40:32 -0000
@@ -45,7 +45,7 @@
#include "ecoff.h"
#ifndef TC_START_LABEL
-#define TC_START_LABEL(x,y) (x==':')
+#define TC_START_LABEL(x,y) (x == ':')
#endif
/* Set by the object-format or the target. */
Index: stabs.c
===================================================================
RCS file: /cvs/src/src/gas/stabs.c,v
retrieving revision 1.15
diff -u -r1.15 stabs.c
--- stabs.c 4 Dec 2001 23:07:26 -0000 1.15
+++ stabs.c 3 May 2002 01:40:33 -0000
@@ -343,7 +343,7 @@
if (what == 's')
{
/* Release the string, if nobody else has used the obstack. */
- if (saved_string_obstack_end == notes.next_free)
+ if (saved_string_obstack_end == notes.next_free)
obstack_free (¬es, string);
}
@@ -580,7 +580,7 @@
unsigned int lineno;
char *buf;
char sym[30];
- /* Remember the last file/line and avoid duplicates. */
+ /* Remember the last file/line and avoid duplicates. */
static unsigned int prev_lineno = -1;
static char *prev_file = NULL;
@@ -593,22 +593,22 @@
as_where (&file, &lineno);
- /* Don't emit sequences of stabs for the same line. */
+ /* Don't emit sequences of stabs for the same line. */
if (prev_file == NULL)
{
- /* First time thru. */
+ /* First time thru. */
prev_file = xstrdup (file);
prev_lineno = lineno;
}
else if (lineno == prev_lineno
&& strcmp (file, prev_file) == 0)
{
- /* Same file/line as last time. */
+ /* Same file/line as last time. */
return;
}
else
{
- /* Remember file/line for next time. */
+ /* Remember file/line for next time. */
prev_lineno = lineno;
if (strcmp (file, prev_file) != 0)
{
Index: symbols.c
===================================================================
RCS file: /cvs/src/src/gas/symbols.c,v
retrieving revision 1.32
diff -u -r1.32 symbols.c
--- symbols.c 3 Apr 2002 04:10:28 -0000 1.32
+++ symbols.c 3 May 2002 01:40:36 -0000
@@ -439,9 +439,9 @@
#ifdef BFD_ASSEMBLER
if (OUTPUT_FLAVOR == bfd_target_aout_flavour)
#endif
- sprintf(od_buf, "%d.%d.",
- S_GET_OTHER (symbolP),
- S_GET_DESC (symbolP));
+ sprintf (od_buf, "%d.%d.",
+ S_GET_OTHER (symbolP),
+ S_GET_DESC (symbolP));
#endif
as_bad (_("symbol `%s' is already defined as \"%s\"/%s%ld"),
sym_name,
@@ -1878,7 +1878,7 @@
{
char * file;
unsigned int line;
-
+
/* Do not reassign section symbols. */
as_where (& file, & line);
as_warn_where (file, line,