Sorry if the commit message does not comply to the gnu code format. Still working on that...
From 836034daf1e2e05393cbc9d03229541c323f5ea7 Mon Sep 17 00:00:00 2001
Date: Sun, 15 Jan 2017 10:53:47 +0200
Subject: [PATCH] Fixing gramatical/syntacticall errors (capitalization, full
stops, etc.)
---
sed/sed.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/sed/sed.c b/sed/sed.c
index 15faff0..34c830b 100644
--- a/sed/sed.c
+++ b/sed/sed.c
@@ -39,28 +39,28 @@
int extended_regexp_flags = 0;
-/* one-byte buffer delimiter */
+/* one-byte buffer delimiter. */
char buffer_delimiter = '\n';
/* If set, fflush(stdout) on every line output. */
bool unbuffered = false;
-/* If set, don't write out the line unless explicitly told to */
+/* If set, don't write out the line unless explicitly told to. */
bool no_default_output = false;
/* If set, reset line counts on every new file. */
bool separate_files = false;
-/* If set, follow symlinks when processing in place */
+/* If set, follow symlinks when processing in place. */
bool follow_symlinks = false;
-/* If set, opearate in 'sandbox' mode */
+/* If set, opearate in 'sandbox' mode. */
bool sandbox = false;
-/* How do we edit files in-place? (we don't if NULL) */
+/* How do we edit files in-place? (we don't if NULL). */
char *in_place_extension = NULL;
-/* The mode to use to read/write files, either "r"/"w" or "rb"/"wb". */
+/* The mode to use to read/write files, either "r"/"w" or "rb"/"wb". */
char const *read_mode = "r";
char const *write_mode = "w";
@@ -76,13 +76,13 @@ static struct vector *the_program = NULL;
/* When we've created a temporary for an in-place update,
we may have to exit before the rename. This is the name
of the temporary that we'll have to unlink via an atexit-
- registered cleanup function. */
+ registered cleanup function. */
static char const *G_file_to_unlink;
struct localeinfo localeinfo;
/* When exiting between temporary file creation and the rename
- associated with a sed -i invocation, remove that file. */
+ associated with a sed -i invocation, remove that file. */
static void
cleanup (void)
{
@@ -90,14 +90,14 @@ cleanup (void)
unlink (G_file_to_unlink);
}
-/* Note that FILE must be removed upon exit. */
+/* Note that FILE must be removed upon exit. */
void
register_cleanup_file (char const *file)
{
G_file_to_unlink = file;
}
-/* Clear the global file-to-unlink global. */
+/* Clear the global file-to-unlink global. */
void
cancel_cleanup (void)
{
#endif
/* Only print the bug report address for `sed --help', otherwise we'll
- get reports for other people's bugs. */
+ get reports for other people's bugs. */
if (!errmsg)
fprintf(out, _("E-mail bug reports to: <%s>.\n"), PACKAGE_BUGREPORT);
}
@@ -232,7 +232,7 @@ main (int argc, char **argv)
program_name = argv[0];
initialize_main (&argc, &argv);
#if HAVE_SETLOCALE
- /* Set locale according to user's wishes. */
+ /* Set locale according to user's wishes. */
setlocale (LC_ALL, "");
#endif
set_program_name (argv[0]);
@@ -240,12 +240,12 @@ main (int argc, char **argv)
init_localeinfo (&localeinfo);
/* Arrange to remove any un-renamed temporary file,
- upon premature exit. */
+ upon premature exit. */
atexit (cleanup);
#if ENABLE_NLS
- /* Tell program which translations to use and where to find. */
+ /* Tell the program which translations to use and where to find them. */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
#endif
@@ -258,7 +258,7 @@ main (int argc, char **argv)
/* If environment variable `COLS' is set, use its value for
the baseline setting of `lcmd_out_line_len'. The "-1"
is to avoid gratuitous auto-line-wrap on ttys.
- */
+ */
if (cols)
{
countT t = atoi(cols);
@@ -292,7 +292,7 @@ main (int argc, char **argv)
case 'i':
separate_files = true;
if (optarg == NULL)
- /* use no backups */
+ /* Use no backups. */
in_place_extension = ck_strdup ("*");
else if (strchr(optarg, '*') != NULL)
--