]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
merge with 1.8c
authorJim Meyering <jim@meyering.net>
Thu, 21 Oct 1993 17:19:34 +0000 (17:19 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 21 Oct 1993 17:19:34 +0000 (17:19 +0000)
old/textutils/ChangeLog
src/csplit.c
src/cut.c
src/expand.c
src/fold.c
src/join.c
src/paste.c
src/sum.c
src/tac.c
src/unexpand.c
src/uniq.c

index 4de3941a05e3ae4f49eafc78ce212274e90be20c..52071e648107005a54acee50f8a961b71d9fd625 100644 (file)
@@ -1,3 +1,37 @@
+Wed Oct 20 20:05:48 1993  Jim Meyering  (meyering@comco.com)
+
+       * memchr.c (memchr): Do the 32-bit assignment only if !LONG_64_BITS.
+       In the 64-bit assignment, be careful to cast the shift operand to
+       long.
+       Abort if sizeof (unsigned long) > 8.
+
+Tue Oct 19 22:37:58 1993  Jim Meyering  (meyering@comco.com)
+
+       * csplit.c: Allow repeat counts to be specified via `{*}'.
+       New option --suffix=format.  Supercedes --digits option.
+       New option --abandon-null-files.
+       From Ronald F. Guilmette (rfg@netcom.com).
+
+       * csplit.1: Updated.
+       From Ronald F. Guilmette.
+       
+       * csplit.c: Remove register keyword (replace with `int' in two cases).
+
+       * csplit.c: [MAX]: Macro renamed from max and moved to top of file.
+       (bytes_to_octal_digits): New static array.
+       (get_format_flags): Combine '+' and ' ' cases of switch stmt.
+       Return count if for loop terminates.
+       (get_format_width): Use `bytes_to_octal_digits' instead of just 11.
+       (get_format_prec): Make sure is_negative is defined before used.
+       (get_format_conv_type): Give a different error message if there
+       is no conversion specifier.
+       Test ISPRINT (ch) instead of `ch < '~' && ch > ' ''.
+       (max_out): Use `%%' rather than `%' in format string.
+
+Sat Oct 16 10:45:17 1993  Jim Meyering  (meyering@comco.com)
+
+       * pr.c (main): When argc == 1, don't try to xmalloc (0).
+
 Tue Oct 12 00:53:26 1993  Jim Meyering  (meyering@comco.com)
 
        * xwrite.c [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
@@ -725,7 +759,7 @@ Sun Aug 25 19:57:40 1991  Jim Meyering  (meyering at apple-gunkies)
        in parallel, each failed open results in one fewer output column.
        Added POSIX -r option to suppress the message.
        * pr.c: Added variables: failed_opens, ignore_failed_opens.
-        These changes were based in part on work by David MacKenzie.
+       These changes were based in part on work by David MacKenzie.
 
 Sat Aug 24 15:27:39 1991  Jim Meyering  (meyering at pogo)
 
index a6be8fdbe2048898535f6bb011ceb975c7f9d026..f2beb0fc0d663ef14b95a6230a3fdf6d24717052 100644 (file)
@@ -614,7 +614,7 @@ get_first_line_in_buffer ()
   return head->first_available;
 }
 
-/* Return a pointer to the logical first line in the buffer and make the 
+/* Return a pointer to the logical first line in the buffer and make the
    next line the logical first line.
    Return NULL if there is no more input. */
 
index 1c8e70eafdcecc6c0519c9136a709de98c3f73f3..9a056c75c41538065fc0abe52c99cecf907af01f 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -1,6 +1,6 @@
 /* cut - remove parts of lines of files
    Copyright (C) 1984 by David M. Ihnat
+
    This program is a total rewrite of the Bell Laboratories Unix(Tm)
    command of the same name, as of System V.  It contains no proprietary
    code, and therefore may be used without violation of any proprietary
index 4aaaf02dbe6f6b7a7d7ac840ca56a0a0927ed0a2..7acf5fd09ca066710fe09cfb9db932eec9250328 100644 (file)
@@ -241,7 +241,7 @@ validate_tabstops (tabs, entries)
 {
   int prev_tab = 0;
   int i;
-  
+
   for (i = 0; i < entries; i++)
     {
       if (tabs[i] == 0)
index 4de88036f132d0cb8c07437dd6227c643df69ad5..80fa04711b6882548decb00883c080c6c418f771 100644 (file)
@@ -186,7 +186,7 @@ fold_file (filename, width)
          allocated_out += 1024;
          line_out = xrealloc (line_out, allocated_out);
        }
-      
+
       if (c == '\n')
        {
          line_out[offset_out++] = c;
index 7d02e068988782b25d28d815ddbee59890cedd4e..cd9ea211c95915609bf66998f2efbbe1feb3eda5 100644 (file)
@@ -668,7 +668,7 @@ main (argc, argv)
 
   if (show_help)
     usage ();
-  
+
   if (nfiles != 2)
     usage ();
 
index 8639b340708107da60afde54cc8a13897a66fd6b..24c617db534d6bbe1e7bef6c0c1ecdbec8918a62 100644 (file)
@@ -1,6 +1,6 @@
 /* paste - merge lines of files
    Copyright (C) 1984 by David M. Ihnat
+
    This program is a total rewrite of the Bell Laboratories Unix(Tm)
    command of the same name, as of System V.  It contains no proprietary
    code, and therefore may be used without violation of any proprietary
    this program accepts full responsibility for any effects or loss;
    in particular, the author is not responsible for any losses,
    explicit or incidental, that may be incurred through use of this program.
+
    I ask that any bugs (and, if possible, fixes) be reported to me when
    possible.  -David Ihnat (312) 784-4544 ignatz@homebru.chi.il.us
 
    The list of valid escape sequences has been expanded over the Unix
    version, to include \b, \f, \r, and \v.
+
    POSIX changes, bug fixes, long-named options, and cleanup
    by David MacKenzie <djm@gnu.ai.mit.edu>.
+
    Options:
    --serial
    -s                          Paste one file at a time rather than
@@ -333,7 +333,7 @@ paste_parallel (nfiles, fnamptr)
                      error (0, errno, "%s", fnamptr[i]);
                      errors = 1;
                    }
-                     
+
                  fileptr[i] = CLOSED;
                  files_open--;
                }
index 46e672cc31c9a4f2390cc02d7dc6b440549134e8..c625f7d955f071a8c79c736b03617dacd594a2c2 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
@@ -5,12 +5,12 @@
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2, or (at your option)
    any later version.
-   
+
    This program 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., 675 Mass Ave, Cambridge, MA 02139, USA.  */
@@ -149,7 +149,7 @@ bsd_sum_file (file, print_name)
          return -1;
        }
     }
