Changeset 3232 for trunk/essentials/app-shells/bash/general.c
- Timestamp:
- Apr 29, 2007, 10:43:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/app-shells/bash/general.c
r3231 r3232 663 663 are handled OK by the `else' part of the if statement; an empty 664 664 string is returned in that case. */ 665 #ifndef __OS2__ 665 666 if (i && string[i] == ':') 666 667 i++; … … 668 669 for (start = i; string[i] && string[i] != ':'; i++) 669 670 ; 671 672 #else /* __OS2__ */ 673 if (i && (string[i] == ':' || string[i] ==';')) 674 i++; 675 676 /* In OS/2, interpret either `:' or `;' as separator, except when 677 the `:' looks like part of a drive letter. */ 678 for (start = i;; i++) 679 { 680 if (!string[i]) 681 break; 682 if (string[i] == ';') 683 break; 684 if (string[i] != ':') 685 continue; 686 if (i - start != 1) 687 break; 688 if (!isalpha (string[i - 1])) 689 break; 690 } 691 #endif /* __OS2__ */ 670 692 671 693 *p_index = i;
Note:
See TracChangeset
for help on using the changeset viewer.