Changeset 1880


Ignore:
Timestamp:
Oct 12, 2015, 8:26:16 PM (10 years ago)
Author:
Gregg Young
Message:

Remove dead code and comments from remaining c files. #if 0 and #if NEVER were not addressed

Location:
trunk/dll
Files:
31 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/errutil.c

    r1840 r1880  
    8989
    9090  static ULONG ul1stMSec;
    91   // static ULONG ulLastMSec;
    9291
    9392  ULONG msec = GetMSecTimer();
     
    9594
    9695  if (!ul1stMSec) {
    97     ul1stMSec = msec;
    98     // ulLastMSec = msec;               // Avoid big delta 1st time
     96    ul1stMSec = msec;      // Avoid big delta 1st time
    9997  }
    10098
    10199  delta = msec - ul1stMSec;
    102   // ulLastMSec = msec;
    103100  fprintf(stderr, "%03lu.%03lu ", delta / 1000, delta % 1000);
    104101
  • trunk/dll/excputil.c

    r1841 r1880  
    2626#define INCL_DOSMISC                    // DosDumpProcess?
    2727#define INCL_DOSERRORS                  // NO_ERROR
    28 // #include <os2.h>
    2928
    3029#include "wrappers.h"                   // xmalloc xfree
     
    6564              "DosSetExceptionHandler");
    6665  }
    67 
    68 #if 0 // 11 Dec 08 SHL fixme tobe gone - debug
    69   {
    70     static UINT when;
    71     if (++when == 2)
    72       *(char*)0 = 0;
    73   }
    74 #endif
    7566
    7667  (*ptd->pfnThread)(ptd->pvArgs);       // Invoke thread
  • trunk/dll/filldir.c

    r1877 r1880  
    132132#include <ctype.h>
    133133#include <limits.h>
    134 // #include <process.h>                 // _beginthread
    135134
    136135#define INCL_DOS
     
    919918                (pffbFile->achName[1] == '.' && !pffbFile->achName[2])) ||
    920919               (LoadedFirstChild && !stricmp(LoadedFirstChild, pffbFile->achName)))) {
    921             // ulFindCnt--;             // Got . or .. or file to be skipped
     920                        // Got . or .. or file to be skipped
    922921          }
    923922          else
     
    10631062
    10641063            if (!pciFirst) {
    1065               //ERRORID erridErrorCode = WinGetLastError(WinQueryAnchorBlock(hwndCnr));
    1066               //PmpfF(("Allocation failed %i", erridErrorCode));
    10671064              Win_Error(hwndCnr, HWND_DESKTOP, pszSrcFile, __LINE__,
    10681065                        GetPString(IDS_CMALLOCRECERRTEXT));
     
    11471144            }
    11481145          }
    1149           //SleepIfNeeded(&itdSleep, 1);
    11501146        }
    11511147        priority_normal();
  • trunk/dll/flesh.c

    r1879 r1880  
    5353#include <string.h>
    5454#include <ctype.h>
    55 //#include <malloc.h>
    5655
    5756#define INCL_DOS
     
    10099BOOL fFilesInTree;
    101100
    102 //BOOL Flesh(HWND hwndCnr, PCNRITEM pciParent);
    103 
    104101BOOL Stubby(HWND hwndCnr, PCNRITEM pciParent);
    105102BOOL FleshEnv(HWND hwndCnr, PCNRITEM pciParent);
    106 //VOID UnFlesh(HWND hwndCnr, PCNRITEM pciParent);
    107103
    108104/**
     
    543539            *p = 0;;
    544540            BldFullPathName(szBuffer, wildcard, pffb->achName);
    545             pci->pszFileName =  xstrdup(szBuffer, pszSrcFile, __LINE__); //NullStr;   // 2015-08-19 SHL FIXME to doc why
     541            pci->pszFileName =  xstrdup(szBuffer, pszSrcFile, __LINE__);
    546542            p = strrchr(pci->pszFileName, '\\');
    547543            p++;
    548             pci->pszDisplayName = p; //NullStr;
     544            pci->pszDisplayName = p;
    549545            pci->rc.pszIcon = pci->pszDisplayName;
    550546            if (fForceUpper)
     
    746742  }
    747743  c = strlen(((PFLESHWORKITEM)item)->pci->pszFileName);
    748   // 2015-08-23 SHL FIXME to not trap for Gregg
    749744  return strncmp(((PFLESHWORKITEM)item)->pci->pszFileName, (PCSZ)data, c) == 0;
    750745}
  • trunk/dll/fm2cmd.c

    r1482 r1880  
    6363      strcpy(temp, directory);
    6464      AddBackslashToPath(directory);
    65       //if (directory[strlen(directory) - 1] != '\\')
    66       //  strcat(temp, "\\");
    6765    }
    6866    else {
  • trunk/dll/fonts.c

    r1673 r1880  
    2828#include "fm3dll.h"
    2929#include "init.h"                       // Global semaphore
    30 
    31 //static VOID SetFont(HWND hwnd);
    3230
    3331#pragma data_seg(DATA1)
  • trunk/dll/getnames.c

    r1673 r1880  
    185185            if (*szBuffer) {
    186186              AddBackslashToPath(szBuffer);
    187               //if (szBuffer[strlen(szBuffer) - 1] != '\\')
    188               //  strcat(szBuffer, "\\");
    189187              *szTemp = 0;
    190188              WinQueryDlgItemText(hwnd, 258, CCHMAXPATH, szTemp);
  • trunk/dll/grep.c

    r1780 r1880  
    323323      WinCancelShutdown(ghmq, TRUE);
    324324      IncrThreadUsage();
    325       // DosSleep(100); //05 Aug 07 GKY 128     // 07 Feb 08 SHL
    326325      // hwndStatus does not exist for applet
    327326      WinSetWindowText(hwndStatus ? hwndStatus : grep.hwndCurFile,
     
    788787                        pci, grep->dir[x], grep->insertffb[x], FALSE, dcd);
    789788    pci = (PCNRITEM) pci->rc.preccNextRecord;
    790     //SleepIfNeeded(pitdSleep, 1);
    791789    if (pci == NULL && ulRecsToInsert) {
    792790      memset(&ri, 0, sizeof(RECORDINSERT));
     
    808806    SleepIfNeeded(pitdSleep, 1);
    809807  }//for
    810     // if (grep->toinsert == FilesToGet)        // 07 Feb 08 SHL
    811     //  DosSleep(0);  //26 Aug 07 GKY 1 // 07 Feb 08 SHL
    812808    freegreplist(grep);
    813809    PostMsg(grep->hwndFiles, UM_RESCAN, MPVOID, MPVOID);
     
    10561052      }                                 // while
    10571053      Free_FEAList(head);
    1058       // DosSleep(1);                   // 07 Feb 08 SHL
    10591054    }
    10601055  }
     
    10941089      Fortify_LeaveScope();
    10951090#      endif
    1096       // DosSleep(1);                   // 07 Feb 08 SHL
    10971091    }
    10981092  } // if
     
    12031197        else
    12041198          break;
    1205         // DosSleep(0); //26 Aug 07 GKY 1       // 07 Feb 08 SHL
    12061199      }
    12071200      fclose(fp);
    1208       // DosSleep(1);                   // 07 Feb 08 SHL
    12091201    }
    12101202    free(buffer);
     
    13731365  ULONG x;
    13741366  ULONG y;
    1375   // ULONG cntr = 1000;                 // 09 Feb 08 SHL
    1376 
    1377   // if (grep->CRCdupes)                // 09 Feb 08 SHL
    1378   //  cntr = 100;                       // 09 Feb 08 SHL
     1367
    13791368  x = 0;
    13801369  for (i = grep->dupehead; i; i = i->next)
     
    13861375    else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles)
    13871376      WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPESORTINGTEXT));
    1388     // DosSleep(0);  //26 Aug 07 GKY 1  // 07 Feb 08 SHL
    13891377    grep->dupenames = xmalloc(sizeof(DUPES *) * (x + 1), pszSrcFile, __LINE__);
    13901378    if (!grep->nosizedupes)
     
    14041392      InitITimer(pitdSleep, 0);         // Reset rate estimator
    14051393      SleepIfNeeded(pitdSleep, 1);
    1406       // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL
    1407 
    14081394      qsort(grep->dupenames,
    14091395            x,
     
    14111397            grep->ignoreextdupes ? comparenamesqe : comparenamesq);
    14121398      SleepIfNeeded(pitdSleep, 1);
    1413       // DosSleep(0); //26 Aug 07 GKY 1 // 07 Feb 08 SHL
    14141399      if (!grep->nosizedupes) {
    14151400        qsort(grep->dupesizes, x, sizeof(DUPES *), comparesizesq);
    14161401        SleepIfNeeded(pitdSleep, 1);
    1417         // DosSleep(0); //26 Aug 07 GKY 1       // 07 Feb 08 SHL
    14181402      }
    14191403
     
    15971581        if (!(i->flags & GF_SKIPME)) {
    15981582          if (IsITimerExpired(pitdReport)) {
    1599             // if (!(y % cntr)) { }
    1600             CHAR s[44];
     1583            CHAR s[44];
     1584
    16011585            sprintf(s, GetPString(IDS_GREPDUPECHECKPROGTEXT), y, grep->numfiles);
    16021586            if (!hwndStatus)
     
    16041588            else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles)
    16051589              WinSetWindowText(hwndStatus, s);
    1606             // DosSleep(0); //26 Aug 07 GKY 1   // 07 Feb 08 SHL
    16071590          }
    16081591          y++;
     
    16671650                }
    16681651              }
    1669               // else if (!(x % 100))   // 07 Feb 08 SHL
    1670               //        DosSleep(0);  //26 Aug 07 GKY 1 // 07 Feb 08 SHL
    16711652            }
    16721653            c = c->next;
  • trunk/dll/grep2.c

    r1707 r1880  
    335335      fInitDone = TRUE;
    336336    }
    337     else {//if (sLastMaskSelect == LIT_NONE) {
     337    else {
    338338      size = sizeof(sLastMaskSelect);
    339339      PrfQueryProfileData(fmprof, appname, (CHAR *) PSCZ_GREP_LASTMASK_SELECT, &sLastMaskSelect, &size);
     
    445445      fclose(fp);
    446446    }
    447     // 25 Sep 09 SHL Reselect last last used item
    448     //if (sLastMaskSelect >= 0)
    449     //  WinSendDlgItemMsg(hwnd, GREP_LISTBOX, LM_SELECTITEM,
    450     //          MPFROMSHORT(sLastMaskSelect), MPFROMSHORT(TRUE));
    451 
    452447    FillPathListBox(hwnd,
    453448                    WinWindowFromID(hwnd, GREP_DRIVELIST),
     
    11361131          break;
    11371132        }
    1138         DosSleep(100);                  //05 Aug 07 GKY 128
     1133        DosSleep(100);   
    11391134        free(p);
    11401135#       ifdef FORTIFY
  • trunk/dll/inis.c

    r1673 r1880  
    4747#include <ctype.h>
    4848#include <share.h>
    49 // #include <process.h>                    // _beginthread
    5049
    5150#define INCL_DOS
     
    22622261      WinSetDlgItemText(hwnd, INI_NUMDATA, "0");
    22632262      WinSendDlgItemMsg(hwnd, INI_DATALIST, LM_DELETEALL, MPVOID, MPVOID);
    2264       // inidata = WinQueryWindowPtr(hwnd, QWL_USER);   // 09 Jan 08 SHL
    22652263    }
    22662264    return 0;
     
    25472545                }
    25482546                else
    2549                   DosSleep(100); //05 Aug 07 GKY 250
     2547                  DosSleep(100);
    25502548              }
    25512549            }
  • trunk/dll/instant.c

    r1628 r1880  
    137137                      batches++);
    138138              fp = xfopen(s, modew, pszSrcFile, __LINE__, FALSE);
    139               //if (!fp)
    140               //  Runtime_Error(pszSrcFile, __LINE__, "fopen");
    141139              if (fp) {
    142140                if (!strncmp(bat, "/*", 2)) {
  • trunk/dll/key.c

    r1498 r1880  
    127127          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    128128                            MPFROMLONG(sk1), MPVOID);
    129           DosSleep(16);//05 Aug 07 GKY 33
     129          DosSleep(16);
    130130          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    131131                            MPFROMLONG(sk2), MPVOID);
    132           DosSleep(16);//05 Aug 07 GKY 33
     132          DosSleep(16);
    133133          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    134134                            MPFROMLONG(sk3), MPVOID);
    135           DosSleep(16);//05 Aug 07 GKY 33
     135          DosSleep(16);
    136136          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    137137                            MPFROMLONG(sk4), MPVOID);
    138           DosSleep(16);//05 Aug 07 GKY 33
     138          DosSleep(16);
    139139          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    140140                            MPFROMLONG(sk5), MPVOID);
    141           DosSleep(16);//05 Aug 07 GKY 33
     141          DosSleep(16);
    142142          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    143143                            MPFROMLONG(sk6), MPVOID);
    144           DosSleep(16);//05 Aug 07 GKY 33
     144          DosSleep(16);
    145145          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    146146                            MPFROMLONG(sk7), MPVOID);
    147           DosSleep(16);//05 Aug 07 GKY 33
     147          DosSleep(16);
    148148          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    149149                            MPFROMLONG(sk8), MPVOID);
    150           DosSleep(16);//05 Aug 07 GKY 33
     150          DosSleep(16);
    151151          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    152152                            MPFROMLONG(sk9), MPVOID);
    153           DosSleep(100);//05 Aug 07 GKY 257
     153          DosSleep(100);
    154154          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    155155                            MPFROMLONG(sk8), MPVOID);
    156           DosSleep(16);//05 Aug 07 GKY 33
     156          DosSleep(16);
    157157          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    158158                            MPFROMLONG(sk7), MPVOID);
    159           DosSleep(16);//05 Aug 07 GKY 33
     159          DosSleep(16);
    160160          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    161161                            MPFROMLONG(sk6), MPVOID);
    162           DosSleep(16);//05 Aug 07 GKY 33
     162          DosSleep(16);
    163163          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    164164                            MPFROMLONG(sk5), MPVOID);
    165           DosSleep(16);//05 Aug 07 GKY 33
     165          DosSleep(16);
    166166          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    167167                            MPFROMLONG(sk4), MPVOID);
    168           DosSleep(16);//05 Aug 07 GKY 33
     168          DosSleep(16);
    169169          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    170170                            MPFROMLONG(sk3), MPVOID);
    171           DosSleep(16);//05 Aug 07 GKY 33
     171          DosSleep(16);
    172172          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    173173                            MPFROMLONG(sk2), MPVOID);
    174           DosSleep(16);//05 Aug 07 GKY 33
     174          DosSleep(16);
    175175          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    176176                            MPFROMLONG(sk1), MPVOID);
    177           DosSleep(16);//05 Aug 07 GKY 33
     177          DosSleep(16);
    178178          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
    179179                            MPFROMLONG(sk0), MPVOID);
    180           DosSleep(16);//05 Aug 07 GKY 33
     180          DosSleep(16);
    181181          WinShowWindow(WinWindowFromID(hwnd, ABT_ICON), FALSE);
    182182          WinSendDlgItemMsg(hwnd, ABT_ICON, SM_SETHANDLE,
     
    213213  case UM_SETDIR:
    214214    WinSetFocus(HWND_DESKTOP, HWND_DESKTOP);
    215     DosSleep(250);//05 Aug 07 GKY 2500
     215    DosSleep(250);
    216216    return 0;
    217217
  • trunk/dll/killproc.c

    r1859 r1880  
    4343#include <string.h>
    4444#include <ctype.h>
    45 // #include <process.h>
    4645#include <limits.h>
    4746
     
    472471        }
    473472        else
    474           DosSleep(100);                // 05 Aug 07 GKY 250
     473          DosSleep(100);               
    475474      }
    476475      else if (fUseQSysState)
     
    484483        }
    485484        else
    486           DosSleep(100);//05 Aug 07 GKY 250
     485          DosSleep(100);
    487486      else {
    488487        if (xbeginthread(FillKillListThread,
  • trunk/dll/mainwnd.c

    r1877 r1880  
    56115611          break;
    56125612        }
    5613         x = SHORT1FROMMP(mp1);// - IDM_COMMANDSTART;
     5613        x = SHORT1FROMMP(mp1);
    56145614        if (x >= 0) {
    5615           //x++;
    56165615          RunCommand(hwndCnr, x);
    56175616          if (fUnHilite) {
     
    57045703    }
    57055704    else
    5706       DosSleep(32);//05 Aug 07 GKY 64
     5705      DosSleep(32);
    57075706
    57085707    hwndFrame = WinQueryWindow(hwnd, QW_PARENT);
     
    58355834                                    (CHAR *) WC_COMBOBOX,
    58365835                                    (PSZ) NULL,
    5837                                     //WS_VISIBLE |
    58385836                                    CBS_DROPDOWN,
    58395837                                    (swp.x +
     
    65966594                            UM_RESTORE,
    65976595                            MPVOID,
    6598                             MPFROMLONG(1));                // Autotile
     6596                            MPFROMLONG(RESTORE_STATE_TILE_CHILDREN));     // Autotile
    65996597                  }
    66006598                }
     
    66256623                WinPostMsg(hwnd,
    66266624                           WM_COMMAND,
    6627                            MPFROM2SHORT(atol(p), 0), //fixme GKY this traps in atol the {} probably don't exist
    6628                            //IDM_COMMANDSTART + sSelect, 0),
     6625                           MPFROM2SHORT(atol(p), 0),
    66296626                           MPVOID);
    66306627              }
  • trunk/dll/mainwnd2.c

    r1877 r1880  
    4949#include <string.h>
    5050#include <share.h>
    51 // #include <process.h>                 // _beginthread
    5251
    5352#define INCL_DOS
     
    463462  case IDM_CONFIRMDELETE:               // 2014-05-17 SHL
    464463  case IDM_TOGGLEDRAGDIALOG:            // 2014-05-15 SHL
    465 //    case IDM_SYSINFO:
    466464  case IDM_HIDENOTEWND:
    467465  case IDM_SHOWNOTEWND:
     
    724722        break;
    725723      }
    726       x = SHORT1FROMMP(mp1);// - IDM_COMMANDSTART;
     724      x = SHORT1FROMMP(mp1);
    727725      if (x >= 0) {
    728         //x++;
    729726        RunCommand(hwndCnr, x);
    730727        if (fUnHilite) {
     
    811808    }
    812809    else
    813       DosSleep(32);//05 Aug 07 GKY 64
     810      DosSleep(32);
    814811
    815812    pd = xmallocz(sizeof(PERSON1DATA), pszSrcFile, __LINE__);
  • trunk/dll/mkdir.c

    r1877 r1880  
    186186  MakeValidDir(szBuff);
    187187  AddBackslashToPath(szBuff);
    188   //if (*szBuff && szBuff[strlen(szBuff) - 1] != '\\')
    189   //  strcat(szBuff, "\\");
    190188  sip.prompt = GetPString(IDS_MKDIRPROMPTTEXT);
    191189  sip.inputlen = CCHMAXPATH - 1;
  • trunk/dll/mle.c

    r1673 r1880  
    3434#include <ctype.h>
    3535#include <share.h>
    36 // #include <process.h>                 // _beginthread
    3736
    3837#define INCL_DOS
     
    560559                first = FALSE;
    561560              }
    562 // fprintf(stderr,"%d bytes of %d imported\n",howmuch,numimport);
    563561              if (howmuch < 1) {
    564562                numimport = 0;
     
    568566                numimport -= howmuch;
    569567                memmove(hexbuff, hexbuff + howmuch, numimport);
    570                 DosSleep(0);  //26 Aug 07 GKY 1
     568                DosSleep(0); 
    571569                if (!WinIsWindow(hab, h) || (vw && vw->killme))
    572570                  break;
     
    705703              first = FALSE;
    706704            }
    707 // fprintf(stderr,"%d bytes of %d imported\n",howmuch,numread);
    708705            if (howmuch < 1) {
    709706              numread = 0;
     
    723720                  numread = tempnum;
    724721              }
    725               DosSleep(0); //26 Aug 07 GKY 1
     722              DosSleep(0);
    726723            }
    727724            else
     
    734731            WinSetWindowText(grandpa, s);
    735732          }
    736           DosSleep(0); //26 Aug 07 GKY 1
     733          DosSleep(0);
    737734        }
    738735        DosFreeMem(buffer);
     
    812809  Fortify_LeaveScope();
    813810#  endif
    814   // _endthread();                      // 10 Dec 08 SHL
    815811}
    816812
  • trunk/dll/newview.c

    r1802 r1880  
    5050#include <stdlib.h>
    5151#include <string.h>
    52 // #include <process.h>                 // 10 Dec 08 SHL
    5352#include <limits.h>
    5453#include <share.h>
     
    253252  CHAR *pszTestStr = pszSrc;
    254253  CHAR szMailTo[SEARCHSTRINGLEN] = "mailto:";
    255   //CHAR szMailEnd[] = ">";
    256254
    257255  if (!strnstr(pszTestStr, pszFindChar, StrLens))
     
    265263      strip_trail_char(">", pszSrc);
    266264      strcat(szMailTo, pszSrc);
    267      // strcat(szMailTo, szMailEnd);
    268265      strcpy(pszSrc, szMailTo);
    269266      return pszSrc;
     
    292289    strip_trail_char(",.;:'>", pszSrc);
    293290    strcat(szMailTo, pszSrc);
    294     //strcat(szMailTo, szMailEnd);
    295291    strcpy(pszSrc, szMailTo);
    296292    return pszSrc;
     
    11611157                                               NEWVIEW_STATUS1),
    11621158                               (CHAR *) GetPString(IDS_NOMATCHINGTEXT));
    1163               DosSleep(150);//05 Aug 07 GKY 1500
     1159              DosSleep(150);
    11641160              PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID);
    11651161              PostMsg(hwnd, UM_SETUP4, MPVOID, MPVOID);
     
    12731269                                               NEWVIEW_STATUS1),
    12741270                               (CHAR *) GetPString(IDS_NVNOLINESSELTEXT));
    1275               DosSleep(150);//05 Aug 07 GKY 1500
     1271              DosSleep(150);
    12761272            }
    12771273          }
     
    20352031        {
    20362032          WinSendMsg(hwnd, UM_SETUP5, MPVOID, MPVOID);
    2037           DosSleep(16); //05 Aug 07 GKY 32
     2033          DosSleep(16);
    20382034          return (MRESULT) 1;
    20392035        }
     
    39493945            WinInvalidateRect(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    39503946                                              NEWVIEW_DRAG), NULL, FALSE);
    3951             //WinInvalidateRect(ad->hhscroll, NULL, FALSE);
    39523947          }
    39533948          DosReleaseMutexSem(ad->ScanSem);
     
    39883983            WinInvalidateRect(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    39893984                                              NEWVIEW_DRAG), NULL, FALSE);
    3990             //WinInvalidateRect(ad->hhscroll, NULL, FALSE);
    39913985          }
    39923986          DosReleaseMutexSem(ad->ScanSem);
     
    40734067        }
    40744068        if (ad->busy)
    4075           DosSleep(100); //05 Aug 07 GKY 128
     4069          DosSleep(100);
    40764070        if (ad->hps) {
    40774071          GpiDeleteSetId(ad->hps, NEWVIEWMLE_FONT_LCID);
     
    42274221        hwndFrame = (HWND) 0;
    42284222      else {
    4229         //DosSleep(32);
    42304223        if (!(FrameFlags & FCF_TASKLIST) && !(flags & 2)) {
    42314224          SWP swp;
  • trunk/dll/notebook.c

    r1877 r1880  
    19541954          if (SaveDirCnrState(hwndMain, PCSZ_FM2TEMPTEXT) > 0) {
    19551955            PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(RESTORE_STATE_CLOSE_CHILDREN));
    1956 //          PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);
    19571956            PostMsg(MainObjectHwnd, UM_RESTORE, (PSZ) PCSZ_FM2TEMPTEXT, MPFROMLONG(RESTORE_STATE_RESTORE));
    19581957          }
     
    38363835          else {
    38373836            mp2 = WinSendMsg(mi.hwndSubMenu, MM_QUERYDEFAULTITEMID, MPVOID, MPVOID);
    3838             //if (!mp2) // causes spurious error message on new installs GKY 1-9-09
    3839             //  mp2 = MPFROMLONG(IDM_QUICKSETTINGS);
    3840               //Runtime_Error(pszSrcFile, __LINE__, "MM_QUERYDEFAULTITEMID");
    38413837          }
    38423838        }
     
    40274023    break;
    40284024  case WM_CLOSE:
    4029     //SaveLastPageIndex(hwnd);
    40304025    break;
    40314026  }
  • trunk/dll/objcnr.c

    r1871 r1880  
    3232#include <string.h>
    3333#include <ctype.h>
    34 // #include <process.h>                 // _beginthread
    3534
    3635#define INCL_DOS
     
    104103  strcpy(maskstr, filename);
    105104  AddBackslashToPath(maskstr);
    106   //if (maskstr[strlen(maskstr) - 1] != '\\')
    107   //  strcat(maskstr, "\\");
    108105  endpath = &maskstr[strlen(maskstr)];
    109106  strcat(maskstr, "*");
     
    324321
    325322  case UM_SETUP:
    326     // WinEnableWindowUpdate(WinWindowFromID(hwnd,OBJCNR_CNR),FALSE);
    327323    {
    328324      CNRINFO cnri;
     
    347343  case UM_CONTAINER_FILLED:
    348344    WinSetDlgItemText(hwnd, OBJCNR_NOTE, NullStr);
    349 //      WinEnableWindowUpdate(WinWindowFromID(hwnd,OBJCNR_CNR),TRUE);
    350345    WinSendDlgItemMsg(hwnd, OBJCNR_CNR, CM_INVALIDATERECORD, MPVOID,
    351346                      MPFROM2SHORT(0, CMA_ERASE | CMA_INVALIDATE));
  • trunk/dll/pathutil.c

    r1782 r1880  
    6969  return pszPathName;
    7070}
    71 
    72 // #pragma data_seg(DATA1)
    7371
    7472/**
  • trunk/dll/rename.c

    r1682 r1880  
    9393    }
    9494    if (mv->compare) {
    95       //WinShowWindow(WinWindowFromID(hwnd, REN_DONTASK), FALSE);
    9695      WinShowWindow(WinWindowFromID(hwnd, REN_OVEROLD), FALSE);
    9796      WinShowWindow(WinWindowFromID(hwnd, REN_OVERNEW), FALSE);
  • trunk/dll/seeall.c

    r1877 r1880  
    7272#include <string.h>
    7373#include <ctype.h>
    74 // #include <process.h>
    7574
    7675#define INCL_DOS
     
    719718                goto Abort;
    720719              }
    721               DosSleep(0);              //26 Aug 07 GKY 1
     720              DosSleep(0);             
    722721              if (mv.skip || !*mv.target)
    723722                break;
     
    11941193        if (toupper(*path) < 'C' && !fAlertBeepOff)
    11951194          DosBeep(1000, 25);
    1196         DosSleep(16);                   // 05 Aug 07 GKY 33
     1195        DosSleep(16);                   
    11971196        break;
    11981197
     
    13951394          TileChildren(hwndMain, TRUE);
    13961395        WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE);
    1397         DosSleep(100);//05 Aug 07 GKY 250
     1396        DosSleep(100);
    13981397      }
    13991398    }
    14001399    else {
    14011400      StartCollector(HWND_DESKTOP, 4);
    1402       DosSleep(100);//05 Aug 07 GKY 250
     1401      DosSleep(100);
    14031402    }
    14041403  }
     
    17481747          for (x = 0; x < ad->afheadcnt; x++)
    17491748            ad->afhead[x].flags &= (~(AF_DUPE | AF_SELECTED));
    1750           DosSleep(0);  //26 Aug 07 GKY 1
     1749          DosSleep(0); 
    17511750          for (x = 0; x < ad->afheadcnt && !ad->stopflag; x++) {
    17521751            if (!(ad->afhead[x].flags & (AF_DUPE | AF_FILTERED))) {
     
    21762175                  break;
    21772176                PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID);
    2178                 DosSleep(0); //26 Aug 07 GKY 1
     2177                DosSleep(0);
    21792178              }
    21802179            } // for
     
    27362735      }
    27372736      else {
    2738         DosSleep(50);//05 Aug 07 GKY 100
     2737        DosSleep(50);
    27392738        PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
    27402739        PostMsg(hwnd, UM_SETUP2, MPVOID, MPVOID);
     
    42054204        else {
    42064205          DosReleaseMutexSem(pAD->hmtxScan);
    4207           DosSleep(50);//05 Aug 07 GKY 100
     4206          DosSleep(50);
    42084207          WinInvalidateRect(hwnd, NULL, FALSE);
    42094208          PostMsg(hwnd, UM_SETUP2, MPVOID, MPVOID);
     
    43884387      }
    43894388      else if (SHORT1FROMMP(mp1) == IDM_COLLECTOR) {
    4390         DosSleep(50);//05 Aug 07 GKY 100
     4389        DosSleep(50);
    43914390        if (!PostMsg(hwnd, msg, mp1, mp2))
    43924391          WinSendMsg(hwnd, msg, mp1, mp2);
  • trunk/dll/strutil.c

    r1877 r1880  
    9696  #pragma aux SMPSafeInc = "lock inc cBusy" modify exact [];
    9797  #pragma aux SMPSafeDec = "lock dec cBusy" modify exact [];
    98   // SMPSafeInc();
    9998  for (c = 0; ; c++) {
    10099    if (SMPSafeInc(), cBusy == 1)
     
    114113    extern PTIB2 GetPTIB2(void);
    115114    #pragma aux GetPTIB2 = "mov eax,fs:[12]" value [eax];
    116     // PIB *ppib;
    117     // TIB *ptib;
    118115    TIB2 *ptib2 = GetPTIB2();
    119     // APIRET apiret = DosGetInfoBlocks(&ptib, &ppib);
    120116    ulDbgId = id;
    121     // ulDbgTid = apiret == 0 ? ptib->tib_ptib2->tib2_ultid : 0;
    122117    ulDbgTid = ptib2->tib2_ultid;
    123118  }
  • trunk/dll/systemf.c

    r1877 r1880  
    12421242          for (ctr = 0;; ctr++)
    12431243          {
    1244             DosSleep(50);//05 Aug 07 GKY 200
     1244            DosSleep(50);
    12451245            if (DosSetSession(ulSessID, &sd))   // Check if session gone (i.e. finished)
    12461246              break;
     
    12581258                                DCWW_NOWAIT, &bPriority, hTermQSem);
    12591259              if (rc == ERROR_QUE_EMPTY) {
    1260                 DosSleep(50);//05 Aug 07 GKY 100
     1260                DosSleep(50);
    12611261                continue;
    12621262              }
     
    12731273              // Oh heck
    12741274              Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,"DosReadQueue");
    1275               DosSleep(100);//05 Aug 07 GKY 500
     1275              DosSleep(100);
    12761276              continue;
    12771277            }
    1278 
    1279             //  printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n",
    1280             //       __FILE__, __LINE__,ptib->tib_ordinal,pTermInfo->usSessID,pTermInfo->usRC,rq.pid, rq.ulData); fflush(stdout);
    12811278
    12821279            if (pTermInfo->usSessID == ulSessID)
     
    12861283            {
    12871284              static ULONG ulLastSessID;
    1288               // printf("%s %d requeue thread 0x%x our sess %u term sess %u term rc %u\n",
    1289               //       __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,pTermInfo->usSessID,pTermInfo->usRC); fflush(stdout);
    1290               // fixme to be gone when no longer needed for debug?
    12911285              if (ulLastSessID) {
    1292                 DosSleep(100);//05 Aug 07 GKY 500
     1286                DosSleep(100);
    12931287                ulLastSessID = pTermInfo->usSessID;
    12941288              }
     
    12971291              if (rc)
    12981292                Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,"DosWriteQueue");
    1299               DosSleep(50); //05 Aug 07 GKY 100         // Let other thread see queue entry
     1293              DosSleep(50);          // Let other thread see queue entry
    13001294            }
    13011295          } // for
    13021296
    13031297          ret = pTermInfo->usRC == 0;           // Set 1 if rc 0 else 0
    1304           // printf("%s %d thread 0x%x term for sess %u\n",
    1305           //      __FILE__, __LINE__,ptib->tib_ordinal,ulSessID);fflush(stdout);
    13061298          DosFreeMem(pTermInfo);
    13071299        }
  • trunk/dll/timer.c

    r1335 r1880  
    1414
    1515***********************************************************************/
    16 
    17 // #include <process.h>                 // _beginthread
    1816
    1917#define INCL_DOS
  • trunk/dll/treecnr.c

    r1879 r1880  
    130130#include <string.h>
    131131#include <ctype.h>
    132 // #include <process.h>                 // _beginthread
    133132
    134133#define INCL_DOS
     
    867866      dcd->hwndObject = hwnd;
    868867      if (ParentIsDesktop(hwnd, dcd->hwndParent))
    869         DosSleep(100); //05 Aug 07 GKY 250
     868        DosSleep(100);
    870869    }
    871870    return 0;
     
    12661265        else {
    12671266          menuHwnd = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP);
    1268 //            WinEnableMenuItem(DirMenu,
    1269 //                              IDM_TREE,
    1270 //                              FALSE);
    12711267        }
    12721268        if (!(pci->attrFile & FILE_DIRECTORY))
     
    27782774          }
    27792775          WinSetWindowPos(hwndC, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE);
    2780           DosSleep(100);//05 Aug 07 GKY 250
     2776          DosSleep(100);
    27812777        }
    27822778        else
     
    28002796
    28012797      case IDM_COLLECTOR:
    2802         DosSleep(32);//05 Aug 07 GKY 64
     2798        DosSleep(32);
    28032799        {
    28042800          CHAR **list;
     
    31073103          if (!cmdloaded)
    31083104            load_commands();
    3109           x = SHORT1FROMMP(mp1);// - IDM_COMMANDSTART;
     3105          x = SHORT1FROMMP(mp1);
    31103106          if (x >= 0) {
    3111             //x++;
    31123107            RunCommand(hwnd, x);
    31133108            if (fUnHilite)
     
    31513146      fOkayMinimize = TRUE;
    31523147      if (dcd->hwndObject) {
    3153         DosSleep(50);//05 Aug 07 GKY 100
     3148        DosSleep(50);
    31543149          fOkayMinimize = FALSE;
    31553150          WinSetWindowPos(((hwndMain) ? WinQueryWindow(hwndMain, QW_PARENT) :
  • trunk/dll/undel.c

    r1846 r1880  
    2828#include <string.h>
    2929#include <ctype.h>
    30 // #include <process.h>                 // _beginthread
    3130
    3231#define INCL_DOS
     
    216215      strcpy(s, (CHAR *)mp2);
    217216      AddBackslashToPath(s);
    218       //if (s[strlen(s) - 1] != '\\')
    219       //  strcat(s, "\\");
    220217      strcat(s, "*");
    221218      WinSetDlgItemText(hwnd, UNDEL_ENTRY, s);
     
    262259        }
    263260        else
    264           DosSleep(100);//05 Aug 07 GKY 500
     261          DosSleep(100);
    265262      }
    266263      refresh = FALSE;
  • trunk/dll/walkem.c

    r1877 r1880  
    10211021        APIRET rc;
    10221022
    1023         // *szBuffer = 0;
    1024         // WinQueryDlgItemText(hwnd,WALK_RECENT,CCHMAXPATH,szBuffer);
    10251023        if (!*szBuffer)
    10261024          break;
     
    11551153          strcpy(szBuff, wa->szCurrentPath);
    11561154          AddBackslashToPath(szBuff);
    1157           //if (szBuff[strlen(szBuff) - 1] != '\\')
    1158           //  strcat(szBuff, "\\");
    11591155          strcat(szBuff, szBuffer);
    11601156          MakeFullName(szBuff);
     
    15441540          strcpy(szBuff, wa->szCurrentPath1);
    15451541          AddBackslashToPath(szBuff);
    1546           //if (szBuff[strlen(szBuff) - 1] != '\\')
    1547           //  strcat(szBuff, "\\");
    15481542          strcat(szBuff, szBuffer);
    15491543          MakeFullName(szBuff);
     
    16101604          strcpy(szBuff, wa->szCurrentPath2);
    16111605          AddBackslashToPath(szBuff);
    1612           //if (szBuff[strlen(szBuff) - 1] != '\\')
    1613           //  strcat(szBuff, "\\");
    16141606          strcat(szBuff, szBuffer);
    16151607          MakeFullName(szBuff);
  • trunk/dll/worker.c

    r1877 r1880  
    8383#define INCL_DOS
    8484#define INCL_DOSERRORS
    85 // #define INCL_WINPROGRAMLIST          // 13 Jul 09 SHL dropped
    86 // #define INCL_WINHELP                 // 13 Jul 09 SHL dropped
    8785#define INCL_LONGLONG
    8886#define INCL_WINPOINTERS                // WinSetFileIcon
    89 // #define INCL_WINWORKPLACE            // 13 Jul 09 SHL dropped
    9087#define INCL_WINSHELLDATA               // PrfQueryProfileData
    9188
     
    467464                            wk->li->list[x]);
    468465                    AddNote(message);
    469                     if (//fSyncUpdates ||
    470                         AddToList(outname, &files, &cFilesModified, &cItemsAllocated))
     466                    if (AddToList(outname, &files, &cFilesModified, &cItemsAllocated))
    471467                      Broadcast(hab2,
    472468                                wk->hwndCnr,
     
    572568                    goto Abort;
    573569                  if (ret == 1) {
    574                     if (//fSyncUpdates ||
    575                         AddToList(wk->li->list[x],
     570                    if (AddToList(wk->li->list[x],
    576571                                  &files, &cFilesModified, &cItemsAllocated))
    577572                      Broadcast(hab2,
     
    10941089              if (toupper(*wk->li->targetpath) < 'C' && !fAlertBeepOff)
    10951090                DosBeep(1000, 25);      // Wake up user
    1096               DosSleep(16);//05 Aug 07 GKY 33
     1091              DosSleep(16);
    10971092              if (wk->li->type == IDM_WPSMOVE || wk->li->type == IDM_WPSCOPY)
    1098                 DosSleep(48);//05 Aug 07 GKY 96
     1093                DosSleep(48);
    10991094              break;
    11001095            default:
     
    12981293              strcpy(szBuffer, wk->li->targetpath);
    12991294              AddBackslashToPath(wk->li->targetpath);
    1300               //if (wk->li->targetpath[strlen(wk->li->targetpath) - 1] != '\\')
    1301               //  strcat(szBuffer, "\\");
    13021295              p = szBuffer + strlen(szBuffer);
    13031296              for (x = 0; wk->li->list[x]; x++) {
     
    18361829                  AddNote(prompt);
    18371830                }
    1838                 if (//fSyncUpdates ||
    1839                     AddToList(wk->li->list[x], &files, &numfiles, &numalloc)) {
     1831                if (AddToList(wk->li->list[x], &files, &numfiles, &numalloc)) {
    18401832                  Broadcast(hab2,
    18411833                            wk->hwndCnr,
  • trunk/dll/wrappers.c

    r1877 r1880  
    305305  if (rc)
    306306    Runtime_Error(pszSrcFile, uiLineNumber, GetPString(IDS_OUTOFMEMORY));
    307   //DbgMsg(pszSrcFile, uiLineNumber, "ppb %p", *ppb);
    308307  return rc;
    309308}
Note: See TracChangeset for help on using the changeset viewer.