Changeset 1242 for trunk/dll


Ignore:
Timestamp:
Oct 9, 2008, 1:21:13 PM (17 years ago)
Author:
John Small
Message:

Ticket 288: Ensure DEBUG is passed to compiler and cleanup obsolete #ifdef DEBUG code

Location:
trunk/dll
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1220 r1242  
    519519ReTry:
    520520
    521 #ifdef DEBUG
    522   if (info && info->id)
    523     WinSetWindowText(WinQueryWindow
    524                      (WinQueryWindow(hwndCnr, QW_PARENT), QW_PARENT),
    525                      info->id);
    526 #endif
    527 
    528521  tinfo = NULL;
    529522  numarcfiles = counter = highest = 0;
     
    729722            RECORDINSERT ri;
    730723            PARCITEM pai;
    731 
    732 #ifdef DEBUG
    733             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 #endif
    740724
    741725            pai = WinSendMsg(hwndCnr,
  • trunk/dll/makefile

    r1133 r1242  
    4141# 26 May 08 SHL Update WARNALL to warn about more
    4242# 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
    4344
    4445# Environment:
     
    124125
    125126!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
     127CFLAGS =  -bt=os2 -mf -bd -bm -hd -d2 -olirs -s -sg -j -wx -zfp -zgp -zp4 -zq -d$DEBUG_OPT
     128CFLAGS =  -bt=os2 -mf -bd -bm -hd -d2        -s -sg -j -wx -zfp -zgp -zp4 -zq -d$DEBUG_OPT
    128129!else
    129130CFLAGS =  -bt=os2 -mf -bd -bm -hd -d1 -olirs -s -sg -j -wx -zfp -zgp -zp4 -zq
     
    235236!ifndef DEBUG
    236237  lxlite -c:exehdr internal\mkstr.exe >nul
    237 !else
    238 ! ifeq DEBUG 0
    239     lxlite -c:exehdr internal\mkstr.exe >nul
    240238! endif
    241 !endif
    242239
    243240!endif
     
    299296  lxlite $@ /x+ /b-
    300297  lxlite $@ /c:minstub
    301 !else
    302 ! ifeq DEBUG 0
    303     lxlite $@ /x+ /b-
    304     lxlite $@ /c:minstub
    305 ! endif
    306298!endif
    307299  $(RC) $(RCFLAGS2) $(BASERES).res $@
    308300!ifndef DEBUG
    309301  lxlite $@ /x- /b-
    310 !else
    311 ! ifeq DEBUG 0
    312     lxlite $@ /x- /b-
    313 ! endif
    314302!endif
    315303  bldlevel $@
     
    337325!ifndef DEBUG
    338326   @for %f in ($(BASE).dll $(BASERES).dll) do !lxlite /x- /b- %f
    339 !else
    340 !  ifeq DEBUG 0
    341      @for %f in ($(BASE).dll $(BASERES).dll) do !lxlite /x- /b- %f
    342 !  endif
    343327!endif
    344328
  • trunk/dll/update.c

    r1228 r1242  
    8080  APIRET status;
    8181
    82 #ifdef DEBUG
    83   BOOL existed = FALSE, updated = FALSE, added = FALSE, deleted =
    84     FALSE, found = FALSE;
    85 #endif
    86 
    8782  if (!filename || !*filename)
    8883    return (PCNRITEM) NULL;
     
    9994                         &ffb, sizeof(ffb), &nm, FIL_QUERYEASIZEL);
    10095  if (!status) {
    101 #ifdef DEBUG
    102     existed = TRUE;
    103 #endif
    10496    /* file exists */
    10597    DosFindClose(hDir);
     
    136128  Update:
    137129    if (pci) {                          /* update record? */
    138 #ifdef DEBUG
    139       found = TRUE;
    140 #endif
    141130      if ((!fForceUpper && !fForceLower && strcmp(pci->pszFileName, filename)) ||
    142131          pci->cbFile != ffb.cbFile || pci->attrFile != ffb.attrFile ||
     
    150139          ffb.ftimeLastAccess.twosecs * 2 || pci->latime.minutes !=
    151140          ffb.ftimeLastAccess.minutes || pci->latime.hours != ffb.ftimeLastAccess.hours) {      /* changed; update */
    152 #ifdef DEBUG
    153         updated = TRUE;
    154 #endif
    155141        *ffb.achName = 0;
    156142        ffb.cchName = 0;
     
    176162    }
    177163    else {                              /* add record */
    178 #ifdef DEBUG
    179       added = TRUE;
    180 #endif
    181164      if (dcd->type == DIR_FRAME) {
    182165
     
    314297           NULL && (INT) pci != -1 && strlen(pci->pszFileName) > 3) {
    315298    /* file doesn't exist; delete record */
    316 #ifdef DEBUG
    317     found = TRUE;
    318     deleted = TRUE;
    319 #endif
    320299    if (!dcd)
    321300      dcd = INSTDATA(hwndCnr);
     
    330309    PostMsg(hwndCnr, UM_RESCAN, MPVOID, MPVOID);
    331310  }
    332 #ifdef DEBUG
    333   {
    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 #endif
    342311  return pci;
    343312}
Note: See TracChangeset for help on using the changeset viewer.