Changeset 1673 for trunk/dll/init.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/init.c

    r1664 r1673  
    304304CHAR *NullStr             = "";
    305305PCSZ PCSZ_CM_ALLOCRECORD  = "CM_ALLOCRECORD";
     306PCSZ PCSZ_QUERYCNRINFO    = "CM_QUERYCNRINFO";
    306307PCSZ PCSZ_DOSCREATEMUTEXSEM =  "DosCreateMutexSem";
    307308PCSZ PCSZ_DOSCREATEEVENTSEM =  "DosCreateEventSem";
     
    543544VOID APIENTRY DeInitFM3DLL(ULONG why)
    544545{
    545   /* cleanup */
     546  // cleanup
    546547  static CHAR s[CCHMAXPATH];
    547548  CHAR *enddir, szTempFile[CCHMAXPATH];
     
    639640BOOL InitFM3DLL(HAB hab, int argc, char **argv)
    640641{
    641   /*
     642  /**
    642643   * this function should be called by any application using this DLL right
    643644   * after setting up a message queue
     
    714715    strcpy(profile, PCSZ_FM3DOTINI);
    715716  mypid = getpid();
    716   /* give default appname if none set by caller */
     717  // give default appname if none set by caller
    717718  if (!*appname)
    718719    strcpy(appname, FM3Str);
    719   /* save appname; may be reset below */
     720  // save appname; may be reset below
    720721  strcpy(realappname, appname);
    721722  if (!strcmp(appname, FM3Str))
     
    844845  priority_bumped();
    845846
    846   /* _heapmin() is done in a separate thread -- start it */
     847  // _heapmin() is done in a separate thread -- start it
    847848  if (xbeginthread(HeapThread,
    848849                   32768,
     
    853854  }
    854855
    855   /* timer messages are sent from a separate thread -- start it */
     856  // timer messages are sent from a separate thread -- start it
    856857  if (!StartTimer()) {
    857858    Runtime_Error(pszSrcFile, __LINE__,
     
    860861  }
    861862
    862   /* Are we the workplace shell? */
     863  // Are we the workplace shell?
    863864  env = getenv("WORKPLACE_PROCESS");
    864865  fWorkPlace = env != NULL &&
     
    957958    strcpy(appname, FM3Str);
    958959
    959   /* start help */
     960  // start help
    960961  memset(&hini, 0, sizeof(HELPINIT));
    961962  hini.cb = sizeof(HELPINIT);
    962   // hini.ulReturnCode = 0;
    963   // hini.pszTutorialName = NULL;
    964963  hini.phtHelpTable = (PHELPTABLE) MAKELONG(ID_HELPTABLE, 0xffff);
    965964  hini.hmodAccelActionBarModule = (HMODULE) 0;
    966   // hini.idAccelTable = 0;
    967   // hini.idActionBar = 0;
    968965  hini.pszHelpWindowTitle = (PSZ)GetPString(IDS_FM2HELPTITLETEXT);
    969966  hini.hmodHelpTableModule = FM3ModHandle;
     
    10151012  }
    10161013
    1017   /* register window classes we use */
     1014  // register window classes we use
    10181015  WinRegisterClass(hab,
    10191016                   (CHAR *) WC_MAINWND,
     
    16161613  LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault, FALSE);
    16171614
    1618   /* load pointers and icons we use */
     1615  // load pointers and icons we use
    16191616  hptrArrow = WinQuerySysPointer(HWND_DESKTOP, SPTR_ARROW, FALSE);
    16201617  hptrBusy = WinQuerySysPointer(HWND_DESKTOP, SPTR_WAIT, FALSE);
     
    17651762    }
    17661763  }
    1767   DosClose(handle);                     /* Either way, we're done for now */
    1768   return ret;                           /* Return TRUE if matched */
     1764  DosClose(handle);                     // Either way, we're done for now
     1765  return ret;                           // Return TRUE if matched
    17691766}
    17701767
Note: See TracChangeset for help on using the changeset viewer.