glob.c (24158) | glob.c (24633) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Guido van Rossum. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 696 unchanged lines hidden (view full) --- 705 case M_SET: 706 ok = 0; 707 if ((k = *name++) == EOS) 708 return(0); 709 if ((negate_range = ((*pat & M_MASK) == M_NOT)) != EOS) 710 ++pat; 711 while (((c = *pat++) & M_MASK) != M_END) 712 if ((*pat & M_MASK) == M_RNG) { | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Guido van Rossum. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 696 unchanged lines hidden (view full) --- 705 case M_SET: 706 ok = 0; 707 if ((k = *name++) == EOS) 708 return(0); 709 if ((negate_range = ((*pat & M_MASK) == M_NOT)) != EOS) 710 ++pat; 711 while (((c = *pat++) & M_MASK) != M_END) 712 if ((*pat & M_MASK) == M_RNG) { |
713 if ( __collate_range_cmp(CHAR(c), CHAR(k)) <= 0 | 713 if (__collate_load_error ? 714 CHAR(c) <= CHAR(k) && CHAR(k) <= CHAR(pat[1]) : 715 __collate_range_cmp(CHAR(c), CHAR(k)) <= 0 |
714 && __collate_range_cmp(CHAR(k), CHAR(pat[1])) <= 0 715 ) 716 ok = 1; 717 pat += 2; 718 } else if (c == k) 719 ok = 1; 720 if (ok == negate_range) 721 return(0); --- 134 unchanged lines hidden --- | 716 && __collate_range_cmp(CHAR(k), CHAR(pat[1])) <= 0 717 ) 718 ok = 1; 719 pat += 2; 720 } else if (c == k) 721 ok = 1; 722 if (ok == negate_range) 723 return(0); --- 134 unchanged lines hidden --- |