This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] gas/config/*.c: Fix comments.
- To: binutils at sourceware dot cygnus dot com
- Subject: [patch] gas/config/*.c: Fix comments.
- From: Kazu Hirata <kazu at hxi dot com>
Hi,
Attached is a patch to fix comments in gas/config/*.c. They are mostly
case changes. The one in tc-z8k.c was actually a bit wrong.
Thanks,
Kazu Hirata
2000-07-06 Kazu Hirata <kazu@hxi.com>
* config/obj-vms.c: Fix comments.
* config/tc-a29k.c: Likewise.
* config/tc-alpha.c: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-h8500.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-m68hc11.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-ppc.c: Likewise.
* config/tc-z8k.c: Likewise.
============================================================
Index: gas/config/obj-vms.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-vms.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 obj-vms.c
--- obj-vms.c 1999/05/03 07:28:42 1.1.1.1
+++ obj-vms.c 2000/07/07 04:01:40
@@ -2046,7 +2046,7 @@
str1++;
}
if (*str1 == ':' && *pnt2 == ':')
- return; /* they are the same! lets skip this one */
+ return; /* They are the same! Let's skip this one. */
} /* for */
pnt++; /* skip p in case no register */
} /* if */
Index: gas/config/tc-a29k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-a29k.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 tc-a29k.c
--- tc-a29k.c 1999/05/03 07:28:42 1.1.1.1
+++ tc-a29k.c 2000/07/07 04:01:41
@@ -710,8 +710,8 @@
but I'm not sure.
Turn a string in input_line_pointer into a floating point constant
- of type type, and store the appropriate bytes in *litP. The number
- of LITTLENUMS emitted is stored in *sizeP . An error message is
+ of type TYPE, and store the appropriate bytes in *LITP. The number
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
/* Equal to MAX_PRECISION in atof-ieee.c */
Index: gas/config/tc-alpha.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-alpha.c,v
retrieving revision 1.10
diff -u -r1.10 tc-alpha.c
--- tc-alpha.c 2000/06/08 18:34:06 1.10
+++ tc-alpha.c 2000/07/07 04:01:43
@@ -971,8 +971,8 @@
}
/* Turn a string in input_line_pointer into a floating point constant
- of type type, and store the appropriate bytes in *litP. The number
- of LITTLENUMS emitted is stored in *sizeP. An error message is
+ of type TYPE, and store the appropriate bytes in *LITP. The number
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
/* Equal to MAX_PRECISION in atof-ieee.c */
Index: gas/config/tc-h8300.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-h8300.c,v
retrieving revision 1.7
diff -u -r1.7 tc-h8300.c
--- tc-h8300.c 2000/06/25 16:49:47 1.7
+++ tc-h8300.c 2000/07/07 04:01:44
@@ -19,10 +19,7 @@
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-/*
- Written By Steve Chamberlain
- sac@cygnus.com
- */
+/* Written By Steve Chamberlain <sac@cygnus.com>. */
#include <stdio.h>
#include "as.h"
@@ -193,8 +190,9 @@
#const
ccr
*/
+
+/* Try to parse a reg name. Return the number of chars consumed. */
-/* Try and parse a reg name, returns number of chars consumed. */
static int
parse_reg (src, mode, reg, direction)
char *src;
@@ -1329,8 +1327,9 @@
/* Turn a string in input_line_pointer into a floating point constant
of type TYPE, and store the appropriate bytes in *LITP. The number
- of LITTLENUMS emitted is stored in *SIZEP . An error message is
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
+
char *
md_atof (type, litP, sizeP)
char type;
Index: gas/config/tc-h8500.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-h8500.c,v
retrieving revision 1.4
diff -u -r1.4 tc-h8500.c
--- tc-h8500.c 2000/06/24 11:51:53 1.4
+++ tc-h8500.c 2000/07/07 04:01:45
@@ -180,7 +180,8 @@
h8500_operand_info;
-/* try and parse a reg name, returns number of chars consumed */
+/* Try to parse a reg name. Return the number of chars consumed. */
+
static int
parse_reg (src, mode, reg)
char *src;
@@ -1174,10 +1175,11 @@
/* Equal to MAX_PRECISION in atof-ieee.c */
#define MAX_LITTLENUMS 6
-/* Turn a string in input_line_pointer into a floating point constant of type
- type, and store the appropriate bytes in *LITP. The number of LITTLENUMS
- emitted is stored in *SIZEP . An error message is returned, or NULL on OK.
- */
+/* Turn a string in input_line_pointer into a floating point constant
+ of type type, and store the appropriate bytes in *LITP. The number
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
+ returned, or NULL on OK. */
+
char *
md_atof (type, litP, sizeP)
char type;
Index: gas/config/tc-i370.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i370.c,v
retrieving revision 1.1
diff -u -r1.1 tc-i370.c
--- tc-i370.c 2000/02/23 13:52:21 1.1
+++ tc-i370.c 2000/07/07 04:01:46
@@ -2585,8 +2585,8 @@
}
/* Turn a string in input_line_pointer into a floating point constant
- of type type, and store the appropriate bytes in *litp. The number
- of LITTLENUMS emitted is stored in *sizep . An error message is
+ of type TYPE, and store the appropriate bytes in *LITP. The number
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
char *
Index: gas/config/tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.8
diff -u -r1.8 tc-ia64.c
--- tc-ia64.c 2000/06/23 03:31:06 1.8
+++ tc-ia64.c 2000/07/07 04:01:51
@@ -9138,8 +9138,8 @@
}
/* Turn a string in input_line_pointer into a floating point constant
- of type type, and store the appropriate bytes in *lit. The number
- of LITTLENUMS emitted is stored in *size. An error message is
+ of type TYPE, and store the appropriate bytes in *LIT. The number
+ of LITTLENUMS emitted is stored in *SIZE. An error message is
returned, or NULL on OK. */
#define MAX_LITTLENUMS 5
Index: gas/config/tc-m68hc11.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68hc11.c,v
retrieving revision 1.1
diff -u -r1.1 tc-m68hc11.c
--- tc-m68hc11.c 2000/06/19 01:22:40 1.1
+++ tc-m68hc11.c 2000/07/07 04:01:52
@@ -440,8 +440,8 @@
#define MAX_LITTLENUMS 6
/* Turn a string in input_line_pointer into a floating point constant
- of type type, and store the appropriate bytes in *litP. The number
- of LITTLENUMS emitted is stored in *sizeP . An error message is
+ of type TYPE, and store the appropriate bytes in *LITP. The number
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
char *
Index: gas/config/tc-m68k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-m68k.c,v
retrieving revision 1.7
diff -u -r1.7 tc-m68k.c
--- tc-m68k.c 2000/06/09 00:00:03 1.7
+++ tc-m68k.c 2000/07/07 04:01:55
@@ -4079,8 +4079,8 @@
#define MAX_LITTLENUMS 6
/* Turn a string in input_line_pointer into a floating point constant
- of type type, and store the appropriate bytes in *litP. The number
- of LITTLENUMS emitted is stored in *sizeP . An error message is
+ of type TYPE, and store the appropriate bytes in *LITP. The number
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
char *
Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.20
diff -u -r1.20 tc-mips.c
--- tc-mips.c 2000/07/02 01:18:49 1.20
+++ tc-mips.c 2000/07/07 04:02:01
@@ -8742,8 +8742,8 @@
}
/* Turn a string in input_line_pointer into a floating point constant
- of type type, and store the appropriate bytes in *litP. The number
- of LITTLENUMS emitted is stored in *sizeP . An error message is
+ of type TYPE, and store the appropriate bytes in *LITP. The number
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
char *
Index: gas/config/tc-ns32k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ns32k.c,v
retrieving revision 1.4
diff -u -r1.4 tc-ns32k.c
--- tc-ns32k.c 2000/06/09 00:00:03 1.4
+++ tc-ns32k.c 2000/07/07 04:02:03
@@ -1561,9 +1561,10 @@
#define MAX_LITTLENUMS 6
/* Turn the string pointed to by litP into a floating point constant
- of type type, and emit the appropriate bytes. The number of
- LITTLENUMS emitted is stored in *sizeP . An error message is
+ of type TYPE, and emit the appropriate bytes. The number of
+ LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
+
char *
md_atof (type, litP, sizeP)
char type;
Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.12
diff -u -r1.12 tc-ppc.c
--- tc-ppc.c 2000/06/19 00:59:43 1.12
+++ tc-ppc.c 2000/07/07 04:02:05
@@ -4480,8 +4480,8 @@
#endif /* OBJ_XCOFF */
/* Turn a string in input_line_pointer into a floating point constant
- of type type, and store the appropriate bytes in *litp. The number
- of LITTLENUMS emitted is stored in *sizep . An error message is
+ of type TYPE, and store the appropriate bytes in *LITP. The number
+ of LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
char *
Index: gas/config/tc-z8k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-z8k.c,v
retrieving revision 1.5
diff -u -r1.5 tc-z8k.c
--- tc-z8k.c 2000/06/25 17:59:21 1.5
+++ tc-z8k.c 2000/07/07 04:02:07
@@ -253,7 +253,9 @@
*/
-/* try and parse a reg name, returns number of chars consumed */
+/* Try to parse a reg name. Return a pointer to the first character
+ in SRC after the reg name. */
+
char *
parse_reg (src, mode, reg)
char *src;
============================================================