+
   /* This algorithm seems to depend on sign extension in `ch' in order to
      give the right results.  Ick.  */
   while ((ch = getc (fp)) != EOF)
index 793cf55c703e7bf80a1cbaec4f6dd2f0fd2ac385..d6671e21468741574b022df788727033be141df5 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
@@ -583,7 +583,7 @@ output (start, past_end)
       bytes_in_buffer = 0;
       return;
     }
-  
+
   /* Write out as many full buffers as possible. */
   while (bytes_to_add >= bytes_available)
     {
index 68b7073df5117881fc0bee7846c53f9e854549c3..7affd88b5e8655ddb75b5449b79985e4803a2553 100644 (file)
@@ -243,7 +243,7 @@ validate_tabstops (tabs, entries)
 {
   int prev_tab = 0;
   int i;
-  
+
   for (i = 0; i < entries; i++)
     {
       if (tabs[i] == 0)
@@ -262,7 +262,7 @@ unexpand ()
 {
   FILE *fp;                    /* Input stream. */
   int c;                       /* Each input character. */
-  /* Index in `tab_list' of next tabstop: */  
+  /* Index in `tab_list' of next tabstop: */
   int tab_index = 0;           /* For calculating width of pending tabs. */
   int print_tab_index = 0;     /* For printing as many tabs as possible. */
   int column = 0;              /* Column on screen of next char. */
index 50173565438c8c0d0c75a6e17b5314731fed0fbf..9323397ba061cf3162eca970205edb8d0a7b9f5f 100644 (file)
@@ -143,11 +143,11 @@ main (argc, argv)
        case 'u':
          mode = output_unique;
          break;
-         
+
        case 'w':
          check_chars = atoi (optarg);
          break;
-         
+
        default:
          usage ();
        }