This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] gas/*.[ch]: Fix formatting.


Hi,

Attached is a patch to fix formatting.  Committed as obvious.

Kazu Hirata

2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>

	* app.c: Fix formatting.
	* as.c: Likewise.
	* ehopt.c: Likewise.
	* expr.c: Likewise.
	* input-file.c: Likewise.
	* listing.c: Likewise.
	* macro.h: Likewise.
	* stabs.c: Likewise.
	* symbols.c: Likewise.

Index: app.c
===================================================================
RCS file: /cvs/src/src/gas/app.c,v
retrieving revision 1.18
diff -u -r1.18 app.c
--- app.c	2 May 2002 13:01:50 -0000	1.18
+++ app.c	18 May 2002 12:50:34 -0000
@@ -424,13 +424,13 @@
      I don't want to make such a significant change to the assembler's
      memory usage.  */
 
-#define PUT(pch)			\
-  do					\
-    {					\
-      *to++ = (pch);			\
-      if (to >= toend)			\
-        goto tofull;			\
-    }					\
+#define PUT(pch)				\
+  do						\
+    {						\
+      *to++ = (pch);				\
+      if (to >= toend)				\
+	goto tofull;				\
+    }						\
   while (0)
 
   if (saved_input != NULL)
Index: as.c
===================================================================
RCS file: /cvs/src/src/gas/as.c,v
retrieving revision 1.37
diff -u -r1.37 as.c
--- as.c	16 Apr 2002 04:58:56 -0000	1.37
+++ as.c	18 May 2002 12:50:35 -0000
@@ -500,8 +500,8 @@
 	  break;
 
 	case OPTION_TARGET_HELP:
-          md_show_usage (stdout);
-          exit (EXIT_SUCCESS);
+	  md_show_usage (stdout);
+	  exit (EXIT_SUCCESS);
 
 	case OPTION_HELP:
 	  show_usage (stdout);
Index: ehopt.c
===================================================================
RCS file: /cvs/src/src/gas/ehopt.c,v
retrieving revision 1.9
diff -u -r1.9 ehopt.c
--- ehopt.c	22 May 2001 10:23:48 -0000	1.9
+++ ehopt.c	18 May 2002 12:50:35 -0000
@@ -370,7 +370,7 @@
 	d->state = state_error;
       else
 	{
-          int left = (d->aug_size -= *pnbytes);
+	  int left = (d->aug_size -= *pnbytes);
 	  if (left == 0)
 	    d->state = state_wait_loc4;
 	  else if (left < 0)
Index: expr.c
===================================================================
RCS file: /cvs/src/src/gas/expr.c,v
retrieving revision 1.41
diff -u -r1.41 expr.c
--- expr.c	11 Oct 2001 12:20:25 -0000	1.41
+++ expr.c	18 May 2002 12:50:37 -0000
@@ -803,7 +803,7 @@
 
       integer_constant ((NUMBERS_WITH_SUFFIX || flag_m68k_mri)
 			? 0 : 10,
-                        expressionP);
+			expressionP);
       break;
 
 #ifdef LITERAL_PREFIXDOLLAR_HEX
Index: input-file.c
===================================================================
RCS file: /cvs/src/src/gas/input-file.c,v
retrieving revision 1.9
diff -u -r1.9 input-file.c
--- input-file.c	11 Oct 2001 07:17:47 -0000	1.9
+++ input-file.c	18 May 2002 12:50:37 -0000
@@ -157,29 +157,29 @@
       /* Begins with comment, may not want to preprocess.  */
       c = getc (f_in);
       if (c == 'N')
-        {
-          fgets (buf, 80, f_in);
-          if (!strncmp (buf, "O_APP", 5) && ISSPACE (buf[5]))
-            preprocess = 0;
-          if (!strchr (buf, '\n'))
-            ungetc ('#', f_in);	/* It was longer.  */
-          else
-            ungetc ('\n', f_in);
-        }
+	{
+	  fgets (buf, 80, f_in);
+	  if (!strncmp (buf, "O_APP", 5) && ISSPACE (buf[5]))
+	    preprocess = 0;
+	  if (!strchr (buf, '\n'))
+	    ungetc ('#', f_in);	/* It was longer.  */
+	  else
+	    ungetc ('\n', f_in);
+	}
       else if (c == 'A')
-        {
-          fgets (buf, 80, f_in);
-          if (!strncmp (buf, "PP", 2) && ISSPACE (buf[2]))
-            preprocess = 1;
-          if (!strchr (buf, '\n'))
-            ungetc ('#', f_in);
-          else
-            ungetc ('\n', f_in);
-        }
+	{
+	  fgets (buf, 80, f_in);
+	  if (!strncmp (buf, "PP", 2) && ISSPACE (buf[2]))
+	    preprocess = 1;
+	  if (!strchr (buf, '\n'))
+	    ungetc ('#', f_in);
+	  else
+	    ungetc ('\n', f_in);
+	}
       else if (c == '\n')
-        ungetc ('\n', f_in);
+	ungetc ('\n', f_in);
       else
-        ungetc ('#', f_in);
+	ungetc ('#', f_in);
     }
   else
     ungetc (c, f_in);
