Mercurial > hg > xemacs-beta
comparison src/search.c @ 462:0784d089fdc9 r21-2-46
Import from CVS: tag r21-2-46
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:44:37 +0200 |
parents | 223736d75acb |
children | ccaeb2a3c329 |
comparison
equal
deleted
inserted
replaced
461:120ed4009e51 | 462:0784d089fdc9 |
---|---|
1561 /* We use this for translation, instead of TRT itself. We | 1561 /* We use this for translation, instead of TRT itself. We |
1562 fill this in to handle the characters that actually occur | 1562 fill this in to handle the characters that actually occur |
1563 in the pattern. Others don't matter anyway! */ | 1563 in the pattern. Others don't matter anyway! */ |
1564 xzero (simple_translate); | 1564 xzero (simple_translate); |
1565 for (i = 0; i < 0400; i++) | 1565 for (i = 0; i < 0400; i++) |
1566 simple_translate[i] = i; | 1566 simple_translate[i] = (Bufbyte) i; |
1567 i = 0; | 1567 i = 0; |
1568 while (i != infinity) | 1568 while (i != infinity) |
1569 { | 1569 { |
1570 Bufbyte *ptr = base_pat + i; | 1570 Bufbyte *ptr = base_pat + i; |
1571 i += direction; | 1571 i += direction; |
1646 /* A translation table is accompanied by its inverse -- | 1646 /* A translation table is accompanied by its inverse -- |
1647 see comment following downcase_table for details */ | 1647 see comment following downcase_table for details */ |
1648 | 1648 |
1649 while ((j = TRANSLATE (inverse_trt, j)) != k) | 1649 while ((j = TRANSLATE (inverse_trt, j)) != k) |
1650 { | 1650 { |
1651 simple_translate[j] = k; | 1651 simple_translate[j] = (Bufbyte) k; |
1652 BM_tab[j] = dirlen - i; | 1652 BM_tab[j] = dirlen - i; |
1653 } | 1653 } |
1654 #endif | 1654 #endif |
1655 } | 1655 } |
1656 else | 1656 else |