]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
merge with 1.9.1h
authorJim Meyering <jim@meyering.net>
Wed, 19 Oct 1994 03:39:33 +0000 (03:39 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 19 Oct 1994 03:39:33 +0000 (03:39 +0000)
23 files changed:
lib/regex.c
old/textutils/ChangeLog
src/cat.c
src/cksum.c
src/comm.c
src/csplit.c
src/cut.c
src/expand.c
src/fold.c
src/head.c
src/join.c
src/nl.c
src/od.c
src/paste.c
src/pr.c
src/split.c
src/sum.c
src/tac.c
src/tail.c
src/tr.c
src/unexpand.c
src/uniq.c
src/wc.c

index fd3c6a88526e9576b9c18a6a93e5bdc3cb813b02..7598572fe23261ee6652a3102b6b1aa831e56ff7 100644 (file)
@@ -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
index 972cc5422446ac76fc656b9e0fb385bccf3c0f07..ba08e8b5a60c6fe9b541d08de99c23aeb43c18bd 100644 (file)
@@ -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
index 44fb7885ae5afe95fe21558e36235fb6894d6cbf..415c64606833799397e9858108c2fc6d3395b920 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
 
    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>
index 6304c071fafe03350cc2d4a083ff09c46ea11ef8..802816d960dfe32548d2c92bd76672649fa11d94 100644 (file)
   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
 
index 9f6ddc1edd09c02266c9b8c8b92679cfd3460d48..3ed34cdf229df03826c77475947db69a21b0918f 100644 (file)
 
 /* Written by Richard Stallman and David MacKenzie. */
 \f
-#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>
index b7216cfd706f2f35b26f2218e080bc6fd0e95645..fa3dd70c04a8e56cefdfd69ee38f51fe5f9779c6 100644 (file)
 /* 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>
index edd68f0b84b8120352205382ba613de48c817ca6..0087880e49e51328b83d892c17f26975073a5913 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
 
    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
index 581960873de390b3b441fd8baed1ea313b4afb90..fb6774abfcdf6d3c48555efa6f5ccb41ad76568f 100644 (file)
 
    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
index 78abbc642ae921481023e0840916ea1c513b7740..307a7a941fe44bf4ccc6eb861fcb29e804be4349 100644 (file)
 
 /* 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
index 45a2a65507c118f8800d5fe3e8b129c5396e01fb..5b69dcda956a204d7b7395e49f75f1ebb01c7829 100644 (file)
 
    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>
index 8de6b94337febed027c7713b82229f58cb425ed6..12c05b3b04773c4bac5447f5dc3a4e7200e64bce 100644 (file)
 
    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
index 976f1ff74df4d61e2fffce8c8c6c2413ea09930b..ca98a2b56577fa9cd32b9a8321c60ac7ba34c727 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
 /* 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>
index 287bbf7180a6e40945e0a5b09ce65b2840ab3c8b..a7ddd4a5d10732b73c776e0268df93fe293c9f0d 100644 (file)
--- a/src/od.c
+++ b/src/od.c
 /* 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
index fcdf52b26bb3dda49f1008373d17c8a475f240a1..33a134f73d80fd097fbafc67f62099d015679b61 100644 (file)
    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>
index 734173da92a549cdaa389be10c4f379bcf35d5fb..89c84975c7bb04271bf0d7c26680e44730e1ed52 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
    -w width    Set the page width to WIDTH characters. */
 \f
 
-#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>
index c8fddc423c8ea9b0fbbc3bba20765471fc673a07..3dcfaa0afcad3a716013952924545ce2dbd86aa4 100644 (file)
    * 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>
index bf7003cab423b722b00bfb3daf9459c315bddcfc..6c68c0b1a024ac6b2b5e6022f2345e6bedbc27d6 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
 
 /* 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>
index f5669a91a8c7d360f86c0863cc68ceedb7594cdf..d4326a604d92ed5792aba0fea76e5f39e7aa1088 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
 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>
index f96f804a1c9d439f8877c8558dc74f22d354fd68..87983253c01c823c8644d26454a24cea9cd43def 100644 (file)
    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>
index 7e1f3a2c54205729373e4318af014c8866d7c90d..f4ec9e0e8d8a8a26df3e1abf6f89076991e9a6f8 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
 
 /* 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
index 46d820c7caba0617940337579c2c114d86b9fe2f..97d3569c322df654b1af1dccbfc0d1f87d9880b7 100644 (file)
 
    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
index dd36103aec747970c9175e7efada1157bb75fca5..c4a05edbb88de5ddd9922a2b4978dfe2cb843033 100644 (file)
 
 /* Written by Richard Stallman and David MacKenzie. */
 \f
-#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
index 904efe5c902f0d8e9552f37b546f8ea27cb817c6..62da906466a47e6ac31f7235582acde9b4f6c845 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
 /* Written by Paul Rubin, phr@ocf.berkeley.edu
    and David MacKenzie, djm@gnu.ai.mit.edu. */
 \f
-#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>