aboutsummaryrefslogtreecommitdiffstats
path: root/helpers
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-10-23 12:14:15 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-10-23 12:14:15 +0300
commite56b6eabe183ed5fa1352ef0f5f49fb6d894578c (patch)
tree881ac0a12d947a50e41d2e3e80a0f350aec1d2d3 /helpers
parent2c6c33741890ab08659b7c7ef5b8bc91d487f300 (diff)
parent3055361c2a022c9ac9ae42ac88c00e3055498a0d (diff)
downloadegawk-e56b6eabe183ed5fa1352ef0f5f49fb6d894578c.tar.gz
egawk-e56b6eabe183ed5fa1352ef0f5f49fb6d894578c.tar.bz2
egawk-e56b6eabe183ed5fa1352ef0f5f49fb6d894578c.zip
Merge branch 'master' into feature/nocopy
Diffstat (limited to 'helpers')
-rw-r--r--helpers/ChangeLog4
-rw-r--r--helpers/testdfa.c22
-rw-r--r--helpers/testnet.c8
3 files changed, 19 insertions, 15 deletions
diff --git a/helpers/ChangeLog b/helpers/ChangeLog
index 47062233..d29071e3 100644
--- a/helpers/ChangeLog
+++ b/helpers/ChangeLog
@@ -1,3 +1,7 @@
+2016-10-23 Arnold D. Robbins <arnold@skeeve.com>
+
+ * General: Remove trailing whitespace from all relevant files.
+
2016-09-08 Paul Eggert <eggert@cs.ucla.edu>
* testdfa.c: Adjust to DFA API changes.
diff --git a/helpers/testdfa.c b/helpers/testdfa.c
index fa7715f9..72b97907 100644
--- a/helpers/testdfa.c
+++ b/helpers/testdfa.c
@@ -2,22 +2,22 @@
* testdfa.c --- abstracted from gawk.
*/
-/*
+/*
* Copyright (C) 1986, 1988, 1989, 1991-2013 the Free Software Foundation, Inc.
- *
+ *
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
- *
+ *
* GAWK is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* GAWK is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
@@ -395,7 +395,7 @@ setup_pattern(const char *pattern, size_t *len)
/*
* Build a copy of the string (in buf) with the
* escaped characters translated, and generate the regex
- * from that.
+ * from that.
*/
buf = (char *) malloc(*len + 1);
if (buf == NULL) {
@@ -499,16 +499,16 @@ setup_pattern(const char *pattern, size_t *len)
*
* Parse a C escape sequence. STRING_PTR points to a variable containing a
* pointer to the string to parse. That pointer is updated past the
- * characters we use. The value of the escape sequence is returned.
+ * characters we use. The value of the escape sequence is returned.
*
* A negative value means the sequence \ newline was seen, which is supposed to
- * be equivalent to nothing at all.
+ * be equivalent to nothing at all.
*
* If \ is followed by a null character, we return a negative value and leave
- * the string pointer pointing at the null character.
+ * the string pointer pointing at the null character.
*
* If \ is followed by 000, we return 0 and leave the string pointer after the
- * zeros. A value of 0 does not mean end of string.
+ * zeros. A value of 0 does not mean end of string.
*
* POSIX doesn't allow \x.
*/
@@ -597,7 +597,7 @@ parse_escape(const char **string_ptr)
#ifdef C
#undef C
#endif
-#define C(c) ((char)c)
+#define C(c) ((char)c)
/*
* This table is used by the regexp routines to do case independent
* matching. Basically, every ascii character maps to itself, except
diff --git a/helpers/testnet.c b/helpers/testnet.c
index feda38b4..cbe2d97e 100644
--- a/helpers/testnet.c
+++ b/helpers/testnet.c
@@ -220,9 +220,9 @@ devopen(const char *name, const char *mode)
localpname = cp;
while (*cp != '/' && *cp != '\0')
cp++;
- /*
+ /*
* Require a port, let them explicitly put 0 if
- * they don't care.
+ * they don't care.
*/
if (*cp != '/' || cp == localpname) {
fprintf(stderr, _("special file name `%s' is incomplete"), name);
@@ -241,7 +241,7 @@ devopen(const char *name, const char *mode)
cp++;
hostname = cp;
while (*cp != '/' && *cp != '\0')
- cp++;
+ cp++;
if (*cp != '/' || cp == hostname) {
*localpnamelastcharp = '/';
fprintf(stderr, _("must supply a remote hostname to `/inet'"));
@@ -278,7 +278,7 @@ devopen(const char *name, const char *mode)
char *cp, *end;
unsigned long count = 0;
char *ms2;
-
+
first_time = false;
if ((cp = getenv("GAWK_SOCK_RETRIES")) != NULL) {
count = strtoul(cp, & end, 10);