Deleted Added
full compact
collate.c (18949) collate.c (19129)
1/*-
2 * Copyright (c) 1995 Alex Tatmanjants <alex@elvisti.kiev.ua>
3 * at Electronni Visti IA, Kiev, Ukraine.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 1995 Alex Tatmanjants <alex@elvisti.kiev.ua>
3 * at Electronni Visti IA, Kiev, Ukraine.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $Id: collate.c,v 1.6 1996/09/14 02:57:25 bde Exp $
27 * $Id: collate.c,v 1.7 1996/10/15 21:53:22 ache Exp $
28 */
29
30#include <rune.h>
31#include <stdio.h>
32#include <stdlib.h>
33#include <string.h>
34#include <errno.h>
35#include <unistd.h>

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

175void
176__collate_print_tables()
177{
178 int i;
179 struct __collate_st_chain_pri *p2;
180
181 printf("Substitute table:\n");
182 for (i = 0; i < UCHAR_MAX + 1; i++)
28 */
29
30#include <rune.h>
31#include <stdio.h>
32#include <stdlib.h>
33#include <string.h>
34#include <errno.h>
35#include <unistd.h>

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

175void
176__collate_print_tables()
177{
178 int i;
179 struct __collate_st_chain_pri *p2;
180
181 printf("Substitute table:\n");
182 for (i = 0; i < UCHAR_MAX + 1; i++)
183 if (i != *__collate_substitute_table[i])
183 printf("\t'%c' --> \"%s\"\n", i,
184 __collate_substitute_table[i]);
185 printf("Chain priority table:\n");
186 for (p2 = __collate_chain_pri_table; p2->str[0]; p2++)
187 printf("\t\"%s\" : %d %d\n\n", p2->str, p2->prim, p2->sec);
188 printf("Char priority table:\n");
189 for (i = 0; i < UCHAR_MAX + 1; i++)
190 printf("\t'%c' : %d %d\n", i, __collate_char_pri_table[i].prim,
191 __collate_char_pri_table[i].sec);
192}
193#endif
184 printf("\t'%c' --> \"%s\"\n", i,
185 __collate_substitute_table[i]);
186 printf("Chain priority table:\n");
187 for (p2 = __collate_chain_pri_table; p2->str[0]; p2++)
188 printf("\t\"%s\" : %d %d\n\n", p2->str, p2->prim, p2->sec);
189 printf("Char priority table:\n");
190 for (i = 0; i < UCHAR_MAX + 1; i++)
191 printf("\t'%c' : %d %d\n", i, __collate_char_pri_table[i].prim,
192 __collate_char_pri_table[i].sec);
193}
194#endif