[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.10-36-g4c6a1dc
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.10-36-g4c6a1dc |
Date: |
Mon, 02 Jan 2012 10:16:46 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via 4c6a1dcd647b208a59e3b23ad0aaf0a25397f6ad (commit)
from 75bc6fb14dea81ade7d761448610c2280d17d1d6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=4c6a1dcd647b208a59e3b23ad0aaf0a25397f6ad
commit 4c6a1dcd647b208a59e3b23ad0aaf0a25397f6ad
Author: Paul Eggert <address@hidden>
Date: Mon Jan 2 02:16:14 2012 -0800
grep: prefer fgets to printf, _ to gettext
* lib/colorize.h (print_end_colorize):
* lib/ms/colorize-impl.c (print_end_colorize):
Use fputs instead of printf.
* src/main.c (usage): Likewise. Use _ instead of gettext.
diff --git a/lib/colorize.h b/lib/colorize.h
index 7890fbc..104f7a0 100644
--- a/lib/colorize.h
+++ b/lib/colorize.h
@@ -33,5 +33,5 @@ print_start_colorize (char const *sgr_start, char const
*sgr_seq)
static inline void
print_end_colorize (char const *sgr_end)
{
- printf ("%s", sgr_end);
+ fputs (sgr_end, stdout);
}
diff --git a/lib/ms/colorize-impl.c b/lib/ms/colorize-impl.c
index 3c8c73a..d9d9b95 100644
--- a/lib/ms/colorize-impl.c
+++ b/lib/ms/colorize-impl.c
@@ -212,5 +212,5 @@ print_end_colorize (char const *sgr_end)
w32_clreol ();
}
else
- printf ("%s", sgr_end);
+ fputs (sgr_end, stdout);
}
diff --git a/src/main.c b/src/main.c
index 3376fa4..a1d590a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1426,7 +1426,7 @@ usage (int status)
printf (_("Usage: %s [OPTION]... PATTERN [FILE]...\n"), program_name);
printf (_("\
Search for PATTERN in each FILE or standard input.\n"));
- printf ("%s", gettext (before_options));
+ fputs (_(before_options), stdout);
printf (_("\
Example: %s -i 'hello world' menu.h main.c\n\
\n\
@@ -1507,7 +1507,7 @@ Context control:\n\
-u, --unix-byte-offsets report offsets as if CRs were not there\n\
(MSDOS/Windows)\n\
\n"));
- printf ("%s", _(after_options));
+ fputs (_(after_options), stdout);
printf (_("\
With no FILE, or when FILE is -, read standard input. If less than two
FILEs\n\
are given, assume -h. Exit status is 0 if any line was selected, 1
otherwise;\n\
-----------------------------------------------------------------------
Summary of changes:
lib/colorize.h | 2 +-
lib/ms/colorize-impl.c | 2 +-
src/main.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.10-36-g4c6a1dc,
Paul Eggert <=