Changeset 766 for trunk/dll/grep.c
- Timestamp:
- Aug 5, 2007, 10:21:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/grep.c
r756 r766 258 258 WinCancelShutdown(ghmq, TRUE); 259 259 IncrThreadUsage(); 260 DosSleep(128 L);260 DosSleep(128); 261 261 WinSetWindowText(grep.hwndCurFile, 262 262 GetPString((grep.finddupes) ? … … 438 438 domatchingfiles(grep, searchPath, fle, numfls); 439 439 doallsubdirs(grep, searchPath, TRUE, fle, numfls); 440 DosSleep( 0L);441 } 442 } 443 findCount = 1 L;440 DosSleep(1); 441 } 442 } 443 findCount = 1; 444 444 } while (!DosFindNext(findHandle, 445 445 &findBuffer, … … 525 525 (PULONG) & findCount); 526 526 if (!rc) 527 DosSleep(1 L);527 DosSleep(1); 528 528 } while (!rc); 529 529 DosFindClose(findHandle); … … 596 596 } 597 597 if (grep->toinsert == grep->FilesToGet) 598 DosSleep(1 L);598 DosSleep(1); 599 599 freegreplist(grep); 600 600 PostMsg(grep->hwndFiles, UM_RESCAN, MPVOID, MPVOID); … … 808 808 } // while 809 809 Free_FEAList(head); 810 DosSleep(1 L);810 DosSleep(1); 811 811 } 812 812 } … … 842 842 } 843 843 free(input); 844 DosSleep(1 L);844 DosSleep(1); 845 845 } 846 846 } // if … … 954 954 else 955 955 break; 956 DosSleep( 0L);956 DosSleep(1); 957 957 } 958 958 fclose(fp); 959 DosSleep(1 L);959 DosSleep(1); 960 960 } 961 961 free(buffer); … … 1114 1114 CHAR **list = NULL; 1115 1115 INT numfiles = 0, numalloced = 0, error; 1116 register ULONG x = 0 L, y = 0L;1116 register ULONG x = 0, y = 0; 1117 1117 ULONG cntr = 100; 1118 1118 … … 1126 1126 if (x) { 1127 1127 WinSetWindowText(g->hwndCurFile, GetPString(IDS_GREPDUPESORTINGTEXT)); 1128 DosSleep(1 L);1128 DosSleep(1); 1129 1129 g->dupenames = xmalloc(sizeof(DUPES *) * (x + 1), pszSrcFile, __LINE__); 1130 1130 if (!g->nosizedupes) … … 1142 1142 if (!g->nosizedupes) 1143 1143 g->dupesizes[y] = NULL; 1144 DosSleep(1 L);1144 DosSleep(1); 1145 1145 qsort(g->dupenames, 1146 1146 x, 1147 1147 sizeof(DUPES *), 1148 1148 ((g->ignoreextdupes) ? comparenamesqe : comparenamesq)); 1149 DosSleep(1 L);1149 DosSleep(1); 1150 1150 if (!g->nosizedupes) { 1151 1151 qsort(g->dupesizes, x, sizeof(DUPES *), comparesizesq); 1152 DosSleep(1 L);1152 DosSleep(1); 1153 1153 } 1154 1154 WinSetWindowText(g->hwndCurFile, GetPString(IDS_GREPDUPECOMPARINGTEXT)); 1155 1155 1156 1156 i = g->dupehead; 1157 y = 0 L;1157 y = 0; 1158 1158 while (i) { 1159 1159 if (*g->stopflag) … … 1286 1286 sprintf(s, GetPString(IDS_GREPDUPECHECKPROGTEXT), y, g->numfiles); 1287 1287 WinSetWindowText(g->hwndCurFile, s); 1288 DosSleep(128 L);1288 DosSleep(128); 1289 1289 } 1290 1290 DosSleep(y % 2); … … 1295 1295 DosBeep(50, 100); 1296 1296 WinSetWindowText(g->hwndCurFile, GetPString(IDS_GREPDUPECOMPARINGTEXT)); 1297 x = y = 0 L;1297 x = y = 0; 1298 1298 if (g->dupenames) { 1299 1299 free(g->dupenames); … … 1315 1315 sprintf(s, GetPString(IDS_GREPDUPECHECKPROGTEXT), y, g->numfiles); 1316 1316 WinSetWindowText(g->hwndCurFile, s); 1317 DosSleep( 0L);1317 DosSleep(1); 1318 1318 } 1319 1319 y++; … … 1374 1374 } 1375 1375 } 1376 else if (!(x % 100 L))1377 DosSleep(1 L);1376 else if (!(x % 100)) 1377 DosSleep(1); 1378 1378 } 1379 1379 c = c->next;
Note:
See TracChangeset
for help on using the changeset viewer.