diff options
author | Tom Tromey <tromey@redhat.com> | 1998-04-22 07:33:42 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1998-04-22 07:33:42 +0000 |
commit | 16a02269fc8d2cf0f25b40d16a70087bb315a653 (patch) | |
tree | ec21066ad4af150303e3fe7bbbd4b32399449c96 /gprof/gmon_io.c | |
parent | 1a9136e2253b2464a36cb9deabfc5da70900f036 (diff) | |
download | gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.zip gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.tar.gz gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.tar.bz2 |
* gprof.h: Added includes and defines for gettext.
* configure.in (ALL_LINGUAS): New macro.
Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* gprof.c (main): Call setlocale, bindtextdomain, textdomain.
* Makefile.am (SUBDIRS): New macro.
(INCLUDES): Look in intl dirs for headers. Define LOCALEDIR.
(gprof_DEPENDENCIES): Added INTLDEPS.
(gprof_LDADD): Added INTLLLIBS.
(POTFILES): New macro.
(po/POTFILES.in): New target.
* Many files: Wrap user-visible strings with gettext invocation.
Diffstat (limited to 'gprof/gmon_io.c')
-rw-r--r-- | gprof/gmon_io.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c index d66b969..9524c8b 100644 --- a/gprof/gmon_io.c +++ b/gprof/gmon_io.c @@ -30,7 +30,7 @@ DEFUN (get_vma, (abfd, addr), bfd * abfd AND bfd_byte * addr) case 8: return bfd_get_64 (abfd, addr); default: - fprintf (stderr, "%s: bfd_vma has unexpected size of %ld bytes\n", + fprintf (stderr, _("%s: bfd_vma has unexpected size of %ld bytes\n"), whoami, (long) sizeof (char*)); done (1); } @@ -52,7 +52,7 @@ DEFUN (put_vma, (abfd, val, addr), bfd * abfd AND bfd_vma val AND bfd_byte * add bfd_put_64 (abfd, val, addr); break; default: - fprintf (stderr, "%s: bfd_vma has unexpected size of %ld bytes\n", + fprintf (stderr, _("%s: bfd_vma has unexpected size of %ld bytes\n"), whoami, (long) sizeof (char*)); done (1); } @@ -84,7 +84,7 @@ DEFUN (gmon_out_read, (filename), const char *filename) } if (fread (&ghdr, sizeof (struct gmon_hdr), 1, ifp) != 1) { - fprintf (stderr, "%s: file too short to be a gmon file\n", + fprintf (stderr, _("%s: file too short to be a gmon file\n"), filename); done (1); } @@ -94,7 +94,7 @@ DEFUN (gmon_out_read, (filename), const char *filename) { if (file_format == FF_MAGIC && strncmp (&ghdr.cookie[0], GMON_MAGIC, 4)) { - fprintf (stderr, "%s: file `%s' has bad magic cookie\n", + fprintf (stderr, _("%s: file `%s' has bad magic cookie\n"), whoami, filename); done (1); } @@ -105,7 +105,7 @@ DEFUN (gmon_out_read, (filename), const char *filename) if (gmon_file_version != GMON_VERSION && gmon_file_version != 0) { fprintf (stderr, - "%s: file `%s' has unsupported version %d\n", + _("%s: file `%s' has unsupported version %d\n"), whoami, filename, gmon_file_version); done (1); } @@ -135,7 +135,7 @@ DEFUN (gmon_out_read, (filename), const char *filename) default: fprintf (stderr, - "%s: %s: found bad tag %d (file corrupted?)\n", + _("%s: %s: found bad tag %d (file corrupted?)\n"), whoami, filename, tag); done (1); } @@ -176,7 +176,7 @@ DEFUN (gmon_out_read, (filename), const char *filename) if (fread (&raw, 1, sizeof (struct raw_phdr), ifp) != sizeof (struct raw_phdr)) { - fprintf (stderr, "%s: file too short to be a gmon file\n", + fprintf (stderr, _("%s: file too short to be a gmon file\n"), filename); done (1); } @@ -194,7 +194,7 @@ DEFUN (gmon_out_read, (filename), const char *filename) else if (hz != profrate) { fprintf (stderr, - "%s: profiling rate incompatible with first gmon file\n", + _("%s: profiling rate incompatible with first gmon file\n"), filename); done (1); } @@ -204,7 +204,7 @@ DEFUN (gmon_out_read, (filename), const char *filename) if (s_highpc && (tmp.low_pc != h.low_pc || tmp.high_pc != h.high_pc || tmp.ncnt != h.ncnt)) { - fprintf (stderr, "%s: incompatible with first gmon file\n", + fprintf (stderr, _("%s: incompatible with first gmon file\n"), filename); done (1); } @@ -242,7 +242,7 @@ DEFUN (gmon_out_read, (filename), const char *filename) if (fread (raw_bin_count, sizeof (raw_bin_count), 1, ifp) != 1) { fprintf (stderr, - "%s: unexpected EOF after reading %d/%d bins\n", + _("%s: unexpected EOF after reading %d/%d bins\n"), whoami, --i, hist_num_bins); done (1); } @@ -277,26 +277,26 @@ DEFUN (gmon_out_read, (filename), const char *filename) if (hz == HZ_WRONG) { hz = 1; - fprintf (stderr, "time is in ticks, not seconds\n"); + fprintf (stderr, _("time is in ticks, not seconds\n")); } } } else { - fprintf (stderr, "%s: don't know how to deal with file format %d\n", + fprintf (stderr, _("%s: don't know how to deal with file format %d\n"), whoami, file_format); done (1); } if (output_style & STYLE_GMON_INFO) { - printf ("File `%s' (version %d) contains:\n", + printf (_("File `%s' (version %d) contains:\n"), filename, gmon_file_version); - printf ("\t%d histogram record%s\n", + printf (_("\t%d histogram record%s\n"), nhist, nhist == 1 ? "" : "s"); - printf ("\t%d call-graph record%s\n", + printf (_("\t%d call-graph record%s\n"), narcs, narcs == 1 ? "" : "s"); - printf ("\t%d basic-block count record%s\n", + printf (_("\t%d basic-block count record%s\n"), nbbs, nbbs == 1 ? "" : "s"); first_output = FALSE; } @@ -407,7 +407,7 @@ DEFUN (gmon_out_write, (filename), const char *filename) } else { - fprintf (stderr, "%s: don't know how to deal with file format %d\n", + fprintf (stderr, _("%s: don't know how to deal with file format %d\n"), whoami, file_format); done (1); } |