Changeset 620


Ignore:
Timestamp:
Apr 20, 2007, 9:23:14 PM (18 years ago)
Author:
Steven Levine
Message:

Minor reformat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eas.c

    r52 r620  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2002 Steven H.Levine
     9  Copyright (c) 2002-2007 Steven H.Levine
    1010
    11   Revisions     16 Oct 02 SHL - Reformat
    12                 08 Feb 03 SHL - Free list with free() since we don't
    13                                 allocate list contents
     11  16 Oct 02 SHL Reformat
     12  08 Feb 03 SHL Free list with free() since we don't
     13                allocate list contents
     14  08 Apr 07 SHL Minor reformat
    1415
    1516***********************************************************************/
    16 
    17 
    1817
    1918#define INCL_DOS
     
    4342  *fullname = 0;
    4443  for(x = 1;x < argc;x++) {
    45     if(!strchr("/;,`\'",*argv[x]) && IsFile(argv[x]) != -1) {
    46       if(DosQueryPathInfo(argv[x],FIL_QUERYFULLNAME,fullname,
    47                           sizeof(fullname)))
    48         strcpy(fullname,argv[x]);
     44    if (!strchr("/;,`\'",*argv[x]) && IsFile(argv[x]) != -1) {
     45      if (DosQueryPathInfo(argv[x],FIL_QUERYFULLNAME,fullname,
     46                           sizeof(fullname)))
     47        strcpy(fullname,argv[x]);
    4948      AddToList(fullname,&list,&numfiles,&numalloc);
    5049    }
    5150  }
    5251  hab = WinInitialize(0);
    53   if(hab) {
     52  if (hab) {
    5453    hmq = WinCreateMsgQueue(hab,384);
    55     if(hmq) {
    56       if(InitFM3DLL(hab,argc,argv)) {
    57         if(!list) {
    58           strcpy(fullname,"*");
    59           list = malloc(sizeof(CHAR *) * 2);
    60           if(!list || !insert_filename(HWND_DESKTOP,fullname,TRUE,FALSE) ||
    61              !*fullname || *fullname == '*')
    62             goto Abort;
    63           list[0] = fullname;
    64           list[1] = NULL;
    65         }
    66         WinDlgBox(HWND_DESKTOP,
     54    if (hmq) {
     55      if (InitFM3DLL(hab,argc,argv)) {
     56        if (!list) {
     57          strcpy(fullname,"*");
     58          list = malloc(sizeof(CHAR *) * 2);
     59          if (!list || !insert_filename(HWND_DESKTOP,fullname,TRUE,FALSE) ||
     60              !*fullname || *fullname == '*')
     61            goto Abort;
     62          list[0] = fullname;
     63          list[1] = NULL;
     64        }
     65        WinDlgBox(HWND_DESKTOP,
    6766                  HWND_DESKTOP,
    6867                  DisplayEAsProc,
Note: See TracChangeset for help on using the changeset viewer.