Deleted Added
full compact
collcmp.c (19129) collcmp.c (19275)
1/*
2 * Copyright (C) 1996 by Andrey A. Chernov, Moscow, Russia.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*
2 * Copyright (C) 1996 by Andrey A. Chernov, Moscow, Russia.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: collcmp.c,v 1.6 1996/09/17 19:27:06 ache Exp $
26 * $Id: collcmp.c,v 1.7 1996/10/23 15:35:46 ache Exp $
27 */
28
29#define ASCII_COMPATIBLE_COLLATE /* see usr.bin/colldef/data */
30
31#include <string.h>
27 */
28
29#define ASCII_COMPATIBLE_COLLATE /* see usr.bin/colldef/data */
30
31#include <string.h>
32#include <limits.h>
33#include <locale.h>
32#include "collate.h"
34#ifndef ASCII_COMPATIBLE_COLLATE
35#include <ctype.h>
36#endif
37
33#ifndef ASCII_COMPATIBLE_COLLATE
34#include <ctype.h>
35#endif
36
37/* Temporary backward compatibility */
38
39int collate_range_cmp (c1, c2)
40 int c1, c2;
41{
42 return __collate_range_cmp(c1, c2);
43}
44
45
38/*
39 * Compare two characters converting collate information
40 * into ASCII-compatible range, it allows to handle
41 * "[a-z]"-type ranges with national characters.
42 */
43
46/*
47 * Compare two characters converting collate information
48 * into ASCII-compatible range, it allows to handle
49 * "[a-z]"-type ranges with national characters.
50 */
51
44int collate_range_cmp (c1, c2)
52int __collate_range_cmp (c1, c2)
45 int c1, c2;
46{
47 static char s1[2], s2[2];
48 int ret;
49#ifndef ASCII_COMPATIBLE_COLLATE
50 int as1, as2, al1, al2;
51#endif
52

--- 33 unchanged lines hidden ---
53 int c1, c2;
54{
55 static char s1[2], s2[2];
56 int ret;
57#ifndef ASCII_COMPATIBLE_COLLATE
58 int as1, as2, al1, al2;
59#endif
60

--- 33 unchanged lines hidden ---