Changeset 1877


Ignore:
Timestamp:
Oct 11, 2015, 11:43:27 PM (10 years ago)
Author:
Gregg Young
Message:

Remove debug code

Location:
trunk/dll
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1851 r1877  
    502502static VOID FreeArcItemData(PARCITEM pai)
    503503{
    504   // DbgMsg(pszSrcFile, __LINE__, "FreeArcItemData %p", pai);
    505504  PSZ psz;
    506505
     
    547546    }
    548547  }
    549 
    550   // DbgMsg(pszSrcFile, __LINE__, "RemoveArcItems %p %u %s", pai, usCnt, pai->pszFileName);
    551 
    552548  if (remaining != - 1) {
    553     remaining = (INT)WinSendMsg(hwnd, CM_REMOVERECORD, MPFROMP(&paiFirst), MPFROM2SHORT(usCnt, usFlags));
     549    remaining = (INT)WinSendMsg(hwnd, CM_REMOVERECORD, MPFROMP(&paiFirst),
     550                                MPFROM2SHORT(usCnt, usFlags));
    554551    if (remaining == -1) {
    555       Win_Error(hwnd, HWND_DESKTOP, pszSrcFile, __LINE__,"CM_REMOVERECORD hwnd %x pai %p cnt %u",
     552      Win_Error(hwnd, HWND_DESKTOP, pszSrcFile, __LINE__,
     553                "CM_REMOVERECORD hwnd %x pai %p cnt %u",
    556554                hwnd, paiFirst, usCnt);
    557555    }
     
    703701          else {
    704702            rc = 0;
    705             //DbgMsg(pszSrcFile, __LINE__, "Number of tries %i", cnter);
    706703            rc = SearchPathForFile(PCSZ_PATH, s, NULL);
    707704            if (!rc) {
     
    30323029            stricmp(lastextractpath, dcd->directory)) {
    30333030          strcpy(lastextractpath, dcd->directory);
    3034           //DbgMsg(pszSrcFile, __LINE__, "Extract dir %s", dcd->directory);
    30353031          SetDir(dcd->hwndParent, hwnd, dcd->directory, 1);
    30363032        }
  • trunk/dll/assoc.c

    r1616 r1877  
    528528          dieafter = TRUE;
    529529        flags &= (~DIEAFTER);
    530         //DbgMsg(pszSrcFile, __LINE__, "env %s", info->env);
    531530        rc = ExecOnList(hwnd,
    532531                        info->pszCmdLine,
  • trunk/dll/command.c

    r1780 r1877  
    839839   else
    840840     temp->HotKeyID = 0;
    841    //DbgMsg(pszSrcFile, __LINE__, "info %i", temp->HotKeyID);
    842841   return TRUE;
    843842}
  • trunk/dll/comp.c

    r1836 r1877  
    249249      if (fp) {
    250250        fprintf(fp, "\"%s\"\n", sf->dirname);
    251         //DbgMsg(pszSrcFile, __LINE__, "recurse %i", sf->recurse);
    252251        SnapShot(sf->dirname, fp, sf->recurse);
    253252        fclose(fp);
     
    16631662      FillDirList(cmp->leftdir, lenl, cmp->includesubdirs,
    16641663                  &filesl, &cmp->cmp->totalleft, &numallocl);
    1665 
    16661664      if (filesl)
    16671665        qsort(filesl, cmp->cmp->totalleft, sizeof(CHAR *), CompNames);
    1668 
    16691666      // Build list of all files in right directory
    1670       //DbgMsg(pszSrcFile, __LINE__, "list file %s", cmp->rightlist);
    16711667      if (!*cmp->rightlist) {
    16721668        if (fForceLower)
     
    17301726            if (cmp->rightdir[strlen(cmp->rightdir) - 1] != '\\')
    17311727              lenr++;
    1732             //DbgMsg(pszSrcFile, __LINE__, "end of file %i", feof(fp));
    17331728            while (!feof(fp)) {
    17341729              if (!xfgets_bstripcr
     
    17511746                      if (p) {
    17521747                        p++;
    1753                         //DbgMsg(pszSrcFile, __LINE__, "DS %ul comma %ul", strchr(p, '/') ? strchr(p, '/') : strchr(p, DateSeparator[0]),  strchr(p, ','));
    17541748                        if (((strchr(p, '/') ? strchr(p, '/') : strchr(p, DateSeparator[0])) - strchr(p, ',')) > 5) {
    17551749                          CHAR szTemp[30];
     
    32263220              strcpy(sf->dirname, cmp->rightdir);
    32273221            sf->recurse = WinQueryButtonCheckstate(hwnd, COMP_INCLUDESUBDIRS);
    3228             //DbgMsg(pszSrcFile, __LINE__, "recurse %i %i", sf->recurse, cmp->includesubdirs);
     3222
    32293223            if (xbeginthread(StartSnapThread,
    32303224                             65536,
  • trunk/dll/copyf.c

    r1849 r1877  
    696696  FILESTATUS3 fsi;
    697697
    698   //DbgMsg(pszSrcFile, __LINE__, "error %i ", error);
    699698  DosError(FERR_DISABLEHARDERR);
    700699  rc = DosQueryPathInfo(filename, FIL_STANDARD, &fsi, sizeof(fsi));
     
    707706                     GetPString(IDS_READONLYFILEWARNING),
    708707                      filename);
    709       //DbgMsg(pszSrcFile, __LINE__, "retrn %x ", retrn);
    710708      ret = retrn;
    711709      if (retrn == SM2_YES || retrn == SM2_DONTASK)
     
    739737      ret = SM2_NO;
    740738  }
    741   //DbgMsg(pszSrcFile, __LINE__, "retrn %x ", ret);
    742739  return ret;
    743740}
  • trunk/dll/defview.c

    r1783 r1877  
    160160
    161161  // if identified and not FOURCC_DOS  MPEGs are misidentified as DOS
    162   //DbgMsg(pszSrcFile, __LINE__, "FOUCC %x %s %i", mmFormatInfo.fccIOProc,
    163   //       mmFormatInfo.szDefaultFormatExt, mmFormatInfo.ulMediaType);
    164162  if (!rc && (mmFormatInfo.fccIOProc != FOURCC_DOS ||
    165163              !stricmp(p, PCSZ_DOTMPG) || !stricmp(p, PCSZ_DOTMPEG))) {
  • trunk/dll/dircnrs.c

    r1874 r1877  
    915915      if (hwndTree) {
    916916        // 2015-08-12 SHL Optimze to update drive tree for only last saved state
    917 
    918 #if 0        // 2015-08-13 SHL
    919         if (fSwitchTreeOnDirChg)
    920           DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
    921 #endif
    922917        if (fSwitchTreeOnDirChg) {
    923918          // Keep drive tree in sync with directory container
     
    927922            if (hwndMain) {
    928923              if (TopWindow(hwndMain, (HWND)0) == dcd->hwndFrame) {
    929                 //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    930924                if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    931925                  free(pszTempDir);
     
    933927            }
    934928            else {
    935               //DbgMsg(pszSrcFile, __LINE__, "DirObjWndProc UM_RESCAN PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    936929              if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    937930                free(pszTempDir);
     
    14451438      if (fSwitchTreeOnFocus && hwndTree && dcd && *dcd->directory) {
    14461439        PSZ pszTempDir = xstrdup(dcd->directory, pszSrcFile, __LINE__);
    1447         //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
    14481440        if (pszTempDir) {
    1449           //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc WM_SETFOCUS PostMsg(UM_SHOWME, %s)", pszTempDir); // 2015-08-04 SHL FIXME debug
    14501441          if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID))
    14511442            free(pszTempDir);           // Failed
     
    14661457          strcpy(dcd->previous, dcd->directory);
    14671458          strcpy(dcd->directory, fullname);
    1468           // DosEnterCritSec(); // GKY 11-27-08
    14691459          dcd->stopflag++;
    1470           // DosExitCritSec();
    1471           // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    14721460          if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    14731461            strcpy(dcd->directory, dcd->previous);
    1474             // DosEnterCritSec(); // GKY 11-27-08
    14751462            dcd->stopflag--;
    1476             // DosExitCritSec();
    14771463          }
    14781464          else if (*dcd->directory) {
     
    14901476  case WM_TIMER:
    14911477    // Started/stopped by DirObjWndPro
    1492     // dcd = WinQueryWindowPtr(hwnd, QWL_USER);
    14931478    if (dcd) {
    14941479      commafmt(tb, sizeof(tb), dcd->totalfiles);
    14951480      CommaFmtULL(tf, sizeof(tf), dcd->ullTotalBytes, 'K');
    14961481      sprintf(s, "%s / %s", tb, tf);
    1497       // DbgMsg(pszSrcFile, __LINE__, "WM_TIMER %s", s);        // 15 Sep 09 SHL fixme debug
    14981482      WinSetDlgItemText(dcd->hwndClient, DIR_TOTALS, s);
    14991483    }
     
    16741658        }
    16751659        else
    1676           DosSleep(32); // 05 Aug 07 GKY 64
     1660          DosSleep(32);
    16771661        WinEnableMenuItem(DirCnrMenu, IDM_FINDINTREE, (hwndTree != (HWND) 0));
    16781662      }
     
    16881672  case UM_SETUP2:
    16891673    if (dcd) {
    1690       // DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc UM_SETUP2 %x", hwnd);
    16911674      AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE);
    16921675      SayFilter(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
     
    19861969
    19871970          if (pszTempDir) {
    1988             //DbgMsg(pszSrcFile, __LINE__, "DirCnrWndProc IDM_FINDINTREE PostMsg(UM_SHOWME)"); // 2015-08-04 SHL FIXME debug
    19891971            if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir),
    19901972                            MPFROMLONG(1L)))
     
    23732355
    23742356      case IDM_RESCAN:
    2375         dcd->stopflag++;;
    2376         // DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
     2357        dcd->stopflag++;
    23772358        if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPVOID)) {
    23782359          dcd->stopflag--;
     
    25092490          strcpy(dcd->directory, (CHAR *)mp2);
    25102491          dcd->stopflag++;
    2511           //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    25122492          if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    25132493            strcpy(dcd->directory, dcd->previous);
     
    25392519              strcpy(dcd->directory, tempname2);
    25402520              dcd->stopflag++;
    2541               //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    25422521              if (!PostMsg(dcd->hwndObject,
    25432522                           UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
     
    25672546            strcpy(dcd->directory, dcd->previous);
    25682547            strcpy(dcd->previous, tempname);
    2569             dcd->stopflag++; ;
    2570             //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
     2548            dcd->stopflag++;
    25712549            if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    25722550              strcpy(dcd->directory, dcd->previous);
     
    26022580            strcpy(dcd->directory, newdir);
    26032581            dcd->stopflag++;
    2604             //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    26052582            if (!PostMsg(dcd->hwndObject, UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
    26062583              strcpy(dcd->directory, dcd->previous);
     
    28782855                  // 2015-08-07 SHL FIXME to wait for Flesh to finish before PostMsg
    28792856                  // 2015-09-26 GKY Waits (WaitFleshWorkListEmpty) in object window
    2880                   DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);
    28812857                  if (SHORT2FROMMP(mp1) == CN_EXPANDTREE && AddFleshWorkRequest(hwnd, pci, eFlesh) &&
    28822858                      !dcd->suspendview && fTopDir) {
    28832859                    PostMsg(dcd->hwndObject, UM_TOPDIR, MPFROMP(pci), MPVOID);
    2884                     DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);
    28852860                  }
    28862861                }
     
    28892864            }
    28902865            else if (SHORT2FROMMP(mp1) == CN_EXPANDTREE) {
    2891               DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);
    28922866              if (AddFleshWorkRequest(hwnd, pci, eFlesh) && !dcd->suspendview &&
    28932867                  fTopDir) {
     
    28952869                // 2015-09-26 GKY Waits (WaitFleshWorkListEmpty) in object window
    28962870                PostMsg(dcd->hwndObject, UM_TOPDIR, MPFROMP(pci), MPVOID);
    2897                 DbgMsg(pszSrcFile, __LINE__, "UM_TOPDIR %p pci %p", hwnd, pci);
    28982871              }
    28992872            }
     
    34543427                  strcpy(dcd->directory, pci->pszFileName);
    34553428                  dcd->stopflag++;
    3456                   //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    34573429                  if (!PostMsg(dcd->hwndObject,
    34583430                               UM_RESCAN, MPVOID, MPFROMLONG(1))) {
     
    34983470              else {
    34993471                dcd->stopflag++;
    3500                 //DbgMsg(pszSrcFile, __LINE__, "WM_RESCAN");
    35013472                if (!PostMsg(dcd->hwndObject,
    35023473                             UM_RESCAN, MPVOID, MPFROMLONG(1L))) {
  • trunk/dll/draglist.c

    r1641 r1877  
    373373      ok = ok && pDItem->hstrTargetName;
    374374      if (!ok) {
    375         //DbgMsg(pszSrcFile, __LINE__, "DrgAddStrHandle failed at %lu for %s", ulNumfiles, szFile);
    376375        // If we have string handle add overflow, release corrupt DragItem
    377376        // We release 3 more to work around 1st time drag failure reported by Gregg
     
    488487        ok = ok && pDItem->hstrTargetName;
    489488        if (!ok) {
    490           //DbgMsg(pszSrcFile, __LINE__, "DrgAddStrHandle failed at %lu for %s", ulNumfiles, szFile);
    491489          // If we have string handle add overflow, release corrupt DragItem
    492490          // We release 3 more to work around 1st time drag failure reported by Gregg
  • trunk/dll/eas.c

    r1869 r1877  
    10611061  CHAR *p, *peaval;
    10621062
    1063   //DbgMsg(pszSrcFile, __LINE__, "SaveEA: entered for %s", filename);
    1064 
    10651063  if (!filename || !current)
    10661064    return (PVOID)pfealist;             // FIXME to complain
     
    12171215        memcmp(current->pfea->szName + current->pfea->cbName + 1,
    12181216               pfealist->list[0].szName + pfealist->list[0].cbName + 1,
    1219                current->pfea->cbValue) == 0)
    1220     {
    1221       DbgMsg(pszSrcFile, __LINE__, "SaveEA: %s unchanged", current->pfea->szName);
     1217               current->pfea->cbValue) == 0) {
     1218      //DbgMsg(pszSrcFile, __LINE__, "SaveEA: %s unchanged", current->pfea->szName);
    12221219      rc = 0;                           // Suppress rewrite
    12231220    }
     
    12251222      rc = xDosSetPathInfo(filename, FIL_QUERYEASIZE,
    12261223                           &eaop, sizeof(eaop), DSPI_WRTTHRU);
    1227       DbgMsg(pszSrcFile, __LINE__, "SaveEA: %s updated", current->pfea->szName);
     1224      //DbgMsg(pszSrcFile, __LINE__, "SaveEA: %s updated", current->pfea->szName);
    12281225    }
    12291226#else
  • trunk/dll/filldir.c

    r1873 r1877  
    397397          if (pgeaPrev) {
    398398            pgeaPrev->oNextEntryOffset = (PSZ)pgea - (PSZ)pgeaPrev;
    399             //DbgMsg(pszSrcFile, __LINE__, "pgea %p oNextEntryOffset %u", pgeaPrev, pgeaPrev->oNextEntryOffset);
    400399          }
    401400          strcpy(pgea->szName, pcsz);
    402401          pgea->cbName = strlen(pgea->szName);
    403402          pgea->oNextEntryOffset = 0;
    404           //DbgMsg(pszSrcFile, __LINE__, "pgea %p cbName %u szName %s", pgea, pgea->cbName, pgea->szName);
    405403          offset = sizeof(GEA2) + pgea->cbName; // Calc length including null
    406404          offset = (offset + 3) & ~3;           // Doubleword align
     
    409407        }
    410408      } // for
    411 
    412409      pgealist->cbList = (PSZ)pgea - (PSZ)pgealist;
    413       //DbgMsg(pszSrcFile, __LINE__, "pgealist %p cbList %u", pgealist, pgealist->cbList);
    414 
    415410      pfealist = xmallocz(65536, pszSrcFile, __LINE__);
    416411      if (pfealist) {
     
    429424                    s, pci->pszFileName);
    430425        }
    431           //DbgMsg(pszSrcFile, __LINE__, "DosQueryPathInfo %s failed with rc %u ", pci->pszFileName, rc);
    432426        else {
    433427          PFEA2 pfea = eaop.fpFEA2List->list;
     
    439433                          GetPString(IDS_ERROREATYPETEXT),
    440434                          achValue, pfea->cbName, pfea->szName);
    441                 //DbgMsg(pszSrcFile, __LINE__, "EA type 0x%x unexpected for %.*s", achValue, pfea->cbName, pfea->szName);
    442435              else {
    443436                CHAR ch = achValue[pfea->cbValue];
     
    446439                pszValue = xstrdup(achValue + (sizeof(USHORT) * 2), pszSrcFile, __LINE__);
    447440                achValue[pfea->cbValue] = ch;
    448                 //DbgMsg(pszSrcFile, __LINE__, "pfea %p %.*s cbValue %u %s", pfea, pfea->cbName, pfea->szName, pfea->cbValue, pszValue);
    449441                if (strncmp(pfea->szName, LONGNAME, pfea->cbName) == 0)
    450442                  pci->pszLongName = pszValue;
     
    454446                  Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    455447                            GetPString(IDS_ERROREATYPETEXT), pfea, pfea->cbName, pfea->szName);
    456                   //DbgMsg(pszSrcFile, __LINE__, "pfea %p EA %.*s unexpected", pfea, pfea->cbName, pfea->szName);
    457448              }
    458449            }
     
    772763  else {
    773764    pci->pszFmtFileSize = NullStr;
    774     //DbgMsg(pszSrcFile, __LINE__, "Bypassed Format size %s", pci->pszDisplayName);
    775765  }
    776766  pci->date.day = pfsa4->fdateLastWrite.day;
     
    12051195    while (pci && (INT)pci != -1) {
    12061196      if (!pci->pszFileName || !strcmp(pci->pszFileName, NullStr)) {
    1207         // 2015-08-23 SHL FIXME debug
    1208         //DbgMsg(pszSrcFile, __LINE__, "ProcessDirectory pci %p pci->pszFileName %p %s",
    1209         //       pci, pci->pszFileName,
    1210         //       pci->pszFileName == NullStr ? "NullStr" : "NULL");
    12111197        Runtime_Error(pszSrcFile, __LINE__, "pci->pszFileName NULL for %p", pci);
    12121198        return;
     
    12811267  ULONG startdrive = 3;
    12821268  HWND hwndDrivelist;
    1283 
    12841269  static BOOL didonce;
    12851270  static ULONG ulLastDriveMap;
    1286 
    1287   //DbgMsg(pszSrcFile, __LINE__, "FillTreeCnr hwndCnr %x hwndParent %x", hwndCnr, hwndParent);   // 2015-08-03 SHL FIXME debug
    12881271
    12891272  *szSuggest = 0;
     
    17081691      }
    17091692    }
    1710     // DbgMsg(pszSrcFile, __LINE__, "szSuggest %x info %x", *szSuggest, info);
    17111693    if (*szSuggest) {
    17121694      APIRET rc;
     
    17681750  } // if !fDontSuggestAgain
    17691751  didonce = TRUE;
    1770 
    1771   //DbgMsg(pszSrcFile, __LINE__, "FillTreeCnr finished");        // 2015-08-03 SHL FIXME debug
    1772 
    17731752} // FillTreeCnr
    17741753
     
    19261905VOID FreeCnrItem(HWND hwnd, PCNRITEM pci)
    19271906{
    1928   // DbgMsg(pszSrcFile, __LINE__, "FreeCnrItem hwnd %x pci %p", hwnd, pci);
    1929 
    19301907  FreeCnrItemData(pci);
    19311908
     
    20242001        if (remaining && --remaining == 0)
    20252002          break;
    2026         if (!bIdlePrioritySet /* && --usTimerCheckCountdown == 0 */) {
     2003        if (!bIdlePrioritySet) {
    20272004          bIdlePrioritySet = !IdleIfNeeded(&itdSleep, 30);
    2028           // usTimerCheckCountdown = RCI_ITEMS_PER_TIMER_CHECK;
    20292005        }
    20302006      } // while
     
    20352011    }
    20362012  }
    2037 
    2038   // DbgMsg(pszSrcFile, __LINE__, "RemoveCnrItems %p %u %s", pci, usCnt, pci->pszFileName);
    2039 
    20402013  if (remaining != - 1) {
    20412014    remaining = (INT)WinSendMsg(hwnd, CM_REMOVERECORD, MPFROMP(&pciFirst), MPFROM2SHORT(usCnt, usFlags));
  • trunk/dll/findrec.c

    r1871 r1877  
    6666  pci = WinSendMsg(hwndCnr,
    6767                   CM_SEARCHSTRING, MPFROMP(&srch), MPFROMP(pciParent));
    68   //DbgMsg(pszSrcFile, __LINE__,"FindCnrItem pciParent %p pci %p file %s", pciParent,
    69   //      pci, file);
    7068  while (pci && (INT) pci != -1) {
    7169    if (!noenv || (pci->flags & (RECFLAGS_ENV | RECFLAGS_UNDERENV)) == 0) {
     
    158156             MPFROMSHORT(CMA_VERTICAL),
    159157             MPFROMLONG((rclViewport.yTop - (rcl.yTop) - correction)));
    160 #if 0
    161   DbgMsg(pszSrcFile, __LINE__, "RECTLFIRST %i RECTLLAST %i %p",
    162          rclFirst.yTop, rclLast.yTop, pmiLast);
    163   DbgMsg(pszSrcFile, __LINE__, "TOPPORT %i TOPRCL %i RIGHTRCL %i",
    164          rclViewport.yTop , rcl.yTop, rcl.xRight);
    165 #endif
    166158  WinSendMsg(hwndCnr,
    167159             CM_SCROLLWINDOW,
  • trunk/dll/flesh.c

    r1876 r1877  
    9595
    9696static PCSZ pszFleshFocusPath;  // 2015-08-20 SHL
    97 #if 0
    98 BOOL fNoFleshDbgMsg;    // 2015-08-09 SHL FIXME to be gone
    99 #endif
     97
    10098#pragma data_seg(GLOBAL1)
    10199ULONG NoBrokenNotify;
     
    200198                ri.cRecordsInsert = 1;
    201199                ri.fInvalidateRecord = FALSE;
    202 #if 0           // 2015-08-03 SHL FIXME debug
    203                 if (pciL->pszFileName == NullStr)
    204                   DbgMsg(pszSrcFile, __LINE__, "Stubby CM_INSERTRECORD pci %p pszFileName \"%s\"", pciL, pciL->pszFileName); // 2015-08-03 SHL FIXME debug
    205 #endif
    206200                if (!WinSendMsg(hwndCnr,
    207201                                CM_INSERTRECORD, MPFROMP(pciL), MPFROMP(&ri)))
     
    250244    return FALSE;
    251245
    252 #if 0  // 2015-08-03 SHL FIXME debug
    253   if (!fNoFleshDbgMsg) {
    254     DbgMsg(pszSrcFile, __LINE__, "Flesh %s pciParent %p pszFileName %p",
    255            pciParent && (INT)pciParent != -1 && pciParent->pszFileName ?
    256              pciParent->pszFileName : "(null)",
    257            pciParent,
    258            pciParent && (INT)pciParent != -1 ? pciParent->pszFileName : (PVOID)-1); // 2015-08-03 SHL FIXME debug
    259   }
    260 #endif
    261   // 2015-08-06 SHL allow pciL -1
    262   // 2015-08-06 SHL FIXME to not need pszFileName check
    263246  if (!pciParent->fleshed) {
    264247    pciL = (PCNRITEM)WinSendMsg(hwndCnr,
     
    271254      // 2015-08-06 SHL FIXME to ensure this can not happen
    272255      if (!*pciL->pszFileName || !strcmp(pciL->pszFileName, NullStr))
    273         Runtime_Error(pszSrcFile, __LINE__, "Flesh called with pci %p pszFileName (null)", pciL);
    274 #if 0
    275       if (!fNoFleshDbgMsg)
    276         DbgMsg(pszSrcFile, __LINE__, "Flesh RemoveCnrItems() pciL %p \"%s\"",
    277                pciL,
    278                pciL->pszFileName ? pciL->pszFileName : "(null)"); // 2015-08-04 SHL FIXME debug
    279       // Assume refernces to pciL already removed from work list
    280 #endif
     256        Runtime_Error(pszSrcFile, __LINE__, "Flesh called with pci %p pszFileName (null)",
     257                      pciL);
    281258    }
    282259    dcd = INSTDATA(hwndCnr);
     
    318295  if (!pciParent || !hwndCnr)
    319296    return;
    320 #if 0
    321   if (!fNoFleshDbgMsg)
    322     DbgMsg(pszSrcFile, __LINE__, "UnFlesh pciParent %p pszFileName \"%s\"", pciParent, pciParent->pszFileName ? pciParent->pszFileName : "(null)"); // 2015-08-03 SHL FIXME debug
    323 #endif
    324297  for (;;) {
    325298    pciL = (PCNRITEM)WinSendMsg(hwndCnr,
     
    328301                                MPFROM2SHORT(CMA_FIRSTCHILD, CMA_ITEMORDER));
    329302    if (!pciL || (INT)pciL == -1)
    330       break;                    // Done
    331 #if 0
    332     if (!fNoFleshDbgMsg)
    333       DbgMsg(pszSrcFile, __LINE__, "UnFlesh RemoveCnrItems() pciL %p \"%s\"", pciL, pciL->pszFileName ? pciL->pszFileName : "(null)"); // 2015-08-03 SHL FIXME debug
    334 #endif
     303      break;   
    335304    RemoveCnrItems(hwndCnr, pciL, 1, CMA_FREE);
    336305    removed = TRUE;
     
    383352  static BOOL brokenlan = FALSE, isbroken = FALSE;
    384353
    385   //DbgMsg(pszSrcFile, __LINE__,"Stubby pciParent %p", pciParent);
    386354  if (!pciParent || (INT)pciParent == -1 || !*pciParent->pszFileName
    387355      || pciParent->pszFileName == NullStr || !hwndCnr)
    388356    return FALSE;
    389 #if 0
    390   if (!fNoFleshDbgMsg)
    391     DbgMsg(pszSrcFile, __LINE__, "Stubby pciParent %p pszFileName %s", pciParent, pciParent->pszFileName); // 2015-08-03 SHL FIXME debug
    392 #endif
    393357  // Build wildcard
    394358  len = strlen(pciParent->pszFileName);
     
    402366  if (!isalpha(*wildcard) || wildcard[1] != ':' || wildcard[2] != '\\') {
    403367    MakeFullName(wildcard);
    404     //DbgMsg(pszSrcFile, __LINE__, "Stubby MakeFullName returned %s", wildcard); // 2015-08-19 SHL FIXME debug
    405368  }
    406369  drvNum = toupper(*pciParent->pszFileName) - 'A';
     
    435398
    436399  fl = includefiles ? FILE_DIRECTORY : MUST_HAVE_DIRECTORY;
    437 
    438   //DbgMsg(pszSrcFile, __LINE__, "Stubby DosFindFirst(%s)", wildcard); // 2015-08-19 SHL FIXME debug
    439 
    440400  rc = DosFindFirst(wildcard,
    441401                    &hDir,
     
    635595            ri.cRecordsInsert = 1;
    636596            ri.fInvalidateRecord = TRUE;
    637 #if 0        // 2015-08-03 SHL FIXME debug
    638             if (pci->pszFileName == NullStr)
    639               DbgMsg(pszSrcFile, __LINE__, "Stubby CM_INSERTRECORD %p \"%s\" %.255s", pci, pci->pszFileName, pffb->achName);
    640 #endif
    641597            if (!WinSendMsg(hwndCnr,
    642598                            CM_INSERTRECORD, MPFROMP(pci), MPFROMP(&ri))) {
    643599              // Assume busy and try again
    644               DosSleep(50); //05 Aug 07 GKY 100
     600              DosSleep(50);
    645601              WinSetFocus(HWND_DESKTOP, hwndCnr);
    646602              if (WinIsWindow((HAB)0, hwndCnr)) {
    647 #if 0
    648                 if (!fNoFleshDbgMsg) {
    649                   // 2015-08-03 SHL FIXME debug
    650                   //if (pci->pszFileName == NullStr)
    651                   //  DbgMsg(pszSrcFile, __LINE__, "Stubby CM_INSERTRECORD pci %p pszFileName \"%s\"", pci, pci->pszFileName); // 2015-08-03 SHL FIXME debug
    652                 }
    653 #endif
    654603                if (!WinSendMsg(hwndCnr,
    655604                                CM_INSERTRECORD, MPFROMP(pci), MPFROMP(&ri))) {
     
    734683    if (!item)
    735684      break;
    736     //DbgMsg(pszSrcFile, __LINE__, "DeleteStaleFleshWorkListItems deleting %p %s", pci, pci->pszFileName ? pci->pszFileName : "(null)"); // 2015-08-03 SHL FIXME debug
    737685    List2Delete(&FleshWorkList, item);
    738686    xfree(item, pszSrcFile, __LINE__);
     
    748696 */
    749697
    750 #ifndef AddFleshWorkRequest // 2015-08-03 SHL FIXME debug
     698
    751699BOOL AddFleshWorkRequest(HWND hwndCnr, PCNRITEM pci, FLESHWORKACTION action)
    752 #else
    753 BOOL AddFleshWorkRequestDbg(HWND hwndCnr, PCNRITEM pci, FLESHWORKACTION action, PCSZ pszSrcFile_, UINT uSrcLineNo)
    754 #endif
    755700{
    756701  PFLESHWORKITEM item = xmallocz(sizeof(FLESHWORKITEM), pszSrcFile, __LINE__);
     
    762707    return FALSE;
    763708
    764   // 2015-08-03 SHL FIXME debug
    765 #if 0 // 2015-08-13 SHL FIXME to be gone
    766   {
    767     static PSZ itemNames[] = {
    768             "eStubby", "eFlesh", "eFleshEnv", "eUnFlesh"
    769     };
    770 
    771 #   ifdef AddFleshWorkRequest
    772     if (!pci || (INT)pci == -1) {
    773       Runtime_Error(pszSrcFile, __LINE__, "AddFleshWorkRequest called with action %s pci %p by %s:%u",
    774              itemNames[item->action],
    775              pci,
    776              pszSrcFile_, uSrcLineNo);
    777     }
    778     else if (!pci->pszFileName) {
    779       Runtime_Error(pszSrcFile, __LINE__, "AddFleshWorkRequest call with action %s pci %p pszFileName (null) by %s:%u",
    780              itemNames[item->action],
    781              pci,
    782              pszSrcFile_, uSrcLineNo);
    783     }
    784     else if (!fNoFleshDbgMsg) {
    785       DbgMsg(pszSrcFile, __LINE__, "AddFleshWorkRequest called with action %s pci %p pszFileName %s by %s:%u",
    786              itemNames[item->action],
    787              pci,
    788              pci->pszFileName,
    789              pszSrcFile_, uSrcLineNo); // 2015-08-03 SHL FIXME debug
    790     }
    791 #else
    792     if (!pci || (INT)pci == -1) {
    793       Runtime_Error(pszSrcFile, __LINE__, "AddFleshWorkRequest call with action %s pci %p",
    794              itemNames[item->action],
    795              pci);
    796     }
    797     else if (!pci->pszFileName) {
    798       Runtime_Error(pszSrcFile, __LINE__, "AddFleshWorkRequest called with action %s pci %p pszFileName (null)",
    799              itemNames[item->action],
    800              pci);
    801     }
    802     else if (!fNoFleshDbgMsg) {
    803       DbgMsg(pszSrcFile, __LINE__, "AddFleshWorkRequest action %s pci %p pszFileName %s",
    804              itemNames[item->action],
    805              pci,
    806              pci->pszFileName); // 2015-08-03 SHL FIXME debug
    807     }
    808 #endif
    809   }
    810 #endif
    811709
    812710  xDosRequestMutexSem(hmtxFleshWork, SEM_INDEFINITE_WAIT);
     
    858756 */
    859757
    860 #ifndef WaitFleshWorkListEmpty // 2015-08-03 SHL FIXME debug
     758
    861759VOID WaitFleshWorkListEmpty(PCSZ pszDirName, ULONG ulSleep)
    862 #else
    863 VOID WaitFleshWorkListEmptyDbg(PCSZ pszDirName, ULONG ulSleep, PCSZ pszSrcFile_, UINT uSrcLineNo_)
    864 #endif
    865760{
    866761  APIRET rc;
     
    872767  INT rcCount = 0;
    873768
    874   if (tid == 1 || tid == tidFleshWorkListThread) {
    875 #   ifdef WaitFleshWorkListEmpty
    876     Runtime_Error(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with worklist %sempty by tid %u at %s:%u", IsFleshWorkListEmpty() ? "" : "not ", tid, pszSrcFile_, uSrcLineNo_);
    877 #   else
     769  if (tid == 1 || tid == tidFleshWorkListThread) { // 11 Oct 15 GKY Fixme did we intend to keep this
    878770    Runtime_Error(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called by tid %u", tid);
    879 #   endif
    880771    return;             // Avoid hang
    881772  }
    882 #if 0
    883   else if (IsFleshWorkListEmpty()) {
    884 #   ifdef WaitFleshWorkListEmpty
    885     DbgMsg(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with worklist empty at %s:%u", pszSrcFile_, uSrcLineNo_);
    886 #   else
    887     DbgMsg(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with work list empty");
    888 #   endif
    889   }
    890 #endif
    891 
    892773  // Can not wait if call from thread 1 or FleshWorkListThread
    893774  for (waited = FALSE; !IsFleshWorkListEmpty(); waited = TRUE) {
    894 
    895 #if 0 // 2015-08-19 SHL FIXME debug
    896 #   ifdef WaitFleshWorkListEmpty
    897     if (!fNoFleshDbgMsg)
    898       DbgMsg(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with work list not empty by %s:%u", pszSrcFile_, uSrcLineNo_); // 2015-08-07 SHL FIXME debug
    899 #   else
    900     if (!fNoFleshDbgMsg)
    901       DbgMsg(pszSrcFile, __LINE__, "WaitFleshWorkListEmpty called with work list not empty"); // 2015-08-07 SHL FIXME debug
    902 #   endif
    903 #endif // 2015-08-19 SHL        FIXME debug
    904 
    905775    // 2015-08-13 SHL
    906776    if (fAmQuitting)
     
    965835  if (pszOld)
    966836    xfree((PVOID)pszOld, pszSrcFile, __LINE__);
    967   //DbgMsg(pszSrcFile, __LINE__, "SetFleshFocusPath focus path set to %s", pszFleshFocusPath); // 2015-08-03 SHL FIXME debug
    968 
    969837}
    970838
     
    1025893        if (!item) {
    1026894          ULONG ul;
    1027 #if 0
    1028           if (!fNoFleshDbgMsg)
    1029             DbgMsg(pszSrcFile, __LINE__, "FleshWorkThread work list empty - waiting"); // 2015-08-03 SHL FIXME debug
    1030 #endif
    1031895          xDosWaitEventSem(hevFleshWorkListChanged, SEM_INDEFINITE_WAIT);
    1032896          xDosResetEventSem(hevFleshWorkListChanged, &ul);
    1033 #if 0
    1034           if (!fNoFleshDbgMsg)
    1035             DbgMsg(pszSrcFile, __LINE__, "FleshWorkThread work hev posted"); // 2015-08-03 SHL FIXME debug
    1036 #endif
    1037897          continue;
    1038898        }
    1039899
    1040         if (WinIsWindow((HAB)0, item->hwndCnr)) {
    1041 #if 0     // 2015-08-07 SHL FIXME debug
    1042           {
    1043             static PSZ itemNames[] = {
    1044                     "eStubby", "eFlesh", "eFleshEnv", "eUnFlesh"
    1045             };
    1046 
    1047             PCNRITEM pci = item->pci;
    1048             if (!fNoFleshDbgMsg) {
    1049               DbgMsg(pszSrcFile, __LINE__, "FleshWorkThread action %s pci %p pszFileName %s",
    1050                      itemNames[item->action],
    1051                      pci,
    1052                      pci && (INT)pci != -1 ?
    1053                        (pci->pszFileName ? pci->pszFileName : "(nullname)") :
    1054                        "(nullpci)"); // 2015-08-03 SHL FIXME debug
    1055             }
    1056           }
    1057 #endif
     900        if (WinIsWindow((HAB)0, item->hwndCnr)) {
    1058901
    1059902          switch (item->action) {
     
    1065908            break;
    1066909          case eStubby:
    1067             // DbgMsg(pszSrcFile, __LINE__, "FleshWorkThread pci %p pszFileName %s", stubbyArgs->pci, stubbyArgs->pci->pszFileName); // 2015-08-03 SHL FIXME debug
    1068910            priority_bumped();
    1069911            Stubby(item->hwndCnr, item->pci);
     
    1093935
    1094936  ProcessDirCount++;
    1095   // DbgMsg(pszSrcFile, __LINE__, "ProcessDirCount %i FixedVolume %i", ProcessDirCount, FixedVolume);
    1096937  if (ProcessDirCount >= FixedVolume) {
    1097938    ProcessDirCount = 0;
     
    1122963  if (rc)
    1123964    return FALSE;                       // Give up
    1124 #if 0
    1125    /*DbgMsg is time consuming
    1126      define FM2_NO_FLESH_DBGMSG to suppress
    1127      2015-08-09 SHL FIXME to be gone
    1128      */
    1129 
    1130   fNoFleshDbgMsg = getenv("FM2_NO_FLESH_DBGMSG") != NULL;
    1131 #endif
    1132965  tidFleshWorkListThread = xbeginthread(FleshWorkThread,
    1133966                           65536,
  • trunk/dll/flesh.h

    r1876 r1877  
    3030BOOL Flesh(HWND hwndCnr, PCNRITEM pciParent);
    3131VOID UnFlesh(HWND hwndCnr, PCNRITEM pciParent);
    32 #if 0 // 2015-08-03 SHL FIXME debug
    3332VOID WaitFleshWorkListEmpty(PCSZ pszDirName, ULONG ulSleep);
    34 #else
    35 #define WaitFleshWorkListEmpty(pszDirName, ulSleep) WaitFleshWorkListEmptyDbg(pszDirName, ulSleep, __FILE__, __LINE__)
    36 VOID WaitFleshWorkListEmptyDbg(PCSZ pszDirName, ULONG ulSleep, PCSZ pszSrcFile, UINT uSrcLineNo);
    37 #endif
    38 
    39 #if 0 // 2015-08-03 SHL FIXME debug
    4033BOOL AddFleshWorkRequest(HWND hwndCnr, PCNRITEM pci, FLESHWORKACTION action);
    41 #else
    42 #define AddFleshWorkRequest(hwnCnr, pciParent, action) AddFleshWorkRequestDbg(hwnCnr, pciParent, action, __FILE__, __LINE__)
    43 BOOL AddFleshWorkRequestDbg(HWND hwndCnr, PCNRITEM pci, FLESHWORKACTION action, PCSZ pszSrcFile, UINT uSrcLineNo);
    44 #endif
    4534
    4635// Data declarations
  • trunk/dll/init.c

    r1873 r1877  
    12161216  MaxComLineStrg = MAXCOMLINESTRGDEFAULT;
    12171217  AutoviewHeight = 48;
    1218   //strcpy(printer, "PRN");
    12191218  prnwidth = 80;
    12201219  prnlength = 66;
     
    12261225  prntabspaces = 8;
    12271226  CollectorsortFlags = sortFlags = SORT_FILENAME | SORT_DIRSFIRST;
    1228   //ullDATFileSpaceNeeded = 10000;
    1229 
    12301227  //Get default Country info
    12311228  {
     
    12401237      ulDateFmt = CtryInfo.fsDateFmt;
    12411238      ulTimeFmt = CtryInfo.fsTimeFmt;
    1242       //DbgMsg(pszSrcFile, __LINE__, "Date Fmt %x", ulDateFmt);
    12431239    }
    12441240    else {
     
    12771273      if (rc != NO_ERROR) {
    12781274        fProtectOnly = TRUE;
    1279         //DbgMsg(pszSrcFile, __LINE__, "DosQModuleHandle VKBD returned %d fProtectOnly=%d", rc, fProtectOnly);
    12801275      }
    12811276      else {
     
    12831278        if (rc != NO_ERROR) {
    12841279          fProtectOnly = TRUE;
    1285           //DbgMsg(pszSrcFile, __LINE__, "DosQModuleHandle VMOUSE returned %d fProtectOnly=%d", rc, fProtectOnly);
    12861280        }
    12871281      }
     
    16481642    ShowNote();
    16491643
    1650   // 2015-08-11 SHL FIXME debug
    1651   //DbgMsg(pszSrcFile, __LINE__, "ShowEnv %u SwitchTree %u SwitchTreeExpand %u SwitchTreeOnFocus %u CollapseFirst %u", fShowEnv, fSwitchTreeOnDirChg, fSwitchTreeExpand, fSwitchTreeOnFocus, fCollapseFirst);
    1652  
    16531644  LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault, FALSE);
    16541645
  • trunk/dll/mainwnd.c

    r1869 r1877  
    742742      static HACCEL haccelCmdList = NULLHANDLE;
    743743      static HACCEL haccelButtonList = NULLHANDLE;
    744       // DbgMsg(pszSrcFile, __LINE__, "WM_FOCUSCHANGE %u", SHORT1FROMMP(mp2));
    745744      id = WinQueryWindowUShort(hwndParent, QWS_ID);
    746745      if (SHORT1FROMMP(mp2)) {
     
    21372136          HWND hwndActive = TopWindow(hwnd, (HWND) 0);
    21382137          if (hwndActive)
    2139             //DbgMsg(pszSrcFile, __LINE__, "WinSendMsg UM_DRIVECMD %c", *dv); // 2015-08-04 SHL FIXME debug
    21402138            WinSendMsg(WinWindowFromID(hwndActive, FID_CLIENT),
    21412139                       UM_DRIVECMD, MPFROMP(dv), MPVOID);
     
    34673465
    34683466  sprintf(szPrefix, "%s.", pszStateName);
    3469 
    3470   //DbgMsg(pszSrcFile, __LINE__, "RestoreDirCnrState %s", pszStateName);        // 2015-08-13 SHL FIXME debug
    3471 
    34723467  // If restoring shutdown state bypass no-prescan drives
    34733468  fIsShutDownState = strcmp(pszStateName, PCSZ_SHUTDOWNSTATE) == 0;
     
    36813676      WinDestroyWindow(hwndPPSave);
    36823677    }
    3683     //DbgMsg(pszSrcFile, __LINE__, "RestoreDirCnrState returning fRestored %u", fRestored);     // 2015-08-13 SHL FIXME debug
    36843678  }
    36853679
     
    47694763    {
    47704764      HWND hwnd = WinQueryFocus(HWND_DESKTOP);
    4771       // DbgMsg(pszSrcFile, __LINE__, "IDM_CONTEXTMENU %x", hwnd);
    47724765      if (hwnd != NULLHANDLE) {
    47734766        HWND hwndParent = WinQueryWindow(hwnd, QW_PARENT);
     
    47774770        case MAIN_USERLIST:
    47784771        case MAIN_CMDLIST:
    4779           // DbgMsg(pszSrcFile, __LINE__, "WM_CONTEXTMENU");
    47804772          WinPostMsg(hwnd, WM_CONTEXTMENU, 0, 0);
    47814773        }
     
    65516543            }
    65526544            else if (SHORT1FROMMP(mp1) == MAIN_DRIVELIST) {
    6553               //DbgMsg(pszSrcFile, __LINE__, "MainWndProc CBN_ENTER ShowTreeRec(\"%s\")", path); // 2015-08-04 SHL FIXME debug
    65546545              ShowTreeRec(WinWindowFromID(WinWindowFromID(hwndTree,
    65556546                                                          FID_CLIENT),
     
    66846675    fAmQuitting = TRUE;                 // Let world know quit in progress
    66856676    DosSleep(1);
    6686     //DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_CLOSE returning with fAmClosing %u", fAmClosing); // 2015-08-16 SHL
    6687 
    66886677    return 0;           // Suppress WinDefWindowProc WM_QUIT message generation
    66896678
     
    67146703
    67156704  case WM_DESTROY:
    6716     //DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_DESTROY hwnd %p TID %u", hwnd, GetTidForThread());   // 2015-08-09 SHL FIXME debug
     6705
    67176706    hwndMain = (HWND)0;
    67186707    if (!PostMsg((HWND)0, WM_QUIT, MPVOID, MPVOID))
  • trunk/dll/mainwnd2.c

    r1869 r1877  
    14051405    PostMsg(hwnd, UM_CLOSE, MPVOID, MPVOID);
    14061406    fAmQuitting = TRUE;                 // Let world know quit in progress
    1407     //DbgMsg(pszSrcFile, __LINE__, "MainWndProc2 WM_CLOSE returning with fAmClosing %u", fAmClosing); // 2015-08-16 SHL
    14081407    DosSleep(1);
    14091408    return 0;                   // Suppress WinDefWindowProc WM_QUIT message generation
  • trunk/dll/mkdir.c

    r1675 r1877  
    7676    if (!last) {
    7777      Broadcast((HAB) 0, hwndClient, UM_UPDATERECORD, MPFROMP(s), MPVOID);
    78       //DbgMsg(pszSrcFile, __LINE__, "UM_UPDATERECORD %s", s);
    7978    }
    8079    else if (last == ERROR_ACCESS_DENIED) {
  • trunk/dll/notebook.c

    r1869 r1877  
    38133813      if (!WinSetAccelTable(hab, haccelCfg, hwndNotebook))
    38143814        Win_Error(hwndNotebook, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_WINSETACCELTABLE);
    3815       // else
    3816         // DbgMsg(pszSrcFile, __LINE__, "WinSetAccelTable MAIN_DRIVELIST %x %x", hwndFrame, haccelDriveList);
    3817     }
    3818 
     3815    }
    38193816    // If generic call, try to find conditional cascade default
    38203817    // 15 Feb 08 SHL fixme to be gone when/if IDM_NOTEBOOK gone?
    38213818    if (mp2 == MPFROMLONG(IDM_NOTEBOOK)) {
    3822       //DbgMsg(pszSrcFile, __LINE__, "Trying to translate IDM_NOTEBOOK");
    38233819      hwndTemp = WinQueryWindow(hwnd, QW_OWNER);
    38243820      if (hwndTemp != HWND_DESKTOP) {
  • trunk/dll/notify.c

    r1869 r1877  
    463463            len--;
    464464            if (len2 != len) {
    465               //DbgMsg(pszSrcFile, __LINE__, "len %u unexpected - should be %u", len2, len);    // 18 Jul 08 SHL fixme to be Runtime_Error
    466465              xfree((PSZ)p, pszSrcFile, __LINE__);
    467466            }
  • trunk/dll/seeall.c

    r1859 r1877  
    21542154#  endif
    21552155
    2156   // DbgMsg(pszSrcFile, __LINE__, "FindAllThread requesting hmtxScan");
    21572156  apiret = DosRequestMutexSem(ad->hmtxScan, SEM_INDEFINITE_WAIT);
    21582157  if (apiret != NO_ERROR)
     
    22122211    }
    22132212
    2214     // DbgMsg(pszSrcFile, __LINE__, "FindAllThread releasing hmtxScan");
    22152213    DosReleaseMutexSem(ad->hmtxScan);
    22162214  }
     
    27182716
    27192717  case UM_SETUP5:
    2720     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP5");
     2718
    27212719    if (pAD) {
    27222720      if (mp1 && *((CHAR *)mp1))
     
    27682766
    27692767  case UM_SETUP2:
    2770     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP2");
     2768
    27712769    if (pAD) {
    27722770
     
    27992797
    28002798  case UM_SETUP3:
    2801     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP3");
     2799
    28022800    if (pAD) {
    28032801      pAD->multiplier = pAD->afindexcnt / 32767;
     
    28382836
    28392837  case UM_SETUP4:
    2840     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP4");
     2838
    28412839    if (pAD)
    28422840      pAD->killme = TRUE;
     
    28462844
    28472845  case UM_RESCAN:
    2848     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_RESCAN");
     2846
    28492847    if (pAD && !pAD->stopflag) {
    28502848      if (DosRequestMutexSem(pAD->hmtxScan, SEM_IMMEDIATE_RETURN)) {
     
    29242922
    29252923  case UM_SETUP:
    2926     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc UM_SETUP");
     2924
    29272925    if (pAD) {
    29282926      WinSendMsg(pAD->hvscroll, SBM_SETTHUMBSIZE, MPFROM2SHORT(1, 1), MPVOID);
     
    35143512
    35153513  case WM_PAINT:
    3516     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_PAINT");
     3514
    35173515    if (pAD) {
    35183516
     
    37123710
    37133711  case WM_VSCROLL:
    3714     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_VSCROLL");
     3712
    37153713    if (pAD && !pAD->stopflag &&
    37163714        !DosRequestMutexSem(pAD->hmtxScan, SEM_IMMEDIATE_RETURN)) {
     
    44064404
    44074405  case WM_SIZE:
    4408     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_SIZE");
     4406
    44094407    PostMsg(hwnd, UM_SETUP3, MPVOID, MPVOID);
    44104408    break;
    44114409
    44124410  case WM_CLOSE:
    4413     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_CLOSE");
     4411
    44144412    if (pAD)
    44154413      pAD->stopflag = 1;
     
    44184416
    44194417  case WM_DESTROY:
    4420     // DbgMsg(pszSrcFile, __LINE__, "SeeAllWndProc WM_DESTROY");
     4418
    44214419    if (pAD) {
    44224420      pAD->stopflag = 1;
  • trunk/dll/strutil.c

    r1460 r1877  
    123123  }
    124124
    125   // DbgMsg(pszSrcFile, __LINE__, "Fetching %lu", id);
    126 
    127125  // If string already loaded, return it now
    128126  if (id >= ulFirstId &&
     
    133131    if (((ULONG)psz & 0xffff0000) == 0)
    134132      DbgMsg(pszSrcFile, __LINE__, "id %lu corrupted %p", id, psz);
    135     // DbgMsg(pszSrcFile, __LINE__, "id %lu \"%s\"", id, psz ? psz : "(null)");
    136133    return psz;
    137134  }
     
    158155    if (i < cLongStrings) {
    159156      // Combine stringtable items to build long string
    160       // DbgMsg(pszSrcFile, __LINE__, "Building long string %lu", id);
    161157      for (; LongStrings[i].id == id; i++) {
    162158        uDbgState = 3;
     
    207203  uDbgState = 5;
    208204  // Add to cache
    209   // DbgMsg(pszSrcFile, __LINE__, "Caching %lu", id);
    210 
    211205  // Calculate new array limits
    212206  if (!pLoadedStrings) {
     
    225219      !pLoadedStrings) {
    226220    PSZ *pNewLoadedStrings;
    227     // DbgMsg(pszSrcFile, __LINE__, "Reallocating for %lu", id);
    228221    pNewLoadedStrings = xrealloc(pLoadedStrings,
    229222                                 (ulNewLastId - ulNewFirstId + 1) * sizeof(PSZ),
     
    259252  pLoadedStrings[id - ulFirstId] = psz;
    260253  cBusy--;
    261   // DbgMsg(pszSrcFile, __LINE__, "id %lu \"%s\"", id, psz ? psz : "(null)");
    262254  return psz;
    263255}
  • trunk/dll/systemf.c

    r1859 r1877  
    670670
    671671    memset(&ex, 0, sizeof(EXECARGS));
    672     //DbgMsg(pszSrcFile, __LINE__, "env %s", environment);
    673672    if (!environment) {
    674673      ULONG size;
     
    695694    else
    696695      ex.flags = flags;
    697     //DbgMsg(pszSrcFile, __LINE__, "Inserted %s", environment);
    698696    ret = runemf2(ex.flags, hwnd, pszCallingFile, uiLineNumber, path,
    699697                   *ex.environment ? ex.environment : NULL,
  • trunk/dll/treecnr.c

    r1876 r1877  
    348348
    349349    // Walk down directory tree, expanding as needed
    350     //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec needs expand, szDirArg \"%s\", IsFleshWorkListEmpty %u", szDirArg, IsFleshWorkListEmpty()); // 2015-08-04 SHL FIXME debug
    351 
    352350    strcpy(szDir, szDirArg);
    353351    p = szDir + 3;                      // Point after root backslash
     
    364362                           TRUE);               // noenv
    365363      if (!pciP || (INT)pciP == -1) {
    366         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord(\"%s\") returned pciP %p", szDir, pciP); // 2015-08-04 SHL FIXME debug
    367364        WaitFleshWorkListEmpty(szDirArg, 240);  // 2015-08-23 SHL
    368365        break;                                  // No match
    369366      }
    370 
    371       //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec FindCnrRecord(\"%s\") returned %p \"%s\"", szDir, pciP, pciP->pszFileName); // 2015-08-04 SHL FIXME debug
    372 
    373367      if (!stricmp(szDirArg, pciP->pszFileName)) {
    374368        pci = pciP;
     
    380374
    381375      if (~pciP->rc.flRecordAttr & CRA_EXPANDED) {
    382         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec expanding \"%s\"", pciP->pszFileName); // 2015-08-04 SHL FIXME debug
    383376        WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciP), MPVOID);
    384377      }
     
    401394
    402395  } // for
    403 
    404   //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec retries %u pci %p pci->pszFileName \"%s\"",retries, pci, pci && (INT)pci != -1 ? pci->pszFileName : "(null)"); // 2015-08-04 SHL FIXME debug
    405 
    406396  if (found) {
    407397    // Found it
     
    447437    if (pciToSelect && (INT) pciToSelect != -1) {
    448438      if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED) {
    449         // 2015-08-23 SHL FIXME debug
    450         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec WinSendMsg(CM_EXPANDTREE, %p)", pciToSelect); // 2015-08-04 SHL FIXME debug
    451439        WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID);
    452440      }
     
    455443          WaitFleshWorkListEmpty(NULL, 240); //Let the root expand first otherwise it makes top
    456444        }
    457         // 2015-08-23 SHL FIXME debug
    458         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec ShowCnrRecord(%p) filename %s", pciToSelect, pciToSelect->pszFileName); // 2015-08-04 SHL FIXME debug
    459445        ShowCnrRecord(hwndCnr, (PMINIRECORDCORE)pciToSelect);
    460446      }
     
    462448      if (!quickbail) {
    463449        WaitFleshWorkListEmpty(szDirArg, 240);  // 2015-08-19 SHL try to ensure contents stable
    464         //DbgMsg(pszSrcFile, __LINE__, "ShowTreeRec WinSendMsg(CM_SETRECORDEMPHASIS, CRA_SELECTED | CRA_CURSORED) szDirArg \"%s\"", szDirArg); // 2015-08-04 SHL FIXME debug
    465450        WinSendMsg(hwndCnr,
    466451                   CM_SETRECORDEMPHASIS,
     
    746731           See RestoreDirCnrState()
    747732        */
    748         //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME cDirectoriesRestored %u", cDirectoriesRestored); // 2015-08-04 SHL FIXME debug
    749         //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME \"%s\")", mp1); // 2015-08-04 SHL FIXME debug
    750 
    751733        if (cDirectoriesRestored > 0)
    752734          cDirectoriesRestored--;
     
    755737          BOOL tempsusp = dcd->suspendview;
    756738          BOOL tempfollow = fFollowTree;
    757           //BOOL temptop;
    758739          dcd->suspendview = TRUE;
    759740          fFollowTree = FALSE;
    760 #if 0     // 2015-09-20 GKY This doesn't appear to be needed since maketop is always TRUE
    761           if (mp2) {
    762             temptop = fTopDir;
    763             fTopDir = TRUE;
    764           }
    765 #endif
    766           //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME calling ShowTreeRec(\"%s\")", mp1); // 2015-08-04 SHL FIXME debug
    767741          priority_idle(); // 2015-09-26 GKY Majority of work done by Flesh and UI threads
    768742          ShowTreeRec(dcd->hwndCnr, (CHAR *)mp1, fCollapseFirst, TRUE);
    769743          priority_normal();
    770           //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc UM_SHOWME calling PostMsg(IDM_UPDATE)"); // 2015-08-04 SHL FIXME debug
    771744          PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID);
    772745
    773746          dcd->suspendview = (USHORT)tempsusp;  // Restore
    774747          fFollowTree = tempfollow;             // Restore
    775 #if 0
    776           if (mp2)
    777             fTopDir = temptop;                  // Restore
    778 #endif
    779748        }
    780749      }
     
    831800      priority_idle();
    832801      if (SHORT1FROMMP(mp1) == IDM_EXPAND) {
    833         //DbgMsg(pszSrcFile, __LINE__,"UM_EXPAND Start");
    834802        fExpandAll = TRUE;
    835803        while (fExpanding) { // Not serialized not practical to wait on very large directories
     
    840808          fExpanding = ExpandAll(dcd->hwndCnr, x, (PCNRITEM) mp2);
    841809          DosSleep(240);
    842           //DbgMsg(pszSrcFile, __LINE__,"UM_EXPAND fExpanding %i count %i", fExpanding, x);
    843810        }
    844811        fExpandAll = FALSE;
     
    1011978              WaitFleshWorkListEmpty(pci->pszFileName, 240);    // 2015-08-19 SHL in case pci still in work list
    1012979              if ((toupper(*pci->pszFileName) - 'A') > 1)  {
    1013                 DbgMsg(pszSrcFile, __LINE__,"UM_RESCAN2 UnFlesh %s", pci->pszFileName);
    1014980                AddFleshWorkRequest(hwnd, pci, eUnFlesh);
    1015981              }
     
    10381004                 CM_SCROLLWINDOW,
    10391005                 MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(-1));
    1040       //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc FillTreeCnr()"); // 2015-08-04 SHL FIXME debug
    10411006      FillTreeCnr(dcd->hwndCnr, dcd->hwndParent);
    10421007      if (fOkayMinimize) {
     
    10471012                 CM_INVALIDATERECORD,
    10481013                 MPVOID, MPFROM2SHORT(0, CMA_ERASE | CMA_REPOSITION));
    1049       //DbgMsg(pszSrcFile, __LINE__, "TreeObjWndProc PostMsg(UM_RESCAN)"); // 2015-08-04 SHL FIXME debug
    10501014      PostMsg(dcd->hwndCnr, UM_RESCAN, MPVOID, MPVOID);
    10511015    }
     
    19851949
    19861950      if (dir) {
    1987         //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_SHOWME PostMsg(UM_SHOWME, %s)", dir); // 2015-08-13 SHL FIXME debug
    19881951        if (!PostMsg(dcd->hwndObject, UM_SHOWME, MPFROMP(dir), MPVOID))
    19891952          free(dir);
     
    22752238            chDrvU = *pci->pszFileName;
    22762239            chDrvU = toupper(chDrvU);
    2277             //DbgMsg(pszSrcFile, __LINE__,"IDM_FILESMENU prevalid drive %s file %s",
    2278             //       szDrv, pci->pszFileName);
    22792240            MakeValidDir(szDrv);
    22802241            rdy = *szDrv == chDrvU;     // Drive not ready if MakeValidDir changes drive letter
     
    22852246            local = rdy && (!(driveflags[chDrvU - 'A'] & (DRIVE_REMOTE | DRIVE_VIRTUAL)));
    22862247            underenv = (pci->flags & RECFLAGS_UNDERENV) != 0;
    2287             //DbgMsg(pszSrcFile, __LINE__,"IDM_FILESMENU postvalid drive %s rdy %i removable %i writeable %i local %i underenv %i",
    2288             //       szDrv, rdy, removable, writeable, local, underenv);
    22892248            CopyPresParams((HWND) mp2, hwndMainMenu);
    22902249            WinEnableMenuItem((HWND) mp2, IDM_INFO, rdy);
     
    24332392  case UM_DRIVECMD:
    24342393    if (mp1) {
    2435       DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_DRIVECMD ShowTreeRec(\"%s\")", mp1);
    24362394      ShowTreeRec(hwnd, (CHAR *)mp1, FALSE, TRUE);
    2437       DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc PostMsg(IDM_UPDATE)");
    24382395      PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID);
    24392396    }
     
    29022859              if (pci->fleshed) {
    29032860                if (x > 1) {
    2904                   DbgMsg(pszSrcFile, __LINE__,"UM_UPDATE UnFlesh %s", pci->pszFileName);
    29052861                  AddFleshWorkRequest(hwnd, pci, eUnFlesh);
    29062862                }
     
    32723228    break; // WM_DESTROY
    32733229  } // switch
    3274   //DbgMsg(pszSrcFile, __LINE__,"return oldproc msg %i mp1 %p mp2 %p", msg, mp1, mp2);
    32753230  if (dcd && dcd->oldproc){
    32763231    return dcd->oldproc(hwnd, msg, mp1, mp2);
     
    35163471            }
    35173472            else if (qmsg.msg == UM_EXPANDTREE) {
    3518               // 2015-08-04 SHL
    3519               //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc qmsg.msg == UM_EXPANDTREE %p pci %p %s",
    3520               //       qmsg.hwnd, pci, pci->pszFileName);
    35213473              if (fExpandAll)
    35223474                DosSleep(1);
     
    35263478              AddFleshWorkRequest(dcd->hwndCnr, pci, eFlesh);   // forceFlesh
    35273479              if (!dcd->suspendview && fTopDir) {
    3528                 //DbgMsg(pszSrcFile, __LINE__, "TreeCnrWndProc UM_TOPDIR %p pci %p %s",
    3529                 //       qmsg.hwnd, pci, pci->pszFileName);  // 2015-08-04 SHL FIXME debug
    35303480                PostMsg(dcd->hwndCnr, UM_TOPDIR, MPFROMP(pci), MPVOID);
    35313481              }
    35323482            }
    35333483            if (qmsg.msg == UM_EXPANDTREE && !dcd->suspendview) {
    3534               //DbgMsg(pszSrcFile, __LINE__, "UM_FILTER %p pci %p %s",
    3535               //       dcd->hwndCnr, pci, pci->pszFileName);
    35363484              WinSendMsg(dcd->hwndCnr, UM_FILTER, MPVOID, MPVOID);
    35373485            }
  • trunk/dll/valid.c

    r1749 r1877  
    339339  DosFSCtl(&easize, sizeof(EASIZEBUF), &ulDataLen, NULL, ulParmLen,
    340340           &ulParmLen, FSCTL_MAX_EASIZE, szPath, -1, FSCTL_PATHNAME);
    341   //DbgMsg(pszSrcFile, __LINE__, "%i %i %s %s", easize.cbMaxEASize, easize.cbMaxEAListSize, szPath, pfsn);
    342341  szPath[2] = 0;
    343342  if (pulType && easize.cbMaxEASize == 0)
  • trunk/dll/viewinf.c

    r1673 r1877  
    570570            }
    571571            else {
    572               // DbgMsg(pszSrcFile, __LINE__, "Help file %s", p);
    573572              ViewHelp(p);
    574573            }
  • trunk/dll/walkem.c

    r1673 r1877  
    124124    load_setups();
    125125    for (pld = pFirstSetup; pld; pld = pld->next) {
    126       // DbgMsg(pszSrcFile, __LINE__, "Inserted %s", pld->path);
    127126      WinSendMsg(hwndStatelist,
    128127                 LM_INSERTITEM,
     
    273272    pld->next = pFirstSetup;
    274273    pFirstSetup = pld;
    275     // DbgMsg(pszSrcFile, __LINE__, "Inserted %s", pld->path);
    276 
    277274    if (ulDataBytes == ulOldSetupsBytes)
    278275      psz += 13;                        // Buffers fixed width prior to 3.0.7
  • trunk/dll/worker.c

    r1866 r1877  
    18091809                  DosReleaseMutexSem(hmtxFM2Delete);
    18101810                }
    1811                 //DbgMsg(pszSrcFile, __LINE__, "error %i retrn %i", error, retrn);
    18121811                if (fWarnReadOnly && error ==  ERROR_FILE_EXISTS) {
    18131812                  retrn = SM2_NO;
  • trunk/dll/wrappers.c

    r1860 r1877  
    258258  rc = DosAllocSharedMem(ppb, pszName, cb,
    259259                         PAG_COMMIT | OBJ_GIVEABLE | PAG_READ | PAG_WRITE | OBJ_ANY);
    260   //DbgMsg(pszSrcFile, __LINE__, "ppb %p", *ppb);
    261260  if (rc)
    262261    rc = DosAllocSharedMem(ppb, pszName, cb, PAG_COMMIT | OBJ_GIVEABLE | PAG_READ | PAG_WRITE);
     
    281280
    282281  rc = DosAllocMem(ppb, cb, PAG_COMMIT | PAG_READ | PAG_WRITE | OBJ_ANY);
    283   //DbgMsg(pszSrcFile, uiLineNumber, "ppb %p %x", *ppb, rc);
    284282  if (rc)
    285283    rc = DosAllocMem(ppb, cb, PAG_COMMIT | PAG_READ | PAG_WRITE);
    286284  if (rc)
    287285    Runtime_Error(pszSrcFile, uiLineNumber, GetPString(IDS_OUTOFMEMORY));
    288   //DbgMsg(pszSrcFile, uiLineNumber, "ppb %p", *ppb);
    289286  return rc;
    290287}
Note: See TracChangeset for help on using the changeset viewer.