Commit Graph

4581 Commits

Author SHA1 Message Date
Jim Meyering a52e0efbe2 Remove extern declaration of backup_type.
Use PARAMS, not __BACKUPFILE_P.
(VALID_BACKUP_TYPE): Define.
(find_backup_file_name): Adjust prototype.
1998-01-21 15:55:12 +00:00
Jim Meyering 4935348b67 Use ANSI function definitions. 1998-01-20 11:34:38 +00:00
Jim Meyering e6a0306b1b [enum backup_type]: Set `none' to 1. 1998-01-20 11:34:04 +00:00
Jim Meyering 2bec121abb add `,' in comment 1998-01-19 09:29:27 +00:00
Jim Meyering 412043f1d8 . 1998-01-18 11:52:44 +00:00
Jim Meyering 4ffa362cc4 *** empty log message *** 1998-01-18 11:52:38 +00:00
Jim Meyering 35592ba64c (strncoll, strncoll_s2_readonly, look_for_fraction, numcompare):
Remove the `unsigned' from some `unsigned char*' parameter types.
Add casts via UCHAR where necessary to avoid problems with unwanted
sign extension.  Based on a patch from Kaveh Ghazi to appease Irix4's
cc compiler.
e.g.,
 > cc -DLOCALEDIR=\"/caip/u3/ghazi/foobar/share/locale\" -DHAVE_CONFIG_H
 >      -I.. -I../../src -I../../lib -I../intl -c ../../src/sort.c
 > accom: Error: ../../src/sort.c, line 500: prototype parameter 1 type
 >      must have all of the actual arguments qualifiers (except the
 >      outermost) and pointed-to types must be compatible (ANSI
 >      3.3.2.2,3.3.16.1)
 >              diff = strcoll (s1, s2);
 >        ----------------------------^
 > accom: Error: ../../src/sort.c, line 500: Argument 1 Type Doesn't
 >      Match prototype description; prototype: pointer to const char is
 >      different from actual: pointer to unsigned char
 >              diff = strcoll (s1, s2);
 >        ----------------------------^
 > accom: Error: ../../src/sort.c, line 500: prototype parameter 2 type
 >      must have all of the actual arguments qualifiers (except the
 >      outermost) and pointed-to types must be compatible (ANSI
 >      3.3.2.2,3.3.16.1)
 >              diff = strcoll (s1, s2);
 >        ----------------------------^
 > accom: Error: ../../src/sort.c, line 500: Argument 2 Type Doesn't
 >      Match prototype description; prototype: pointer to const char is
 >      different from actual: pointer to unsigned char
 >              diff = strcoll (s1, s2);
 >        ----------------------------^
