Changeset 730 for trunk/dll/select.c
- Timestamp:
- Jul 22, 2007, 7:57:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/select.c
r690 r730 70 70 break; 71 71 if (list) 72 AddToList(pci-> szFileName, list, &numfiles, &numalloc);72 AddToList(pci->pszFileName, list, &numfiles, &numalloc); 73 73 pci = (PCNRITEM) WinSendMsg(hwndCnr, CM_QUERYRECORDEMPHASIS, 74 74 MPFROMP(pci), MPFROMSHORT(CRA_SELECTED)); … … 188 188 if (maskstr && *maskstr && markit) { 189 189 markit = FALSE; 190 file = strrchr(pci-> szFileName, '\\');190 file = strrchr(pci->pszFileName, '\\'); 191 191 if (!file) 192 file = strrchr(pci-> szFileName, ':');192 file = strrchr(pci->pszFileName, ':'); 193 193 if (file) 194 194 file++; 195 195 else 196 file = pci-> szFileName;196 file = pci->pszFileName; 197 197 for (x = 0; Mask.pszMasks[x]; x++) { 198 198 if (*Mask.pszMasks[x]) { … … 200 200 if (wildcard((strchr(Mask.pszMasks[x], '\\') || 201 201 strchr(Mask.pszMasks[x], ':')) ? 202 pci-> szFileName :202 pci->pszFileName : 203 203 file, 204 204 Mask.pszMasks[x], … … 210 210 if (wildcard((strchr(Mask.pszMasks[x], '\\') || 211 211 strchr(Mask.pszMasks[x], ':')) ? 212 pci-> szFileName :212 pci->pszFileName : 213 213 file, 214 214 Mask.pszMasks[x] + 1, … … 233 233 FILE *inputFile; 234 234 235 if ((inputFile = _fsopen(pci-> szFileName, "rb", SH_DENYNO)) != NULL) {235 if ((inputFile = _fsopen(pci->pszFileName, "rb", SH_DENYNO)) != NULL) { 236 236 pos = ftell(inputFile); 237 237 while (!feof(inputFile)) { … … 294 294 if (maskstr && *maskstr && unmarkit) { 295 295 unmarkit = FALSE; 296 file = strrchr(pci-> szFileName, '\\');296 file = strrchr(pci->pszFileName, '\\'); 297 297 if (!file) 298 file = strrchr(pci-> szFileName, ':');298 file = strrchr(pci->pszFileName, ':'); 299 299 if (file) 300 300 file++; 301 301 else 302 file = pci-> szFileName;302 file = pci->pszFileName; 303 303 for (x = 0; Mask.pszMasks[x]; x++) { 304 304 if (*Mask.pszMasks[x]) { … … 306 306 if (wildcard((strchr(Mask.pszMasks[x], '\\') || 307 307 strchr(Mask.pszMasks[x], ':')) ? 308 pci-> szFileName : file, Mask.pszMasks[x], FALSE))308 pci->pszFileName : file, Mask.pszMasks[x], FALSE)) 309 309 unmarkit = TRUE; 310 310 } … … 312 312 if (wildcard((strchr(Mask.pszMasks[x], '\\') || 313 313 strchr(Mask.pszMasks[x], ':')) ? 314 pci-> szFileName : file, Mask.pszMasks[x] + 1,314 pci->pszFileName : file, Mask.pszMasks[x] + 1, 315 315 FALSE)) { 316 316 unmarkit = FALSE; … … 333 333 FILE *inputFile; 334 334 335 if ((inputFile = _fsopen(pci-> szFileName, "rb", SH_DENYNO)) != NULL) {335 if ((inputFile = _fsopen(pci->pszFileName, "rb", SH_DENYNO)) != NULL) { 336 336 pos = ftell(inputFile); 337 337 while (!feof(inputFile)) { … … 674 674 if (reset) { 675 675 for (x = 0; x < numS; x++) { 676 if (!*pciSa[x]-> szFileName || !*pciDa[x]->szFileName)676 if (!*pciSa[x]->pszFileName || !*pciDa[x]->pszFileName) 677 677 continue; 678 678 pciSa[x]->flags |= CNRITEM_EXISTS; … … 730 730 for (x = 0; x < numS; x++) { 731 731 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED)) { 732 if (*pciSa[x]-> szFileName &&732 if (*pciSa[x]->pszFileName && 733 733 (pciSa[x]->flags & CNRITEM_EXISTS) && 734 734 !(pciSa[x]->flags & CNRITEM_SMALLER) && … … 754 754 for (x = 0; x < numS; x++) { 755 755 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 756 *pciSa[x]-> szFileName &&756 *pciSa[x]->pszFileName && 757 757 (pciSa[x]->flags & CNRITEM_EXISTS) && 758 758 !(pciSa[x]->flags & CNRITEM_SMALLER) && … … 776 776 for (x = 0; x < numS; x++) { 777 777 if (~pciSa[x]->rc.flRecordAttr & CRA_FILTERED && 778 *pciSa[x]-> szFileName &&779 *pciDa[x]-> szFileName &&778 *pciSa[x]->pszFileName && 779 *pciDa[x]->pszFileName && 780 780 pciSa[x]->flags & CNRITEM_EXISTS && 781 781 pciDa[x]->flags & CNRITEM_EXISTS) { … … 790 790 HAB hab = WinQueryAnchorBlock(hwndCnrS); 791 791 792 fp1 = _fsopen(pciSa[x]-> szFileName, "rb", SH_DENYNO);792 fp1 = _fsopen(pciSa[x]->pszFileName, "rb", SH_DENYNO); 793 793 if (!fp1) { 794 794 errLineNo = __LINE__; … … 796 796 } 797 797 else { 798 fp2 = _fsopen(pciDa[x]-> szFileName, "rb", SH_DENYNO);798 fp2 = _fsopen(pciDa[x]->pszFileName, "rb", SH_DENYNO); 799 799 if (!fp2) { 800 800 errLineNo = __LINE__; … … 857 857 for (x = 0; x < numS; x++) { 858 858 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 859 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_EXISTS)) {859 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_EXISTS)) { 860 860 if (!(pciSa[x]->rc.flRecordAttr & CRA_SELECTED)) 861 861 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 875 875 for (x = 0; x < numS; x++) { 876 876 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 877 *pciSa[x]-> szFileName && !(pciSa[x]->flags & CNRITEM_EXISTS)) {877 *pciSa[x]->pszFileName && !(pciSa[x]->flags & CNRITEM_EXISTS)) { 878 878 if (!(pciSa[x]->rc.flRecordAttr & CRA_SELECTED)) 879 879 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), 880 880 MPFROM2SHORT(TRUE, CRA_SELECTED)); 881 881 } 882 else if (*pciDa[x]-> szFileName && !(pciDa[x]->flags & CNRITEM_EXISTS)) {882 else if (*pciDa[x]->pszFileName && !(pciDa[x]->flags & CNRITEM_EXISTS)) { 883 883 if (!(pciDa[x]->rc.flRecordAttr & CRA_SELECTED)) 884 884 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 895 895 for (x = 0; x < numS; x++) { 896 896 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 897 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_LARGER)) {897 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_LARGER)) { 898 898 if (!(pciSa[x]->rc.flRecordAttr & CRA_SELECTED)) 899 899 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 901 901 } 902 902 else if (!(pciDa[x]->rc.flRecordAttr & CRA_FILTERED) && 903 *pciDa[x]-> szFileName && (pciDa[x]->flags & CNRITEM_LARGER)) {903 *pciDa[x]->pszFileName && (pciDa[x]->flags & CNRITEM_LARGER)) { 904 904 if (!(pciDa[x]->rc.flRecordAttr & CRA_SELECTED)) 905 905 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 916 916 for (x = 0; x < numS; x++) { 917 917 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 918 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_SMALLER)) {918 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_SMALLER)) { 919 919 if (!(pciSa[x]->rc.flRecordAttr & CRA_SELECTED)) 920 920 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 922 922 } 923 923 else if (!(pciDa[x]->rc.flRecordAttr & CRA_FILTERED) && 924 *pciDa[x]-> szFileName && (pciDa[x]->flags & CNRITEM_SMALLER)) {924 *pciDa[x]->pszFileName && (pciDa[x]->flags & CNRITEM_SMALLER)) { 925 925 if (!(pciDa[x]->rc.flRecordAttr & CRA_SELECTED)) 926 926 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 937 937 for (x = 0; x < numS; x++) { 938 938 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 939 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_NEWER)) {939 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_NEWER)) { 940 940 if (!(pciSa[x]->rc.flRecordAttr & CRA_SELECTED)) 941 941 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 943 943 } 944 944 else if (!(pciDa[x]->rc.flRecordAttr & CRA_FILTERED) && 945 *pciDa[x]-> szFileName && (pciDa[x]->flags & CNRITEM_NEWER)) {945 *pciDa[x]->pszFileName && (pciDa[x]->flags & CNRITEM_NEWER)) { 946 946 if (!(pciDa[x]->rc.flRecordAttr & CRA_SELECTED)) 947 947 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 958 958 for (x = 0; x < numS; x++) { 959 959 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 960 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_OLDER)) {960 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_OLDER)) { 961 961 if (!(pciSa[x]->rc.flRecordAttr & CRA_SELECTED)) 962 962 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 964 964 } 965 965 else if (!(pciDa[x]->rc.flRecordAttr & CRA_FILTERED) && 966 *pciDa[x]-> szFileName && (pciDa[x]->flags & CNRITEM_OLDER)) {966 *pciDa[x]->pszFileName && (pciDa[x]->flags & CNRITEM_OLDER)) { 967 967 if (!(pciDa[x]->rc.flRecordAttr & CRA_SELECTED)) 968 968 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 979 979 for (x = 0; x < numS; x++) { 980 980 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 981 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_EXISTS)) {981 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_EXISTS)) { 982 982 if (pciSa[x]->rc.flRecordAttr & CRA_SELECTED) 983 983 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 997 997 for (x = 0; x < numS; x++) { 998 998 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 999 *pciSa[x]-> szFileName && !(pciSa[x]->flags & CNRITEM_EXISTS)) {999 *pciSa[x]->pszFileName && !(pciSa[x]->flags & CNRITEM_EXISTS)) { 1000 1000 if (pciSa[x]->rc.flRecordAttr & CRA_SELECTED) 1001 1001 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), 1002 1002 MPFROM2SHORT(FALSE, CRA_SELECTED)); 1003 1003 } 1004 else if (*pciDa[x]-> szFileName && !(pciDa[x]->flags & CNRITEM_EXISTS)) {1004 else if (*pciDa[x]->pszFileName && !(pciDa[x]->flags & CNRITEM_EXISTS)) { 1005 1005 if (pciDa[x]->rc.flRecordAttr & CRA_SELECTED) 1006 1006 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 1017 1017 for (x = 0; x < numS; x++) { 1018 1018 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 1019 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_LARGER)) {1019 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_LARGER)) { 1020 1020 if (pciSa[x]->rc.flRecordAttr & CRA_SELECTED) 1021 1021 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 1023 1023 } 1024 1024 else if (!(pciDa[x]->rc.flRecordAttr & CRA_FILTERED) && 1025 *pciDa[x]-> szFileName && (pciDa[x]->flags & CNRITEM_LARGER)) {1025 *pciDa[x]->pszFileName && (pciDa[x]->flags & CNRITEM_LARGER)) { 1026 1026 if (pciDa[x]->rc.flRecordAttr & CRA_SELECTED) 1027 1027 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 1038 1038 for (x = 0; x < numS; x++) { 1039 1039 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 1040 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_SMALLER)) {1040 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_SMALLER)) { 1041 1041 if (pciSa[x]->rc.flRecordAttr & CRA_SELECTED) 1042 1042 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 1044 1044 } 1045 1045 else if (!(pciDa[x]->rc.flRecordAttr & CRA_FILTERED) && 1046 *pciDa[x]-> szFileName && (pciDa[x]->flags & CNRITEM_SMALLER)) {1046 *pciDa[x]->pszFileName && (pciDa[x]->flags & CNRITEM_SMALLER)) { 1047 1047 if (pciDa[x]->rc.flRecordAttr & CRA_SELECTED) 1048 1048 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 1059 1059 for (x = 0; x < numS; x++) { 1060 1060 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 1061 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_NEWER)) {1061 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_NEWER)) { 1062 1062 if (pciSa[x]->rc.flRecordAttr & CRA_SELECTED) 1063 1063 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 1065 1065 } 1066 1066 else if (!(pciDa[x]->rc.flRecordAttr & CRA_FILTERED) && 1067 *pciDa[x]-> szFileName && (pciDa[x]->flags & CNRITEM_NEWER)) {1067 *pciDa[x]->pszFileName && (pciDa[x]->flags & CNRITEM_NEWER)) { 1068 1068 if (pciDa[x]->rc.flRecordAttr & CRA_SELECTED) 1069 1069 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]), … … 1080 1080 for (x = 0; x < numS; x++) { 1081 1081 if (!(pciSa[x]->rc.flRecordAttr & CRA_FILTERED) && 1082 *pciSa[x]-> szFileName && (pciSa[x]->flags & CNRITEM_OLDER)) {1082 *pciSa[x]->pszFileName && (pciSa[x]->flags & CNRITEM_OLDER)) { 1083 1083 if (pciSa[x]->rc.flRecordAttr & CRA_SELECTED) 1084 1084 WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciSa[x]), … … 1086 1086 } 1087 1087 else if (!(pciDa[x]->rc.flRecordAttr & CRA_FILTERED) && 1088 *pciDa[x]-> szFileName && (pciDa[x]->flags & CNRITEM_OLDER)) {1088 *pciDa[x]->pszFileName && (pciDa[x]->flags & CNRITEM_OLDER)) { 1089 1089 if (pciDa[x]->rc.flRecordAttr & CRA_SELECTED) 1090 1090 WinSendMsg(hwndCnrD, CM_SETRECORDEMPHASIS, MPFROMP(pciDa[x]),
Note:
See TracChangeset
for help on using the changeset viewer.