Changeset 689
- Timestamp:
- Jun 15, 2007, 8:33:24 AM (18 years ago)
- Location:
- trunk/dll
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r688 r689 58 58 #include <share.h> 59 59 #include <limits.h> 60 #include <process.h> // _beginthread 60 61 61 62 #include "fm3dll.h" -
trunk/dll/autoview.c
r593 r689 17 17 15 Aug 06 SHL Use Runtime_Error more 18 18 03 Nov 06 SHL Renames 19 30Mar 07 GKY Remove GetPString for window class names19 30 Mar 07 GKY Remove GetPString for window class names 20 20 21 21 ***********************************************************************/ … … 30 30 #include <string.h> 31 31 #include <ctype.h> 32 #include <process.h> // _beginthread 32 33 33 34 #include "fm3dll.h" -
trunk/dll/avl.c
r618 r689 703 703 CHAR szPCItemText[256]; // Parent or child item text 704 704 SHORT i; 705 APIRET apiret;706 705 BOOL fShowAll; 707 706 -
trunk/dll/avv.c
r574 r689 61 61 { 62 62 ARCDUMP ad; 63 FILE *fp;64 63 ARC_TYPE *pat; 65 64 -
trunk/dll/cmdline.c
r574 r689 26 26 #include <ctype.h> 27 27 #include <share.h> 28 #include <io.h> // unlink 28 29 29 30 #include "fm3dll.h" -
trunk/dll/collect.c
r688 r689 54 54 #include <share.h> 55 55 #include <limits.h> 56 #include <process.h> // _beginthread 56 57 57 58 #include "fm3dll.h" … … 2114 2115 ULONG numitems; 2115 2116 USHORT usOperation; 2116 APIRET rc;2117 2117 2118 2118 pci = (PCNRITEM) ((PCNRDRAGINFO) mp2)->pRecord; -
trunk/dll/comp.c
r574 r689 39 39 #include <share.h> 40 40 #include <io.h> 41 #include <process.h> // _beginthread 41 42 42 43 #include "fm3dll.h" -
trunk/dll/datamin.c
r593 r689 34 34 #include <ctype.h> 35 35 #include <limits.h> 36 #include <process.h> // _beginthread 36 37 37 38 #include "fm3dll.h" … … 602 603 pszFSystem = "N/A"; 603 604 else { 604 pszFSystem = pDM->fsqb2.szName+ pDM->fsqb2.cbName + 1;605 pszFSystem = (PCHAR)(pDM->fsqb2.szName) + pDM->fsqb2.cbName + 1; 605 606 pszFSystem[15] = 0; 606 607 } -
trunk/dll/defview.c
r630 r689 14 14 18 Mar 07 GKY Open mp3, ogg & flac files with OS2 object default since fm2play fails 15 15 21 Apr 07 GKY Find FM2Utils by path or utils directory 16 09 Jun 07 SHL ShowMultimedia: Initialize hwnd so that OpenObject might work 16 17 17 18 ***********************************************************************/ … … 52 53 MMFORMATINFO mmFormatInfo; 53 54 APIRET rc, rc1; 54 HWND hwnd ;55 HWND hwnd = HWND_DESKTOP; 55 56 char *p; 56 57 -
trunk/dll/dircnrs.c
r688 r689 47 47 #include "fm3str.h" 48 48 #include "mle.h" 49 #include <process.h> // _beginthread 49 50 50 51 #pragma data_seg(DATA1) … … 1059 1060 DIRCNRDATA *dcd = INSTDATA(hwnd); 1060 1061 DIRCNRDATA *dcdsrc; 1061 APIRET rc;1062 1062 1063 1063 switch (msg) { … … 3013 3013 HWND hwndMLE; 3014 3014 static CHAR szData[CCHMAXPATH]; 3015 CHAR testname[CCHMAXPATH] , *p;3015 CHAR testname[CCHMAXPATH]; 3016 3016 3017 3017 if (!pci && !pfi) { -
trunk/dll/dirsize.c
r574 r689 37 37 #include <string.h> 38 38 #include <ctype.h> 39 #include <process.h> // _beginthread 39 40 40 41 #include "fm3dll.h" … … 886 887 if (pState->working) { 887 888 pState->dying = TRUE; 888 pState->chStopFlag = 0xff;889 pState->chStopFlag = (BYTE)0xff; 889 890 DosBeep(1000, 100); // Complain? 890 891 } … … 899 900 pState = INSTDATA(hwnd); 900 901 if (pState) 901 pState->chStopFlag = 0xff;902 pState->chStopFlag = (BYTE)0xff; 902 903 DosSleep(1L); 903 904 break; … … 906 907 pState = INSTDATA(hwnd); 907 908 if (pState) { 908 pState->chStopFlag = 0xff;909 pState->chStopFlag = (BYTE)0xff; 909 910 if (pState->hptr) 910 911 WinDestroyPointer(pState->hptr); -
trunk/dll/error.c
r636 r689 233 233 CHAR szMsg[4096]; 234 234 va_list va; 235 PSZ psz;236 235 237 236 // Format caller's message … … 317 316 { 318 317 CHAR szMsg[4096]; 319 PSZ psz;320 HAB hab;321 318 va_list va; 322 319 -
trunk/dll/filldir.c
r572 r689 109 109 HPOINTER hptr2; 110 110 HPOINTER hptr3; 111 LONG l;112 111 UINT u; 113 112 … … 950 949 fDummy = TRUE; 951 950 *suggest = 0; 952 for (x = 0; x < 26; x++) 951 for (x = 0; x < 26; x++) { 953 952 driveflags[x] &= (DRIVE_IGNORE | DRIVE_NOPRESCAN | DRIVE_NOLOADICONS | 954 953 DRIVE_NOLOADSUBJS | DRIVE_NOLOADLONGS | 955 954 DRIVE_INCLUDEFILES | DRIVE_SLOW | DRIVE_NOSTATS); 955 } 956 956 memset(driveserial, -1, sizeof(driveserial)); 957 957 { … … 974 974 exit(0); 975 975 } 976 for (x = 0; x < 26; x++) 976 for (x = 0; x < 26; x++) { 977 977 if ((ulDriveMap & (1L << x)) && !(driveflags[x] & DRIVE_IGNORE)) 978 978 numtoinsert++; 979 if (numtoinsert) 979 } 980 if (numtoinsert) { 980 981 pciFirst = WinSendMsg(hwndCnr, 981 982 CM_ALLOCRECORD, 982 983 MPFROMLONG(EXTRA_RECORD_BYTES2), 983 984 MPFROMLONG((ULONG) numtoinsert)); 985 } 984 986 if (!pciFirst) { 985 987 Win_Error2(hwndCnr, hwndCnr, pszSrcFile, __LINE__, IDS_CMALLOCRECERRTEXT); … … 987 989 } 988 990 else { 991 989 992 pci = pciFirst; 990 993 for (x = 0; x < 26; x++) { 991 if ((ulDriveMap & (1L << x)) && !(driveflags[x] & DRIVE_IGNORE)) 992 { 994 if ((ulDriveMap & (1L << x)) && !(driveflags[x] & DRIVE_IGNORE)) { 993 995 *szDrive = (CHAR) x + 'A'; 994 996 … … 1142 1144 else if (!(ulDriveMap & (1L << x))) 1143 1145 driveflags[x] |= DRIVE_INVALID; 1144 } 1146 } // for drives 1147 1145 1148 PostMsg(hwndMain, UM_BUILDDRIVEBAR, MPVOID, MPVOID); 1146 1149 drivesbuilt = TRUE; … … 1161 1164 IDS_CMINSERTERRTEXT); 1162 1165 } 1166 1163 1167 /* move cursor onto the default drive rather than the first drive */ 1164 1168 if (!fSwitchTree) { … … 1181 1185 } 1182 1186 1183 if (hwndParent) 1187 if (hwndParent) { 1184 1188 WinSendMsg(WinWindowFromID(WinQueryWindow(hwndParent, QW_PARENT), 1185 1189 MAIN_DRIVELIST), 1186 1190 LM_DELETEALL, MPVOID, MPVOID); 1191 } 1187 1192 1188 1193 if (fShowEnv) { … … 1264 1269 CM_FREERECORD, MPFROMP(&pciParent), MPFROMSHORT(1)); 1265 1270 } 1266 } 1271 } // if show env 1267 1272 1268 1273 x = 0; … … 1295 1300 } 1296 1301 } 1297 else 1302 else { 1298 1303 WinSendMsg(hwndCnr, 1299 1304 CM_INVALIDATERECORD, 1300 1305 MPFROMP(&pci), 1301 1306 MPFROM2SHORT(1, CMA_ERASE | CMA_REPOSITION)); 1307 } 1302 1308 1303 1309 WinSendMsg(WinWindowFromID(WinQueryWindow(hwndParent, QW_PARENT), -
trunk/dll/findrec.c
r551 r689 73 73 pci = WinSendMsg(hwndCnr, CM_SEARCHSTRING, MPFROMP(&srch), MPFROMP(pci)); 74 74 } 75 Abort: 75 76 76 return NULL; /* failure */ 77 77 } -
trunk/dll/fm3dll.h
r688 r689 47 47 23 Apr 07 SHL Add Win_Error_NoMsgBox 48 48 12 May 07 SHL Add ulItemsToUnHilite to DIRCNRDATA, pass to Unhilite as arg 49 05 Jun 07 SHL Update for OpenWatcom 49 50 10 Jun 07 GKY Add CheckPmDrgLimit including IsFm2Window as part of work around PM drag limit 50 51 51 52 ***********************************************************************/ 52 53 54 #if defined(__IBMC__) 53 55 #if __IBMC__ != 430 54 56 #error VAC365 required for long long support 55 57 #endif 56 57 58 #if !defined(_LONG_LONG) 58 59 #error Long long support not enabled 60 #endif 59 61 #endif 60 62 … … 1120 1122 MRESULT EXPENTRY SetDrvProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); 1121 1123 1124 #if defined(__IBMC__) 1122 1125 /* fsopen.c */ 1123 1126 FILE *_fsopen(CHAR * filename, CHAR * mode, INT sharemode, ...); 1127 #endif 1124 1128 1125 1129 /* seticon.c */ -
trunk/dll/fsopen.c
r551 r689 1 2 /*********************************************************************** 3 4 $Id$ 5 6 _fsopen for IBMC 7 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2007 Steven H. Levine 10 11 15 Oct 02 SHL Baseline 12 05 Jun 07 SHL Update for OpenWatcom 13 14 ***********************************************************************/ 15 16 #if defined(__IBMC__) 17 1 18 #define INCL_WIN 2 19 #define INCL_DOS … … 69 86 return fp; 70 87 } 88 89 #endif -
trunk/dll/grep.c
r551 r689 349 349 if (WinIsWindow(grep.ghab, grep.hwndFiles)) 350 350 doinsertion(&grep); /* insert any remaining objects */ 351 } 352 353 ShutDownThread: /* kill pm connection, end thread */ 351 } // while 354 352 355 353 if (WinIsWindow(grep.ghab, grep.hwndFiles)) … … 845 843 DosSleep(1L); 846 844 } 847 } 848 849 Match: 845 } // if 850 846 851 847 if (strmatch) … … 1257 1253 if ((*r)->CRC != -1L && i->CRC != -1L && 1258 1254 (*r)->CRC != i->CRC) { 1259 *r ++;1255 *r += 1; 1260 1256 continue; 1261 1257 } … … 1323 1319 pi = strrchr(i->name, '\\'); 1324 1320 if (pi) 1325 *pi++;1321 pi++; 1326 1322 else 1327 1323 pi = i->name; -
trunk/dll/grep2.c
r551 r689 37 37 #include <share.h> 38 38 #include <limits.h> 39 #include <process.h> // _beginthread 39 40 40 41 #include "fm3dll.h" -
trunk/dll/info.c
r618 r689 148 148 if (!rc) { 149 149 pfsq = (PFSQBUFFER2) s; 150 pfsn = pfsq->szName+ pfsq->cbName + 1;150 pfsn = (PCHAR)(pfsq->szName) + pfsq->cbName + 1; 151 151 pfsd = pfsn + pfsq->cbFSDName + 1; 152 152 if (pfsq->cbFSAData && pfsd && *pfsd) { -
trunk/dll/inis.c
r618 r689 33 33 #include <ctype.h> 34 34 #include <share.h> 35 #include <process.h> // _beginthread 35 36 36 37 #include "fm3dll.h" … … 1487 1488 PFNWP oldproc = (PFNWP) WinQueryWindowPtr(hwnd, QWL_USER); 1488 1489 static HWND hwndPopup = (HWND) 0; 1489 APIRET rc;1490 1490 1491 1491 switch (msg) { -
trunk/dll/init.c
r633 r689 122 122 pp = p; 123 123 while (*pp && *pp != '\"') 124 *pp ++;124 *pp += 1; 125 125 if (*pp) 126 126 *pp = 0; … … 255 255 /* end of strings */ 256 256 memset(&RGBBLACK, 0, sizeof(RGB2)); 257 RGBGREY.bRed = RGBGREY.bGreen = RGBGREY.bBlue = 204;257 RGBGREY.bRed = RGBGREY.bGreen = RGBGREY.bBlue = (BYTE)204; 258 258 RGBGREY.fcOptions = 0; 259 259 FM3UL = *(ULONG *) FM3Str; … … 300 300 save_tools(NULL); 301 301 302 # ifdef __IBMC__ 302 303 _fcloseall(); 304 # else // __WATCOMC__ 305 fcloseall(); 306 # endif 303 307 304 308 save_dir(s); -
trunk/dll/mainwnd.c
r688 r689 53 53 #include <ctype.h> 54 54 #include <share.h> 55 #include <process.h> // _beginthread 55 56 56 57 #include "fm3dll.h" … … 1541 1542 1542 1543 memset(&rgb, 0, sizeof(rgb)); 1543 rgb.bRed = 128;1544 rgb.bRed = (BYTE)128; 1544 1545 SetPresParams(hwnd, 1545 1546 &RGBGREY, &rgb, &RGBGREY, GetPString(IDS_8HELVTEXT)); -
trunk/dll/mainwnd2.c
r672 r689 30 30 #include <ctype.h> 31 31 #include <share.h> 32 #include <process.h> // _beginthread 32 33 33 34 #include "fm3dll.h" -
trunk/dll/misc.c
r688 r689 38 38 #include <ctype.h> 39 39 #include <share.h> 40 #include <malloc.h> // headmin 40 41 41 42 #include "fm3dll.h" … … 669 670 PFIELDINFO pfi = ((PCNREDITDATA) mp2)->pFieldInfo; 670 671 PCNRITEM pci = (PCNRITEM) ((PCNREDITDATA) mp2)->pRecord; 671 CHAR szData[CCHMAXPATH], testname[CCHMAXPATH] , *p;672 CHAR szData[CCHMAXPATH], testname[CCHMAXPATH]; 672 673 HWND hwndMLE = WinWindowFromID(hwnd, CID_MLE); 673 674 -
trunk/dll/mle.c
r578 r689 26 26 #include <ctype.h> 27 27 #include <share.h> 28 #include <process.h> // _beginthread 28 29 29 30 #include "fm3dll.h" -
trunk/dll/notify.c
r593 r689 27 27 #include <time.h> 28 28 #include <stddef.h> 29 #include <process.h> // _beginthread 29 30 30 31 #include "fm3dll.h" … … 63 64 64 65 memset(&rgb2F, 0, sizeof(RGB2)); 65 rgb2F.bRed = 65;66 rgb2.bRed = rgb2.bGreen = rgb2.bBlue = 255;66 rgb2F.bRed = (BYTE)65; 67 rgb2.bRed = rgb2.bGreen = rgb2.bBlue = (BYTE)255; 67 68 rgb2.fcOptions = 0; 68 69 SetPresParams(hwnd, &rgb2, &rgb2F, &rgb2, GetPString(IDS_8HELVTEXT)); -
trunk/dll/objcnr.c
r574 r689 26 26 #include <string.h> 27 27 #include <ctype.h> 28 #include <process.h> // _beginthread 28 29 29 30 #include "fm3dll.h" … … 407 408 if (data) { 408 409 if (data->working) { 409 data->dying = TRUE;410 data->stopflag = 0xff;410 data->dying = (CHAR)TRUE; 411 data->stopflag = (CHAR)0xff; 411 412 break; 412 413 } -
trunk/dll/presparm.c
r551 r689 26 26 #include "fm3dll.h" 27 27 28 static PSZ pszSrcFile = __FILE__;28 // static PSZ pszSrcFile = __FILE__; 29 29 30 30 #pragma alloc_text(PRESPARAM,CopyPresParams,SetPresParams,IfNoParam) -
trunk/dll/remap.c
r551 r689 25 25 #include <time.h> 26 26 #include <share.h> 27 #include <io.h> // unlink 27 28 28 29 #include "fm3dll.h" -
trunk/dll/select.c
r672 r689 466 466 didone = TRUE; 467 467 if (pulTotalFiles) 468 *pulTotalFiles --;468 *pulTotalFiles -= 1; 469 469 if (pullTotalBytes) 470 470 *pullTotalBytes -= (pci->cbFile + pci->easize); -
trunk/dll/timer.c
r551 r689 22 22 #include <stdlib.h> 23 23 #include <string.h> 24 #include <process.h> // _beginthread 24 25 25 26 #include "fm3dll.h" -
trunk/dll/treecnr.c
r688 r689 48 48 #include <string.h> 49 49 #include <ctype.h> 50 #include <process.h> // _beginthread 50 51 51 52 #include "fm3dll.h" -
trunk/dll/undel.c
r551 r689 25 25 #include <time.h> 26 26 #include <ctype.h> 27 #include <process.h> // _beginthread 27 28 28 29 #include "fm3dll.h" -
trunk/dll/valid.c
r555 r689 69 69 70 70 // Return filename, strip path parts 71 // Return empty string when filename ends with \71 // Return empty string when filename ends with backslash 72 72 73 73 if (filename) { … … 235 235 236 236 pfsq = (PFSQBUFFER2) pvBuffer; 237 pfsn = pfsq->szName+ pfsq->cbName + 1;237 pfsn = (PCHAR)(pfsq->szName) + pfsq->cbName + 1; 238 238 pfsd = pfsn + pfsq->cbFSDName + 1; 239 239 -
trunk/dll/viewinf.c
r551 r689 27 27 #include <ctype.h> 28 28 #include <share.h> 29 #include <process.h> // _beginthread 29 30 30 31 #include "fm3dll.h" -
trunk/dll/worker.c
r631 r689 35 35 #include <share.h> 36 36 #include <time.h> 37 #include <process.h> // _beginthread 37 38 38 39 #include "fm3dll.h" … … 1615 1616 FreeList(files); 1616 1617 } 1617 Abort:1618 1618 if (WinIsWindow(hab2, wk->hwndCnr)) 1619 1619 PostMsg(wk->hwndCnr, UM_RESCAN, MPVOID, MPVOID);
Note:
See TracChangeset
for help on using the changeset viewer.