Index: listing.c
===================================================================
RCS file: /cvs/src/src/gas/listing.c,v
retrieving revision 1.18
diff -u -r1.18 listing.c
--- listing.c	25 Sep 2001 12:09:45 -0000	1.18
+++ listing.c	18 May 2002 12:50:38 -0000
@@ -616,36 +616,36 @@
 	  data_buffer_size += 2;
 	  octet_in_frag++;
 	}
-    if (frag_ptr->fr_type == rs_fill)
-      {
-	unsigned int var_rep_max = octet_in_frag;
-	unsigned int var_rep_idx = octet_in_frag;
-
-	/* Print as many bytes from the variable part as is sensible.  */
-	while (((offsetT) octet_in_frag
-		< (frag_ptr->fr_fix + frag_ptr->fr_var * frag_ptr->fr_offset))
-	       && data_buffer_size < MAX_BYTES - 3)
-	  {
-	    if (address == ~(unsigned int) 0)
-	      {
-		address = frag_ptr->fr_address / OCTETS_PER_BYTE;
-	      }
-	    sprintf (data_buffer + data_buffer_size,
-		     "%02X",
-		     (frag_ptr->fr_literal[var_rep_idx]) & 0xff);
+      if (frag_ptr->fr_type == rs_fill)
+	{
+	  unsigned int var_rep_max = octet_in_frag;
+	  unsigned int var_rep_idx = octet_in_frag;
+
+	  /* Print as many bytes from the variable part as is sensible.  */
+	  while (((offsetT) octet_in_frag
+		  < (frag_ptr->fr_fix + frag_ptr->fr_var * frag_ptr->fr_offset))
+		 && data_buffer_size < MAX_BYTES - 3)
+	    {
+	      if (address == ~(unsigned int) 0)
+		{
+		  address = frag_ptr->fr_address / OCTETS_PER_BYTE;
+		}
+	      sprintf (data_buffer + data_buffer_size,
+		       "%02X",
+		       (frag_ptr->fr_literal[var_rep_idx]) & 0xff);
 #if 0
-	    data_buffer[data_buffer_size++] = '*';
-	    data_buffer[data_buffer_size++] = '*';
+	      data_buffer[data_buffer_size++] = '*';
+	      data_buffer[data_buffer_size++] = '*';
 #endif
-	    data_buffer_size += 2;
+	      data_buffer_size += 2;
 
-	    var_rep_idx++;
-	    octet_in_frag++;
+	      var_rep_idx++;
+	      octet_in_frag++;
 
-	    if ((offsetT) var_rep_idx >= frag_ptr->fr_fix + frag_ptr->fr_var)
-	      var_rep_idx = var_rep_max;
-	  }
-      }
+	      if ((offsetT) var_rep_idx >= frag_ptr->fr_fix + frag_ptr->fr_var)
+		var_rep_idx = var_rep_max;
+	    }
+	}
 
       frag_ptr = frag_ptr->fr_next;
     }
@@ -1063,7 +1063,7 @@
 	      if (!((listing & LISTING_NODEBUG)
 		    && debugging_pseudo (list, list->line_contents)))
 		{
- 		  print_lines (list,
+		  print_lines (list,
 			       list->file->linenum == 0 ? list->line : list->file->linenum,
 			       list->line_contents, calc_hex (list));
 		}
Index: macro.h
===================================================================
RCS file: /cvs/src/src/gas/macro.h,v
retrieving revision 1.5
diff -u -r1.5 macro.h
--- macro.h	8 Mar 2001 23:24:22 -0000	1.5
+++ macro.h	18 May 2002 12:50:38 -0000
@@ -79,7 +79,7 @@
   PARAMS ((int idx, sb *in, sb *label, int (*get_line) PARAMS ((sb *)),
 	   const char **namep));
 extern int check_macro PARAMS ((const char *, sb *, int, const char **,
-                                macro_entry **));
+				macro_entry **));
 extern void delete_macro PARAMS ((const char *));
 extern const char *expand_irp
   PARAMS ((int, int, sb *, sb *, int (*) PARAMS ((sb *)), int));
Index: stabs.c
===================================================================
RCS file: /cvs/src/src/gas/stabs.c,v
retrieving revision 1.18
diff -u -r1.18 stabs.c
--- stabs.c	13 May 2002 10:16:36 -0000	1.18
+++ stabs.c	18 May 2002 12:50:38 -0000
@@ -247,7 +247,7 @@
        format, probably DWARF.  */
     as_warn (_(".stab%c: description field '%x' too big, try a different debug format"),
 	     what, desc);
-    
+
   if (what == 's' || what == 'n')
     {
       if (*input_line_pointer != ',')
Index: symbols.c
===================================================================
RCS file: /cvs/src/src/gas/symbols.c,v
retrieving revision 1.33
diff -u -r1.33 symbols.c
--- symbols.c	3 May 2002 02:25:33 -0000	1.33
+++ symbols.c	18 May 2002 12:50:40 -0000
@@ -2398,7 +2398,7 @@
       segT s = S_GET_SEGMENT (sym);
 
       if (s != undefined_section
-          && s != expr_section)
+	  && s != expr_section)
 	fprintf (file, " %lx", (long) S_GET_VALUE (sym));
     }
   else if (indent_level < max_indent_level


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]