Changeset 1242
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r1220 r1242 519 519 ReTry: 520 520 521 #ifdef DEBUG522 if (info && info->id)523 WinSetWindowText(WinQueryWindow524 (WinQueryWindow(hwndCnr, QW_PARENT), QW_PARENT),525 info->id);526 #endif527 528 521 tinfo = NULL; 529 522 numarcfiles = counter = highest = 0; … … 729 722 RECORDINSERT ri; 730 723 PARCITEM pai; 731 732 #ifdef DEBUG733 saymsg(MB_ENTER, hwndCnr, DEBUG_STRING,734 "fname: %s\r\rpp: %s\r\rp: %s\r\rlonename: %s\r\rhighest: %ld\r\rx: %ld\r\rfdate: %s",735 fname ? fname : "NULL",736 pp ? pp : "NULL",737 p ? p : "NULL",738 lonename, highest, x, (fdate) ? fdate : "NULL");739 #endif740 724 741 725 pai = WinSendMsg(hwndCnr, -
trunk/dll/makefile
r1133 r1242 41 41 # 26 May 08 SHL Update WARNALL to warn about more 42 42 # 22 Jul 08 SHL Change from dllsyms to syms target for consistency 43 # 06 Oct 08 SHL Add missing -dDEBUG= to CFLAGS; rework lxlite suppress logic 43 44 44 45 # Environment: … … 124 125 125 126 !ifdef DEBUG 126 CFLAGS = -bt=os2 -mf -bd -bm -hd -d2 -olirs -s -sg -j -wx -zfp -zgp -zp4 -zq 127 CFLAGS = -bt=os2 -mf -bd -bm -hd -d2 -s -sg -j -wx -zfp -zgp -zp4 -zq 127 CFLAGS = -bt=os2 -mf -bd -bm -hd -d2 -olirs -s -sg -j -wx -zfp -zgp -zp4 -zq -d$DEBUG_OPT 128 CFLAGS = -bt=os2 -mf -bd -bm -hd -d2 -s -sg -j -wx -zfp -zgp -zp4 -zq -d$DEBUG_OPT 128 129 !else 129 130 CFLAGS = -bt=os2 -mf -bd -bm -hd -d1 -olirs -s -sg -j -wx -zfp -zgp -zp4 -zq … … 235 236 !ifndef DEBUG 236 237 lxlite -c:exehdr internal\mkstr.exe >nul 237 !else238 ! ifeq DEBUG 0239 lxlite -c:exehdr internal\mkstr.exe >nul240 238 ! endif 241 !endif242 239 243 240 !endif … … 299 296 lxlite $@ /x+ /b- 300 297 lxlite $@ /c:minstub 301 !else302 ! ifeq DEBUG 0303 lxlite $@ /x+ /b-304 lxlite $@ /c:minstub305 ! endif306 298 !endif 307 299 $(RC) $(RCFLAGS2) $(BASERES).res $@ 308 300 !ifndef DEBUG 309 301 lxlite $@ /x- /b- 310 !else311 ! ifeq DEBUG 0312 lxlite $@ /x- /b-313 ! endif314 302 !endif 315 303 bldlevel $@ … … 337 325 !ifndef DEBUG 338 326 @for %f in ($(BASE).dll $(BASERES).dll) do !lxlite /x- /b- %f 339 !else340 ! ifeq DEBUG 0341 @for %f in ($(BASE).dll $(BASERES).dll) do !lxlite /x- /b- %f342 ! endif343 327 !endif 344 328 -
trunk/dll/update.c
r1228 r1242 80 80 APIRET status; 81 81 82 #ifdef DEBUG83 BOOL existed = FALSE, updated = FALSE, added = FALSE, deleted =84 FALSE, found = FALSE;85 #endif86 87 82 if (!filename || !*filename) 88 83 return (PCNRITEM) NULL; … … 99 94 &ffb, sizeof(ffb), &nm, FIL_QUERYEASIZEL); 100 95 if (!status) { 101 #ifdef DEBUG102 existed = TRUE;103 #endif104 96 /* file exists */ 105 97 DosFindClose(hDir); … … 136 128 Update: 137 129 if (pci) { /* update record? */ 138 #ifdef DEBUG139 found = TRUE;140 #endif141 130 if ((!fForceUpper && !fForceLower && strcmp(pci->pszFileName, filename)) || 142 131 pci->cbFile != ffb.cbFile || pci->attrFile != ffb.attrFile || … … 150 139 ffb.ftimeLastAccess.twosecs * 2 || pci->latime.minutes != 151 140 ffb.ftimeLastAccess.minutes || pci->latime.hours != ffb.ftimeLastAccess.hours) { /* changed; update */ 152 #ifdef DEBUG153 updated = TRUE;154 #endif155 141 *ffb.achName = 0; 156 142 ffb.cchName = 0; … … 176 162 } 177 163 else { /* add record */ 178 #ifdef DEBUG179 added = TRUE;180 #endif181 164 if (dcd->type == DIR_FRAME) { 182 165 … … 314 297 NULL && (INT) pci != -1 && strlen(pci->pszFileName) > 3) { 315 298 /* file doesn't exist; delete record */ 316 #ifdef DEBUG317 found = TRUE;318 deleted = TRUE;319 #endif320 299 if (!dcd) 321 300 dcd = INSTDATA(hwndCnr); … … 330 309 PostMsg(hwndCnr, UM_RESCAN, MPVOID, MPVOID); 331 310 } 332 #ifdef DEBUG333 {334 char s[CCHMAXPATH + 80];335 336 sprintf(s, "%s:%s%s%s%s%s", filename, (existed) ? " Existed" : "",337 (updated) ? " Updated" : "", (added) ? " Added" : "",338 (deleted) ? " Deleted" : "", (found) ? " Found" : "");339 WinSetWindowText(WinQueryWindow(hwndMain, QW_PARENT), s);340 }341 #endif342 311 return pci; 343 312 }
Note:
See TracChangeset
for help on using the changeset viewer.
