diff options
author | tron <tron@pkgsrc.org> | 1999-07-26 21:19:22 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-07-26 21:19:22 +0000 |
commit | 383fd39b5ace18819a74580ba2f582e68977e0ac (patch) | |
tree | 6aced30a20aa071b98f5507477c02d7e5cf1a85b /news/nn/patches/patch-az | |
parent | da7bb6dd853f924f697504e9f7e062555f5705e8 (diff) | |
download | pkgsrc-383fd39b5ace18819a74580ba2f582e68977e0ac.tar.gz |
Split patches and convert to diff's unified output format.
Diffstat (limited to 'news/nn/patches/patch-az')
-rw-r--r-- | news/nn/patches/patch-az | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/news/nn/patches/patch-az b/news/nn/patches/patch-az new file mode 100644 index 00000000000..1212eb55682 --- /dev/null +++ b/news/nn/patches/patch-az @@ -0,0 +1,42 @@ +$NetBSD: patch-az,v 1.1 1999/07/26 21:19:33 tron Exp $ + +--- sort.c.orig Tue Aug 31 23:06:25 1993 ++++ sort.c Mon Jul 26 23:11:39 1999 +@@ -43,6 +43,29 @@ + * before MATCH_?? (t, a, b) is used. + */ + ++#ifdef HAVE_WORKING_COLLATE ++ ++#ifdef HAVE_8BIT_CTYPE ++#define MATCH_DROP(table, c) !isprint(c) ++#else ++#define MATCH_DROP(table, c) ( c & 0200 || !isprint(c) ) ++#endif ++#define MATCH_EQ(table, a, b) ( a == b || table(a, b) == 0 ) ++#define MATCH_LS_EQ(table, a, b) ( a == b || table(a, b) <= 0 ) ++#define MATCH_LS(table, a, b) ( table(a, b) < 0 ) ++#define MATCH_CMP(table, a, b) table(a, b) ++ ++static int match_subject(a, b) ++char a, b; ++{ ++ static char aa[2], bb[2]; ++ ++ aa[0] = a; bb[0] = b; ++ return strcoll(aa, bb); ++} ++ ++#else ++ + #define MATCH_DROP(table, c) ( c & 0200 || table[c] == 0 ) + #define MATCH_EQ(table, a, b) ( a == b || table[a] == table[b] ) + #define MATCH_LS_EQ(table, a, b) ( a <= b || table[a] <= table[b] ) +@@ -77,6 +100,7 @@ + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 00, 00 + }; + ++#endif /* HAVE_WORKING_COLLATE */ + + static int + order_subj_date(ah1, ah2) |