Changeset 1673 for trunk/dll/misc.c


Ignore:
Timestamp:
Dec 30, 2012, 7:51:01 PM (13 years ago)
Author:
Gregg Young
Message:

Update to Doxygen comment style Ticket 55. Also some minor code cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r1647 r1673  
    118118#include "info.h"                       // driveflags
    119119
    120 #define CONTAINER_COLUMNS       13      /* Number of columns in details view */
     120#define CONTAINER_COLUMNS       13      // Number of columns in details view
    121121#define MS_POPUP          0x00000010L
    122122
     
    302302void PaintSTextWindow(HWND hwnd, HPS hps)
    303303{
    304   /*
     304  /**
    305305   * paint a text window such that the rightmost part of the text is
    306306   * always visible even if the text length exceeds the length of the
     
    364364VOID PaintRecessedWindow(HWND hwnd, HPS hps, BOOL outtie, BOOL dbl)
    365365{
    366   /*
     366  /**
    367367   * paint a recessed box around the window
    368368   * two pixels width required around window for painting...
     
    947947              strchr(szData, '*') || IsRoot(pci->pszFileName))
    948948            return (MRESULT) FALSE;
    949           /* If the text changed, rename the file system object. */
     949          // If the text changed, rename the file system object.
    950950          chop_at_crnl(szData);
    951951          bstrip(szData);
     
    969969              if (stricmp(szData, testname) && IsFile(testname) != -1) {
    970970                if (!fAlertBeepOff)
    971                   DosBeep(50, 100);       /* exists; disallow */
    972                 return (MRESULT) FALSE;
     971                  DosBeep(50, 100);       
     972                return (MRESULT) FALSE;    // exists; disallow
    973973              }
    974974              if (fVerify && (driveflags[toupper(*szData) - 'A'] & DRIVE_WRITEVERIFYOFF ||
     
    12961296VOID FcloseFile(FILE * fp)
    12971297{
    1298   /* for use by apps that don't use the DLLs runtime library */
     1298  // for use by apps that don't use the DLLs runtime library
    12991299  fclose(fp);
    13001300}
     
    16841684                                       MPFROMLONG(CMA_FIRST),
    16851685                                       MPFROMSHORT(attrib));
    1686     if ((!pmi || (INT) pmi == -1) && attrib == CRA_SELECTED)    /* punt */
     1686    if ((!pmi || (INT) pmi == -1) && attrib == CRA_SELECTED)    // punt
    16871687      attrib = CRA_CURSORED;
    16881688    else
     
    18991899HWND CheckMenu(HWND hwnd, HWND * hwndMenu, USHORT id)
    19001900{
    1901   /* load and adjust menus as required */
     1901  // load and adjust menus as required
    19021902  if (!*hwndMenu || !WinIsWindow((HAB) 0, *hwndMenu)) {
    19031903    *hwndMenu = WinLoadMenu(HWND_DESKTOP, FM3ModHandle, id);
     
    23012301void SetupWinList(HWND hwndMenu, HWND hwndTop, HWND hwndFrame)
    23022302{
    2303   /*
     2303  /**
    23042304   * add switchlist entries to end of pulldown menu
    23052305   */
     
    23112311                                  MM_QUERYITEMCOUNT, MPVOID, MPVOID);
    23122312
    2313   /* clean out old additions */
     2313  // clean out old additions
    23142314  while ((SHORT) WinSendMsg(hwndMenu,
    23152315                            MM_DELETEITEM,
     
    23312331    HWND hwndChild;
    23322332
    2333     /* add children of the main FM/2 client */
     2333    // add children of the main FM/2 client
    23342334    henum = WinBeginEnumWindows(hwndTop);
    23352335    memset(&mi, 0, sizeof(mi));
     
    23552355  }
    23562356
    2357   /* add external FM/2 windows */
     2357  // add external FM/2 windows
    23582358  {
    23592359    PSWBLOCK pswb;
     
    23632363
    23642364    hwndTopFrame = hwndTop ? WinQueryWindow(hwndTop, QW_PARENT) : (HWND)0;
    2365     /* Get the switch list information */
     2365    // Get the switch list information
    23662366    x = 0;
    23672367    ulcEntries = WinQuerySwitchList(0, NULL, 0);
    23682368    ulSize = sizeof(SWBLOCK) + sizeof(HSWITCH) + (ulcEntries + 4L) *
    23692369      (LONG) sizeof(SWENTRY);
    2370     /* Allocate memory for list */
     2370    // Allocate memory for list
    23712371    pswb = xmalloc(ulSize, pszSrcFile, __LINE__);
    23722372    if (pswb) {
    2373       /* Put the info in the list */
     2373      // Put the info in the list
    23742374      ulcEntries = WinQuerySwitchList(0, pswb, ulSize - sizeof(SWENTRY));
    2375       /* do the dirty deed */
     2375      // do the dirty deed
    23762376      memset(&mi, 0, sizeof(mi));
    23772377      for (i = 0; i < pswb->cswentry; i++) {
     
    24202420
    24212421  if (hwndMain && hwndMenu && cmd >= IDM_WINDOWSTART && cmd < IDM_SWITCHSTART) {
    2422     /*
    2423      * select a child window (of client)
    2424      */
     2422    // select a child window (of client)
    24252423
    24262424    MENUITEM mi;
Note: See TracChangeset for help on using the changeset viewer.