summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-10-19 03:39:33 +0000
committerJim Meyering <jim@meyering.net>1994-10-19 03:39:33 +0000
commit544baf5482a56229515f24806f35ab1a847f3504 (patch)
treec522a976b4153fe4225529d50bab5a186bf55eb8
parent6a76abbf9c911e179a4d6fbd38940077ad1a0f3a (diff)
downloadcoreutils-544baf5482a56229515f24806f35ab1a847f3504.tar.xz
merge with 1.9.1h
-rw-r--r--lib/regex.c10
-rw-r--r--old/textutils/ChangeLog13
-rw-r--r--src/cat.c9
-rw-r--r--src/cksum.c9
-rw-r--r--src/comm.c9
-rw-r--r--src/csplit.c9
-rw-r--r--src/cut.c9
-rw-r--r--src/expand.c9
-rw-r--r--src/fold.c9
-rw-r--r--src/head.c9
-rw-r--r--src/join.c9
-rw-r--r--src/nl.c9
-rw-r--r--src/od.c9
-rw-r--r--src/paste.c9
-rw-r--r--src/pr.c9
-rw-r--r--src/split.c9
-rw-r--r--src/sum.c9
-rw-r--r--src/tac.c9
-rw-r--r--src/tail.c9
-rw-r--r--src/tr.c9
-rw-r--r--src/unexpand.c9
-rw-r--r--src/uniq.c9
-rw-r--r--src/wc.c9
23 files changed, 16 insertions, 196 deletions
diff --git a/lib/regex.c b/lib/regex.c
index fd3c6a885..7598572fe 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -261,18 +261,14 @@ static int re_match_2_internal ();
/* These are the command codes that appear in compiled regular
expressions. Some opcodes are followed by argument bytes. A
command code can specify any interpretation whatsoever for its
- arguments. Zero bytes may appear in the compiled regular expression.
-
- The value of `exactn' is needed in search.c (search_buffer) in Emacs.
- So regex.h defines a symbol `RE_EXACTN_VALUE' to be 1; the value of
- `exactn' we use here must also be 1. */
+ arguments. Zero bytes may appear in the compiled regular expression. */
typedef enum
{
no_op = 0,
/* Followed by one byte giving n, then by n literal bytes. */
- exactn = 1,
+ exactn,
/* Matches any (more or less) character. */
anychar,
@@ -904,7 +900,7 @@ static const char *re_error_msg[] =
#define MATCH_MAY_ALLOCATE
/* The match routines may not allocate if (1) they would do it with malloc
- and (2) it's not safe for htem to use malloc. */
+ and (2) it's not safe for them to use malloc. */
#if (defined (C_ALLOCA) || defined (REGEX_MALLOC)) && (defined (emacs) || defined (REL_ALLOC))
#undef MATCH_MAY_ALLOCATE
#endif
diff --git a/old/textutils/ChangeLog b/old/textutils/ChangeLog
index 972cc5422..ba08e8b5a 100644
--- a/old/textutils/ChangeLog
+++ b/old/textutils/ChangeLog
@@ -1,3 +1,16 @@
+Sat Oct 08 10:44:30 1994 Jim Meyering (meyering@comco.com)
+
+ * Makefile.in (All of them): Update from the ones in sh-utils.
+ From now on, rules and definitions that are comon to the fileutils,
+ textutils, and sh-utils will get ChangeLog entries only in the
+ sh-utils.
+
+Tue Oct 04 20:42:46 1994 Jim Meyering (meyering@comco.com)
+
+ * od.c (my_strtoul): Set errno to zero before calling strtoul.
+ Otherwise, od can fail complaining about a valid integer argument.
+ From Andreas Schwab.
+
Sun Oct 02 17:57:09 1994 Jim Meyering (meyering@comco.com)
* tr.c (main): Give an error and fail when squeezing repeats
diff --git a/src/cat.c b/src/cat.c
index 44fb7885a..415c64606 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -22,16 +22,7 @@
By tege@sics.se, Torbjorn Granlund, advised by rms, Richard Stallman. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>
diff --git a/src/cksum.c b/src/cksum.c
index 6304c071f..802816d96 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -40,16 +40,7 @@
except foreign language interface (4.9.5.3 of P1003.2/D11.2) support.
Any inconsistency with the standard except 4.9.5.3 is a bug. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#ifdef CRCTAB
diff --git a/src/comm.c b/src/comm.c
index 9f6ddc1ed..3ed34cdf2 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -17,16 +17,7 @@
/* Written by Richard Stallman and David MacKenzie. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>
diff --git a/src/csplit.c b/src/csplit.c
index b7216cfd7..fa3dd70c0 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -18,16 +18,7 @@
/* Written by Stuart Kemp, cpsrk@groper.jcu.edu.au.
Modified by David MacKenzie, djm@gnu.ai.mit.edu. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>
diff --git a/src/cut.c b/src/cut.c
index edd68f0b8..0087880e4 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -59,16 +59,7 @@
A FILE of `-' means standard input. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
diff --git a/src/expand.c b/src/expand.c
index 581960873..fb6774abf 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -33,16 +33,7 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
diff --git a/src/fold.c b/src/fold.c
index 78abbc642..307a7a941 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -17,16 +17,7 @@
/* Written by David MacKenzie, djm@gnu.ai.mit.edu. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
diff --git a/src/head.c b/src/head.c
index 45a2a6550..5b69dcda9 100644
--- a/src/head.c
+++ b/src/head.c
@@ -33,16 +33,7 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>
diff --git a/src/join.c b/src/join.c
index 8de6b9433..12c05b3b0 100644
--- a/src/join.c
+++ b/src/join.c
@@ -17,16 +17,7 @@
Written by Mike Haertel, mike@gnu.ai.mit.edu. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
diff --git a/src/nl.c b/src/nl.c
index 976f1ff74..ca98a2b56 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -18,16 +18,7 @@
/* Written by Scott Bartram (nancy!scott@uunet.uu.net)
Revised by David MacKenzie (djm@gnu.ai.mit.edu) */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <sys/types.h>
diff --git a/src/od.c b/src/od.c
index 287bbf718..a7ddd4a5d 100644
--- a/src/od.c
+++ b/src/od.c
@@ -18,16 +18,7 @@
/* Written by Jim Meyering. */
/* AIX requires this to be the first thing in the file. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#ifdef __GNUC__
#define alloca __builtin_alloca
diff --git a/src/paste.c b/src/paste.c
index fcdf52b26..33a134f73 100644
--- a/src/paste.c
+++ b/src/paste.c
@@ -38,16 +38,7 @@
A FILE of `-' means standard input.
If no FILEs are given, standard input is used. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>
diff --git a/src/pr.c b/src/pr.c
index 734173da9..89c84975c 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -94,16 +94,7 @@
-w width Set the page width to WIDTH characters. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>
diff --git a/src/split.c b/src/split.c
index c8fddc423..3dcfaa0af 100644
--- a/src/split.c
+++ b/src/split.c
@@ -21,16 +21,7 @@
* Implement -t CHAR or -t REGEX to specify break characters other
than newline. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>
diff --git a/src/sum.c b/src/sum.c
index bf7003cab..6c68c0b1a 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -19,16 +19,7 @@
/* Written by Kayvan Aghaiepour and David MacKenzie. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <sys/types.h>
diff --git a/src/tac.c b/src/tac.c
index f5669a91a..d4326a604 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -35,16 +35,7 @@
tac -r -s '.\|
' file */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>
diff --git a/src/tail.c b/src/tail.c
index f96f804a1..87983253c 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -45,16 +45,7 @@
Extensions by David MacKenzie <djm@gnu.ai.mit.edu>.
tail -f for multiple files by Ian Lance Taylor <ian@airs.com>. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <assert.h>
diff --git a/src/tr.c b/src/tr.c
index 7e1f3a2c5..f4ec9e0e8 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -17,16 +17,7 @@
/* Written by Jim Meyering, meyering@cs.utexas.edu. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
diff --git a/src/unexpand.c b/src/unexpand.c
index 46d820c7c..97d3569c3 100644
--- a/src/unexpand.c
+++ b/src/unexpand.c
@@ -35,16 +35,7 @@
David MacKenzie <djm@gnu.ai.mit.edu> */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
diff --git a/src/uniq.c b/src/uniq.c
index dd36103ae..c4a05edbb 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -17,16 +17,7 @@
/* Written by Richard Stallman and David MacKenzie. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
/* Get isblank from GNU libc. */
#define _GNU_SOURCE
diff --git a/src/wc.c b/src/wc.c
index 904efe5c9..62da90646 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -18,16 +18,7 @@
/* Written by Paul Rubin, phr@ocf.berkeley.edu
and David MacKenzie, djm@gnu.ai.mit.edu. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
#include <stdio.h>
#include <getopt.h>