summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-01-22 08:11:04 +0000
committerJim Meyering <jim@meyering.net>2002-01-22 08:11:04 +0000
commit64eb355c7669f4a1fed388909436b29541d6e3db (patch)
treef1f6412937d0600e561f7b3e62fc063c260ce4a7 /src
parent023877ac2729621dcbd093f41bfcfad9b0d4ed17 (diff)
downloadcoreutils-64eb355c7669f4a1fed388909436b29541d6e3db.tar.xz
Include xmemcoll.h, not memcoll.h.
Use xmemcoll instead of memcoll.
Diffstat (limited to 'src')
-rw-r--r--src/comm.c6
-rw-r--r--src/join.c7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/comm.c b/src/comm.c
index 568968fd1..51d4462a9 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 1ad6496cb..0a5399b1e 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));
}