1998-01-18 11:51:08 +00:00
Jim Meyering c1618a8c4c (next_file_name): Rewrite. This removes an artificial limit (albeit
already high, at INT_MAX :-) on the number of files split could create.
Reported by Ralf W. Stephan.
1998-01-18 11:18:08 +00:00
Jim Meyering 96be8bca99 Guard inclusion of langinfo.h also with HAVE_LANGINFO_H,
for Irix-4.0.5.  From Kaveh Ghazi.
1998-01-16 23:29:24 +00:00
Jim Meyering b8a16a3f2a (mergefps): Add braces to avoid ambiguous `else' statement.
(nls_set_fraction): Likewise.
1998-01-16 23:23:04 +00:00
Jim Meyering f1217e4976 . 1998-01-16 11:18:05 +00:00
Jim Meyering 62279c6e2d . 1998-01-16 11:17:02 +00:00
Jim Meyering 71545a6276 Make PARAMS-defining conditionals consistent. 1998-01-16 08:52:30 +00:00
Jim Meyering 53cfcbd19c Make PARAMS-defining conditionals consistent. 1998-01-16 08:51:39 +00:00
Jim Meyering 5618133eed (fail-0): Disable test. It depends on
sizeof(long) being 32 bits.  Reported by Kaveh Ghazi.
1998-01-16 08:04:19 +00:00
Jim Meyering ade1f58e11 (print_header): Fix inode format header to line it up
with the rest of the output.
1998-01-14 08:52:56 +00:00
Jim Meyering 74cf3e8bab Set errno to ENOENT, not EINVAL. This is consistent
with most other implementations.
1998-01-13 10:08:11 +00:00
Jim Meyering ca50e875af *** empty log message *** 1998-01-13 09:53:15 +00:00
Jim Meyering a75ea1014e *** empty log message *** 1998-01-12 09:00:10 +00:00
Jim Meyering 98af2e9636 *** empty log message *** 1998-01-12 08:55:42 +00:00
Jim Meyering 68e5877403 *** empty log message *** 1998-01-12 08:55:01 +00:00
Jim Meyering 2b906615c2 *** empty log message *** 1998-01-12 08:53:18 +00:00
Jim Meyering 443f852f61 Include sys/param.h only #if HAVE_SYS_PARAM_H.
Move function-spanning `#if ...BSIZE' stmt to follow inclusion of
sys/param.h since BSIZE is sometimes defined in sys/param.h.
Based on a patch from Philippe De Muyter.
1998-01-12 08:13:39 +00:00
Jim Meyering d1f4e617b5 *** empty log message *** TEXTUTILS-1_22d 1998-01-11 09:24:17 +00:00
Jim Meyering 1aa070dd2e . FILEUTILS-3_16k 1998-01-11 09:14:29 +00:00
Jim Meyering 007e81132a . 1998-01-11 09:14:02 +00:00
Jim Meyering 6bcfff640e *** empty log message *** 1998-01-11 09:12:30 +00:00
Jim Meyering aa2880362c . 1998-01-11 08:02:39 +00:00
Jim Meyering 88bd90109b *** empty log message *** 1998-01-10 22:13:49 +00:00
Jim Meyering dba300a0d0 CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAX
Remove definitions of those symbols.
* src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h
since it now includes limit.h which defines RE_DUP_MAX.
* src/nl.c: Likewise.
* src/tac.c: Likewise.
1998-01-10 22:12:03 +00:00
Jim Meyering b9ed71e46e . 1998-01-10 20:53:56 +00:00
Jim Meyering 7bba3e945f initialize fail to 0 1998-01-10 16:25:46 +00:00
Jim Meyering 1bdfcabd2c . 1998-01-10 16:24:46 +00:00
Jim Meyering c88a4c91da (EXTRA_DIST): Add const.m4. 1998-01-10 16:24:26 +00:00
Jim Meyering 136f2fd28c . 1998-01-10 15:57:57 +00:00
Jim Meyering 82739833a1 *** empty log message *** 1998-01-10 15:09:46 +00:00
Jim Meyering 1c5c2597b5 *** empty log message *** 1998-01-10 15:08:00 +00:00
Jim Meyering eacbf12ea4 *** empty log message *** 1998-01-10 15:04:32 +00:00
Jim Meyering 0ccdf3419d (usage): Describe -D. 1998-01-10 15:03:58 +00:00
Jim Meyering cec85a4b3a . 1998-01-10 14:25:27 +00:00
Jim Meyering a077a7833c *** empty log message *** 1998-01-10 14:23:08 +00:00
Jim Meyering a3094b0529 (batch_convert): Use memcpy when we don't need return value. 1998-01-10 14:21:35 +00:00
Jim Meyering d73dd15544 . 1998-01-10 13:36:47 +00:00
Jim Meyering 27c1ad9576 *** empty log message *** 1998-01-10 13:36:09 +00:00
Jim Meyering 2eefbf7647 (usage): Correct descriptions of --sort, --time, and -t.
Suggestions from Andreas Schwab.
1998-01-10 12:53:09 +00:00
Jim Meyering 79d39ab7bf (decode_switches) [-u]: Fix bug whereby -u had no effect
without -l or -t.  Now, -u (like -c) implies --sort=time.
Suggestion from Andreas Schwab.
1998-01-10 12:07:50 +00:00
Jim Meyering 12782f54b0 *** empty log message *** 1998-01-10 11:56:26 +00:00
Jim Meyering fff6de7b04 *** empty log message *** 1998-01-10 11:54:39 +00:00
Jim Meyering cc76db2016 use sh-script test, not Test.pm framework 1998-01-10 11:27:24 +00:00
Jim Meyering 77c94909cf *** empty log message *** 1998-01-10 11:24:51 +00:00