This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gas/rl78]: constify rl78_error()
- From: DJ Delorie <dj at redhat dot com>
- To: binutils at sourceware dot org
- Date: Mon, 21 Nov 2011 12:12:04 -0500
- Subject: [gas/rl78]: constify rl78_error()
Minor patch, committed...
2011-11-21 DJ Delorie <dj@redhat.com>
* config/rl78-defs.h (rl78_error): Add "const".
* config/rl78-parse.y (rl78_error): Likewise.
Index: config/rl78-defs.h
===================================================================
RCS file: /cvs/src/src/gas/config/rl78-defs.h,v
retrieving revision 1.1
diff -p -U5 -r1.1 rl78-defs.h
--- config/rl78-defs.h 2 Nov 2011 03:09:05 -0000 1.1
+++ config/rl78-defs.h 21 Nov 2011 17:06:28 -0000
@@ -24,11 +24,11 @@
/* Third operand to rl78_op. */
#define RL78REL_DATA 0
#define RL78REL_PCREL 1
-extern int rl78_error (char *);
+extern int rl78_error (const char *);
extern void rl78_lex_init (char *, char *);
extern void rl78_prefix (int);
extern int rl78_has_prefix (void);
extern void rl78_base1 (int);
extern void rl78_base2 (int, int);
Index: config/rl78-parse.y
===================================================================
RCS file: /cvs/src/src/gas/config/rl78-parse.y,v
retrieving revision 1.1
diff -p -U5 -r1.1 rl78-parse.y
--- config/rl78-parse.y 2 Nov 2011 03:09:05 -0000 1.1
+++ config/rl78-parse.y 21 Nov 2011 17:06:28 -0000
@@ -1428,11 +1428,11 @@ rl78_lex (void)
rl78_last_token = EXPR;
return EXPR;
}
int
-rl78_error (char * str)
+rl78_error (const char * str)
{
int len;
len = rl78_last_exp_start - rl78_init_start;