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/basic_blocks.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/basic_blocks.c')
-rw-r--r-- | gprof/basic_blocks.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gprof/basic_blocks.c b/gprof/basic_blocks.c index 7420174..00525dd 100644 --- a/gprof/basic_blocks.c +++ b/gprof/basic_blocks.c @@ -131,7 +131,7 @@ DEFUN (bb_read_rec, (ifp, filename), FILE * ifp AND const char *filename) if (fread (&nblocks, sizeof (nblocks), 1, ifp) != 1) { - fprintf (stderr, "%s: %s: unexpected end of file\n", whoami, filename); + fprintf (stderr, _("%s: %s: unexpected end of file\n"), whoami, filename); done (1); } @@ -211,7 +211,7 @@ DEFUN (bb_read_rec, (ifp, filename), FILE * ifp AND const char *filename) { user_warned = TRUE; fprintf (stderr, - "%s: warning: ignoring basic-block exec counts (use -l or --line)\n", + _("%s: warning: ignoring basic-block exec counts (use -l or --line)\n"), whoami); } } @@ -319,16 +319,16 @@ DEFUN_VOID (print_exec_counts) { if (sym->ncalls > 0 || ! ignore_zeros) { - printf ("%s:%d: (%s:0x%lx) %d executions\n", - sym->file ? sym->file->name : "<unknown>", sym->line_num, + printf (_("%s:%d: (%s:0x%lx) %d executions\n"), + sym->file ? sym->file->name : _("<unknown>"), sym->line_num, sym->name, sym->addr, sym->ncalls); } for (j = 0; j < NBBS && sym->bb_addr[j]; j ++) { if (sym->bb_calls[j] > 0 || ! ignore_zeros) { - printf ("%s:%d: (%s:0x%lx) %d executions\n", - sym->file ? sym->file->name : "<unknown>", sym->line_num, + printf (_("%s:%d: (%s:0x%lx) %d executions\n"), + sym->file ? sym->file->name : _("<unknown>"), sym->line_num, sym->name, sym->bb_addr[j], sym->bb_calls[j]); } } @@ -581,7 +581,7 @@ DEFUN_VOID (print_annotated_source) if (bb_table_length > 0) { - fprintf (ofp, "\n\nTop %d Lines:\n\n Line Count\n\n", + fprintf (ofp, _("\n\nTop %d Lines:\n\n Line Count\n\n"), bb_table_length); /* abuse line arrays---it's not needed anymore: */ @@ -605,16 +605,16 @@ DEFUN_VOID (print_annotated_source) free (sf->line); sf->line = 0; - fprintf (ofp, "\nExecution Summary:\n\n"); - fprintf (ofp, "%9ld Executable lines in this file\n", + fprintf (ofp, _("\nExecution Summary:\n\n")); + fprintf (ofp, _("%9ld Executable lines in this file\n"), num_executable_lines); - fprintf (ofp, "%9ld Lines executed\n", num_lines_executed); - fprintf (ofp, "%9.2f Percent of the file executed\n", + fprintf (ofp, _("%9ld Lines executed\n"), num_lines_executed); + fprintf (ofp, _("%9.2f Percent of the file executed\n"), num_executable_lines ? 100.0 * num_lines_executed / (double) num_executable_lines : 100.0); - fprintf (ofp, "\n%9d Total number of line executions\n", sf->ncalls); - fprintf (ofp, "%9.2f Average executions per line\n", + fprintf (ofp, _("\n%9d Total number of line executions\n"), sf->ncalls); + fprintf (ofp, _("%9.2f Average executions per line\n"), num_executable_lines ? sf->ncalls / (double) num_executable_lines : 0.0); |