summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/collcmp.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-10-31 04:25:14 +0000
committerache <ache@FreeBSD.org>1996-10-31 04:25:14 +0000
commit411def8ac09fc48107b53ce379d05fb942f05e94 (patch)
treeab6df848a9557df580f610edb7ca06470537ddde /lib/libc/locale/collcmp.c
parenteea5d64b8703ab32ddee4910d0c9e49133f77411 (diff)
downloadFreeBSD-src-411def8ac09fc48107b53ce379d05fb942f05e94.zip
FreeBSD-src-411def8ac09fc48107b53ce379d05fb942f05e94.tar.gz
Rename collate_range_cmp to __collate_range_cmp for internal usage
inside libc. Add collate_range_cmp as alias to __collate_range_cmp for temp. backward compatibility. collate_range_cmp will be replaced with direct code for each external program for compatibility with the rest of world
Diffstat (limited to 'lib/libc/locale/collcmp.c')
-rw-r--r--lib/libc/locale/collcmp.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/libc/locale/collcmp.c b/lib/libc/locale/collcmp.c
index 1776033..3a0b6e6 100644
--- a/lib/libc/locale/collcmp.c
+++ b/lib/libc/locale/collcmp.c
@@ -23,25 +23,33 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: collcmp.c,v 1.6 1996/09/17 19:27:06 ache Exp $
+ * $Id: collcmp.c,v 1.7 1996/10/23 15:35:46 ache Exp $
*/
#define ASCII_COMPATIBLE_COLLATE /* see usr.bin/colldef/data */
#include <string.h>
-#include <limits.h>
-#include <locale.h>
+#include "collate.h"
#ifndef ASCII_COMPATIBLE_COLLATE
#include <ctype.h>
#endif
+/* Temporary backward compatibility */
+
+int collate_range_cmp (c1, c2)
+ int c1, c2;
+{
+ return __collate_range_cmp(c1, c2);
+}
+
+
/*
* Compare two characters converting collate information
* into ASCII-compatible range, it allows to handle
* "[a-z]"-type ranges with national characters.
*/
-int collate_range_cmp (c1, c2)
+int __collate_range_cmp (c1, c2)
int c1, c2;
{
static char s1[2], s2[2];
OpenPOWER on IntegriCloud