summaryrefslogtreecommitdiff
path: root/src/sort.c
AgeCommit message (Collapse)Author
1998-08-01(my_setlocale): Guard definition within #ifdef ENABLE_NLS.Jim Meyering
1998-07-30 * src/sort.c (usage): Add angle brackets to make `Report bugs...'Jim Meyering
message consistent with all the rest.
1998-07-29(NEGATION_SIGN): Renamed from NEGATIVE_SIGN to avoidJim Meyering
clash with <langinfo.h>. All uses changed. From Andreas Schwab.
1998-07-26(main): Stat all non-`-' input file files (and fail if aJim Meyering
stat fails) when an output file is specified by `-o' but doesn't exist.
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1998-04-27(keycompare): Don't return 0 from inside the keyspec-iterating loop.Jim Meyering
With this change, test 22a passes. Reported by Zvi Har'El.
1998-04-27(strncoll): Remove bogus assertion.Jim Meyering
1998-04-26Do not define _GNU_SOURCE and/or NDEBUGJim Meyering
1998-03-11(xtmpfopen): Open temporary file exclusively, toJim Meyering
foil a common denial-of-service attack. From Paul Eggert.
1998-01-18(strncoll, strncoll_s2_readonly, look_for_fraction, numcompare):Jim Meyering
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-16Guard inclusion of langinfo.h also with HAVE_LANGINFO_H,Jim Meyering
for Irix-4.0.5. From Kaveh Ghazi.
1998-01-16(mergefps): Add braces to avoid ambiguous `else' statement.Jim Meyering
(nls_set_fraction): Likewise.
1998-01-10CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAXJim Meyering
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-08(inittables): Add && HAVE_NL_LANGINFO to the #if-testJim Meyering
guarding the nls month-checking code. (nls_numeric_format): Remove unnecessary (and error-evoking w/SunOS' cc) `unsigned' from dcls of text and lim. (main): Cast lconvp->grouping to `unsigned char*' to appease SunOS's cc.
1997-12-06revert last changeJim Meyering
1997-12-06use SORT_INITIAL_LINE_LENGTH envvar for testingJim Meyering
1997-12-06(fillbuf): split longer-than-80-char lineJim Meyering
1997-11-08(keycompare): call alloca(0) after each iterationJim Meyering
1997-11-06(getmonth): Remove HAVE_ALLOCA #ifdefs.Jim Meyering
We always have alloca. (keycompare): Don't use variable size arrays (it's a gcc-extension). Rewrite code that increments new lengths when not `ignoring'.
1997-10-26(NLS_STRNCMP) [!ENABLE_NLS]: s/strcmp/strncmp/Jim Meyering
1997-10-25s/xmalloc_exit_failure/xalloc_exit_failureJim Meyering
1997-10-25Include xalloc.h.Jim Meyering
(xmalloc): Remove function. (xrealloc): Remove function. (main): Set xalloc_fail_func to cleanup. Set xmalloc_exit_failure SORT_FAILURE.
1997-10-23Remove free, malloc, and realloc dcls.Jim Meyering
1997-10-16indentJim Meyering
1997-10-16Add comments. From Orn.Jim Meyering
1997-10-16add assertionsJim Meyering
1997-10-16(look_for_fraction): Patch from Orn Hansen.Jim Meyering
(getmonth): Compare the two month names only to the length of the string in the month table. Patch from Orn Hansen. (NLS_STRNCMP): New macro. (strncoll_s2_readonly): New function. (inittables): Don't use temporary `comp' to hide type of comparator function. (nls_sort_month_comp): Declare parameters to be void* to match comparator function type required for qsort. (getmonth): Use NLS_STRNCMP rather than #ifdef. Use do-while, rather than while-loop.
1997-10-16begin merging Orn's changesJim Meyering
1997-10-15(_NL_ITEM) [!defined]: Define.Jim Meyering
From from Ørn E. Hansen.
1997-10-14Remove ChangeLog entry from Orn.Jim Meyering
1997-10-14Use STREQ in place of most uses of strcmp.Jim Meyering
(zaptemp): Make parameter `const'.
1997-10-14(NLS_STRCMP): Define.Jim Meyering
(getmonth): Remove ifdef and use NLS_STRCMP instead. Use HAVE_ALLOCA, not _HAVE_ALLOCA.
1997-10-14(CHARS_IN_ABM): Remove definitionJim Meyering
(inittables): Remove assumption that all abbreviated month names have length 3. (getmonth): Likewise. (main): Add #if's for more efficient code when using the GNU C library. From Ulrich Drepper.
1997-10-14tweak Orn's fraccompare. Always use it.Jim Meyering
1997-10-14(fraccompare): Indent.Jim Meyering
Move dcls of S and N into if block.
1997-10-14fix spelling errors in commentsJim Meyering
1997-10-14(keycompare): Move assignment out of if-expression.Jim Meyering
1997-10-14(strncoll): Rename parameter to LEN.Jim Meyering
Clean up formatting. Add a FIXME.
1997-10-14Declare xstrdup.Jim Meyering
(my_setlocale): New function. (main): Guard against failure of strdup (use xstrdup) and setlocale.
1997-10-14[patch from Orn]Jim Meyering
(look_for_fraction): Eliminate arbitrary limit on number of `groups'. Declare as void, not int. Patch from Ørn E. Hansen. (main): When determining whether we're in the C or POSIX locale, don't rely on the form of the string returned by setlocale. Suggestion from Ulrich Drepper.
1997-10-13eliminate a comma expr,Jim Meyering
fix one func return type eliminate `* 1'
1997-10-13(NLS_MAP): Remove unused definitions.Jim Meyering
Replace with uses of UCHAR. (nls_locale_map): Remove dcl of unused file-scope array.
1997-10-13(NLS_MEMCMP): Define.Jim Meyering
(keycompare): Use it instead of open-coded #ifdefs. (compare): Likewise.
1997-10-13indent and clean up some moreJim Meyering
1997-10-13Indent some more.Jim Meyering
#ifdef ENABLE_NLS th NLS part of insertkey.
1997-10-13indent and add FIXME commentsJim Meyering
1997-10-13filter through cppiJim Meyering
1997-10-13Apply big patch from Ørn E. Hansen.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering