* aclocal.m4: Rebuilt.
* config.in: Rebuilt.
* configure: Rebuilt.
+ * alpha-opc.c: Internationalised.
+ * arc-dis.c: Internationalised.
+ * arc-opc.c: Internationalised.
* arm-dis.c: Internationalised.
+ * cgen-asm.c: Internationalised.
+ * cgen-asm.in: Internationalised.
+ * cgen-dis.in: Internationalised.
+ * d30v-dis.c: Internationalised.
+ * dis-buf.c: Internationalised.
+ * dvp-dis.c: Internationalised.
+ * dvp-opc.c: Internationalised.
+ * dvp-opc.c: Internationalised.
+ * h8300-dis.c: Internationalised.
+ * h8500-dis.c: Internationalised.
+ * i386-dis.c: Internationalised.
+ * m10200-dis.c: Internationalised.
+ * m10300-dis.c: Internationalised.
+ * m68k-dis.c: Internationalised.
+ * m88k-dis.c: Internationalised.
+ * mips-dis.c: Internationalised.
+ * ns32k-dis.c: Internationalised.
+ * opintl.h: Internationalised.
+ * ppc-opc.c: Internationalised.
+ * sparc-dis.c: Internationalised.
* v850-dis.c: Internationalised.
* v850-opc.c: Internationalised.
#include "bfd.h"
#include "symcat.h"
#include "opcode/cgen.h"
+#include "opintl.h"
/* Operand parsing callback. */
const char * (*cgen_parse_operand_fn)
++p;
if (p - start >= (int) sizeof (buf))
- return "unrecognized keyword/register name";
+ return _("unrecognized keyword/register name");
memcpy (buf, start, p - start);
buf[p - start] = 0;
{
if (value < min || value > max)
{
- const char *err =
- "operand out of range (%ld not between %ld and %ld)";
static char buf[100];
- sprintf (buf, err, value, min, max);
+ /* xgettext:c-format */
+ sprintf (buf, _("operand out of range (%ld not between %ld and %ld)"),
+ value, min, max);
return buf;
}
{
if (value < min || value > max)
{
- const char *err =
- "operand out of range (%lu not between %lu and %lu)";
static char buf[100];
- sprintf (buf, err, value, min, max);
+ sprintf (buf, _("operand out of range (%lu not between %lu and %lu)"),
+ value, min, max);
return buf;
}
#include "bfd.h"
#include "symcat.h"
#include "@arch@-opc.h"
+#include "opintl.h"
/* ??? The layout of this stuff is still work in progress.
For speed in assembly/disassembly, we use inline functions. That of course
unsigned long max = (1 << length) - 1;
if ((unsigned long) value > max)
{
- const char *err = "operand out of range (%lu not between 0 and %lu)";
-
- sprintf (buf, err, value, max);
+ sprintf (buf, _("operand out of range (%lu not between 0 and %lu)"),
+ value, max);
return buf;
}
}
long min = - (1 << (length - 1));
long max = (1 << (length - 1)) - 1;
if (value < min || value > max)
- {
- const char *err = "operand out of range (%ld not between %ld and %ld)";
-
- sprintf (buf, err, value, min, max);
- return buf;
- }
+ return sprintf
+ (buf, _("operand out of range (%ld not between %ld and %ld)"),
+ value, min, max);
}
#if 0 /*def CGEN_INT_INSN*/
p = CGEN_INSN_MNEMONIC (insn);
while (* p && * p == * str)
++ p, ++ str;
+
if (* p || (* str && !isspace (* str)))
- return "unrecognized instruction";
+ return _("unrecognized instruction");
CGEN_INIT_PARSE ();
cgen_init_parse_operand ();
/* Syntax char didn't match. Can't be this insn. */
/* FIXME: would like to return something like
"expected char `c'" */
- return "syntax error";
+ return _("syntax error");
}
continue;
}
++ str;
if (* str != '\0')
- return "junk at end of line"; /* FIXME: would like to include `str' */
+ return _("junk at end of line"); /* FIXME: would like to include `str' */
return NULL;
}
Need to track why it failed and pick the right one. */
{
static char errbuf[100];
- sprintf (errbuf, "bad instruction `%.50s%s'",
- start, strlen (start) > 50 ? "..." : "");
+ /* xgettext:c-format */
+ if (strlen (start) > 50)
+ sprintf (errbuf, _("bad instruction `%.50s...'"), start);
+ else
+ sprintf (errbuf, _("bad instruction `%.50s'"), start);
+
*errmsg = errbuf;
return NULL;
}
02111-1307, USA. */
#ifdef ENABLE_NLS
-#include <libintl.h>
-#define _(String) gettext (String)
-#ifdef gettext_noop
-#define N_(String) gettext_noop (String)
-#else
-#define N_(String) (String)
-#endif
+# include <libintl.h>
+# define _(String) gettext (String)
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
#else
/* Stubs that do something close enough. */
-#define textdomain(String) (String)
-#define gettext(String) (String)
-#define dgettext(Domain,Message) (Message)
-#define dcgettext(Domain,Message,Type) (Message)
-#define bindtextdomain(Domain,Directory) (Domain)
-#define _(String) (String)
-#define N_(String) (String)
+# define textdomain(String) (String)
+# define gettext(String) (String)
+# define dgettext(Domain,Message) (Message)
+# define dcgettext(Domain,Message,Type) (Message)
+# define bindtextdomain(Domain,Directory) (Domain)
+# define _(String) (String)
+# define N_(String) (String)
/* In this case we don't care about the value. */
-#ifndef LC_MESSAGES
-#define LC_MESSAGES 0
-#endif
+# ifndef LC_MESSAGES
+# define LC_MESSAGES 0
+# endif
#endif
a29k-dis.c
-acconfig.h
alpha-dis.c
alpha-opc.c
arc-dis.c
mips-opc.c
mips16-opc.c
ns32k-dis.c
-opintl.h
ppc-dis.c
ppc-opc.c
sh-dis.c
sh-opc.h
sparc-dis.c
sparc-opc.c
-sysdep.h
tic30-dis.c
tic80-dis.c
tic80-opc.c