From: Jim Meyering Date: Tue, 22 Jan 2002 08:11:04 +0000 (+0000) Subject: Include xmemcoll.h, not memcoll.h. X-Git-Tag: TEXTUTILS-2_0_20~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64eb355c7669f4a1fed388909436b29541d6e3db;p=thirdparty%2Fcoreutils.git Include xmemcoll.h, not memcoll.h. Use xmemcoll instead of memcoll. --- diff --git a/src/comm.c b/src/comm.c index 568968fd16..51d4462a97 100644 --- a/src/comm.c +++ b/src/comm.c @@ -27,7 +27,7 @@ #include "linebuffer.h" #include "error.h" #include "hard-locale.h" -#include "memcoll.h" +#include "xmemcoll.h" /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "comm" @@ -178,8 +178,8 @@ compare_files (char **infiles) { #ifdef ENABLE_NLS if (hard_LC_COLLATE) - order = memcoll (thisline[0]->buffer, thisline[0]->length - 1, - thisline[1]->buffer, thisline[1]->length - 1); + order = xmemcoll (thisline[0]->buffer, thisline[0]->length - 1, + thisline[1]->buffer, thisline[1]->length - 1); else #endif { diff --git a/src/join.c b/src/join.c index 1ad6496cb2..0a5399b1ec 100644 --- a/src/join.c +++ b/src/join.c @@ -30,7 +30,7 @@ #include "hard-locale.h" #include "linebuffer.h" #include "memcasecmp.h" -#include "memcoll.h" +#include "xmemcoll.h" #include "xstrtol.h" /* The official name of this program (e.g., no `g' prefix). */ @@ -322,7 +322,8 @@ delseq (struct seq *seq) } /* Return <0 if the join field in LINE1 compares less than the one in LINE2; - >0 if it compares greater; 0 if it compares equal. */ + >0 if it compares greater; 0 if it compares equal. + Report an error and exit if the comparison fails. */ static int keycmp (struct line *line1, struct line *line2) @@ -373,7 +374,7 @@ keycmp (struct line *line1, struct line *line2) { #ifdef ENABLE_NLS if (hard_LC_COLLATE) - return memcoll ((char *) beg1, len1, (char *) beg2, len2); + return xmemcoll ((char *) beg1, len1, (char *) beg2, len2); #endif diff = memcmp (beg1, beg2, min (len1, len2)); }