From: Nick Clifton Date: Thu, 3 Jan 2002 21:32:36 +0000 (+0000) Subject: Remove use of ngettext() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=741247bffa06dd2bb6738dd54fed98221347b418;p=binutils-gdb.git Remove use of ngettext() --- diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 81b072dc70b..f82e8783989 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,8 @@ +2002-01-03 Nick Clifton + + * gmon_io.c (gmon_out_read): Remove use of ngettext(). It is not + present under AIX. + 2002-01-02 Nick Clifton * cg_print.c (print_header): Fix spelling typo. diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c index 207e3d0aca2..b15d64297da 100644 --- a/gprof/gmon_io.c +++ b/gprof/gmon_io.c @@ -447,12 +447,15 @@ DEFUN (gmon_out_read, (filename), const char *filename) { printf (_("File `%s' (version %d) contains:\n"), filename, gmon_file_version); - printf (ngettext ("\t%d histogram record\n", - "\t%d histogram records\n", nhist), nhist); - printf (ngettext ("\t%d call-graph record\n", - "\t%d call-graph records\n", narcs), narcs); - printf (ngettext ("\t%d basic-block count record\n", - "\t%d basic-block count records\n", nbbs), nbbs); + printf (nhist == 1 ? + _("\t%d histogram record\n") : + _("\t%d histogram records\n"), nhist); + printf (narcs == 1 ? + _("\t%d call-graph record\n") : + _("\t%d call-graph records\n"), narcs); + printf (nbbs == 1 ? + _("\t%d basic-block count record\n") : + _("\t%d basic-block count records\n"), nbbs); first_output = FALSE; } }