Changeset 1616 for trunk/dll/arccnrs.c


Ignore:
Timestamp:
Aug 13, 2011, 8:32:14 PM (14 years ago)
Author:
Gregg Young
Message:

Updated a*.c files to Doxygen commenting style. (Ticket 55)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1554 r1616  
    8686  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
    8787                by temp file creation failures.
     88  13 Aug 11 GKY Change to Doxygen comment format
    8889
    8990***********************************************************************/
     
    383384      ret = TestCDates(&pai1->date, &pai1->time,
    384385                       &pai2->date, &pai2->time);
    385         /*(pai1->date.year < pai2->date.year) ? 1 :
    386         (pai1->date.year > pai2->date.year) ? -1 :
    387         (pai1->date.month < pai2->date.month) ? 1 :
    388         (pai1->date.month > pai2->date.month) ? -1 :
    389         (pai1->date.day < pai2->date.day) ? 1 :
    390         (pai1->date.day > pai2->date.day) ? -1 :
    391         (pai1->time.hours < pai2->time.hours) ? 1 :
    392         (pai1->time.hours > pai2->time.hours) ? -1 :
    393         (pai1->time.minutes < pai2->time.minutes) ? 1 :
    394         (pai1->time.minutes > pai2->time.minutes) ? -1 :
    395         (pai1->time.seconds < pai2->time.seconds) ? 1 :
    396         (pai1->time.seconds > pai2->time.seconds) ? -1 : 0;*/
    397386      break;
    398387
     
    718707          gotend = TRUE;
    719708        else {
    720           /* add to container */
     709          // add to container
    721710          fname = NULL;
    722711          bstrip(s);
     
    739728          for (fieldnum = 0; fieldnum <= highest; fieldnum++) {
    740729            pp = p;
    741             while (*pp && (*pp == ' ' || *pp == '\t'))  /* skip leading */
     730            while (*pp && (*pp == ' ' || *pp == '\t'))  // skip leading
    742731              pp++;
    743732            if (!*pp)
     
    795784            else if (fieldnum == info->fnpos) {
    796785              fname = pp;
    797               if (pp && *pp == '*' && !*(pp + 1))       /* workaround for LH.EXE */
     786              if (pp && *pp == '*' && !*(pp + 1))       // workaround for LH.EXE
    798787                fname = NULL;
    799788              if (info->nameislast)
     
    927916      }
    928917      else if (!nomove && tinfo) {
    929         /* if we got a false hit, move working hit to top */
     918        // if we got a false hit, move working hit to top
    930919        tinfo = info->next;
    931920        info->next = arcsighead;
     
    12191208        if (AcceptOneDrop(hwnd, mp1, mp2))
    12201209          return MRFROM2SHORT(DOR_DROP, DO_MOVE);
    1221         return MRFROM2SHORT(DOR_NODROP, 0);     /* Drop not valid */
     1210        return MRFROM2SHORT(DOR_NODROP, 0);     // Drop not valid
    12221211      case DM_DROPHELP:
    12231212        DropHelp(mp1, mp2, hwnd, GetPString(IDS_ARCCNRFOLDERDROPHELPTEXT));
     
    15121501      Fortify_BecomeOwner(dcd);
    15131502#     endif
    1514       /* set unique id */
     1503      // set unique id
    15151504      WinSetWindowUShort(hwnd, QWS_ID, ARCOBJ_FRAME + (ARC_FRAME - dcd->id));
    15161505      dcd->hwndObject = hwnd;           // pass back hwnd
     
    15211510
    15221511  case UM_RESCAN:
    1523     /*
     1512    /**
    15241513     * populate container
    15251514     */
     
    16801669            ad.namecanchange = 0;
    16811670            ad.fmoving = (li->type == IDM_ARCHIVEM);
    1682             if (!WinDlgBox(HWND_DESKTOP, dcd->hwndClient, ArchiveDlgProc, FM3ModHandle, ARCH_FRAME, (PVOID) & ad) || !*ad.arcname || !*ad.command)      /* we blew it */
     1671            if (!WinDlgBox(HWND_DESKTOP, dcd->hwndClient, ArchiveDlgProc,
     1672                           FM3ModHandle, ARCH_FRAME, (PVOID) & ad) || !*ad.arcname ||
     1673                !*ad.command)   // we blew it
    16831674              break;
    1684             /* build the sucker */
     1675            // build the sucker
    16851676            strcpy(szBuffer, ad.command);
    16861677            strcat(szBuffer, " ");
     
    19161907            } while (li->list[x]);
    19171908            if (li->type == IDM_EXTRACT || li->type == IDM_EXTRACTWDIRS) {
    1918               /* update windows */
     1909              // update windows
    19191910              for (x = 0; li->list[x]; x++) {
    19201911
     
    22982289
    22992290  case WM_SETFOCUS:
    2300     /*
     2291    /**
    23012292     * put name of our window (archive name) on status line
    23022293     */
     
    24142405    else {
    24152406      if (!dcd->hwndObject) {
    2416         /*
     2407        /**
    24172408         * first time through -- set things up
    24182409         */
     
    26932684
    26942685      case IDM_WINDOWSMENU:
    2695         /*
     2686        /**
    26962687         * add switchlist entries to end of pulldown menu
    26972688         */
     
    28932884      case IDM_SORTLWDATE:
    28942885        dcd->sortFlags &= SORT_REVERSE;
    2895         /* intentional fallthru */
     2886        // intentional fallthru
    28962887      case IDM_SORTREVERSE:
    28972888        switch (SHORT1FROMMP(mp1)) {
     
    32183209
    32193210          pDInfo = ((PCNRDRAGINFO) mp2)->pDragInfo;
    3220           DrgAccessDraginfo(pDInfo);    /* Access DRAGINFO */
    3221           DrgFreeDraginfo(pDInfo);      /* Free DRAGINFO */
     3211          DrgAccessDraginfo(pDInfo);    // Access DRAGINFO
     3212          DrgFreeDraginfo(pDInfo);      // Free DRAGINFO
    32223213        }
    32233214        return 0;
     
    32273218        if (mp2) {
    32283219
    3229           PDRAGITEM pDItem;             /* Pointer to DRAGITEM */
    3230           PDRAGINFO pDInfo;             /* Pointer to DRAGINFO */
     3220          PDRAGITEM pDItem;             // Pointer to DRAGITEM
     3221          PDRAGINFO pDInfo;             // Pointer to DRAGINFO
    32313222          PARCITEM pci;
    32323223
     
    32353226            pci = NULL;
    32363227          pDInfo = ((PCNRDRAGINFO) mp2)->pDragInfo;
    3237           DrgAccessDraginfo(pDInfo);    /* Access DRAGINFO */
     3228          DrgAccessDraginfo(pDInfo);    // Access DRAGINFO
    32383229          if (*dcd->arcname) {
    32393230            if ((driveflags[toupper(*dcd->arcname) - 'A'] &
     
    32473238            return MRFROM2SHORT(DOR_NODROP, 0);
    32483239          }
    3249           pDItem = DrgQueryDragitemPtr(pDInfo,  /* Access DRAGITEM */
    3250                                        0);      /* Index to DRAGITEM */
    3251           if (DrgVerifyRMF(pDItem,      /* Check valid rendering */
    3252                            (CHAR *) DRM_OS2FILE,        /* mechanisms and data */
     3240          pDItem = DrgQueryDragitemPtr(pDInfo,          // Access DRAGITEM
     3241                                       0);              // Index to DRAGITEM
     3242          if (DrgVerifyRMF(pDItem,                      // Check valid rendering
     3243                           (CHAR *) DRM_OS2FILE,        // mechanisms and data
    32533244                           NULL) && !(pDItem->fsControl & DC_PREPARE)) {
    3254             DrgFreeDraginfo(pDInfo);    /* Free DRAGINFO */
    3255             return MRFROM2SHORT(DOR_DROP,       /* Return okay to drop */
     3245            DrgFreeDraginfo(pDInfo);    // Free DRAGINFO
     3246            return MRFROM2SHORT(DOR_DROP,       // Return okay to drop
    32563247                                fCopyDefault ? DO_COPY : DO_MOVE);
    32573248          }
    3258           DrgFreeDraginfo(pDInfo);      /* Free DRAGINFO */
    3259         }
    3260         return (MRFROM2SHORT(DOR_NEVERDROP, 0));        /* Drop not valid */
     3249          DrgFreeDraginfo(pDInfo);      // Free DRAGINFO
     3250        }
     3251        return (MRFROM2SHORT(DOR_NEVERDROP, 0));        // Drop not valid
    32613252
    32623253      case CN_INITDRAG:
     
    35873578                 ARC_TYPE * sinfo)
    35883579{
    3589   /*
     3580  /**
    35903581   * bitmapped flags:
    35913582   *  1 = am extracted from another archive
Note: See TracChangeset for help on using the changeset viewer.