Ignore:
Timestamp:
04/03/03 15:37:41 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MRead.cc

    r1896 r1902  
    5656{
    5757    //
    58     // Don't allow 'global' setup of files
    59     //
    60     if (prefix.IsNull())
    61         return kFALSE;
    62 
    63     //
    6458    // Search (beginning with 0) all keys
    6559    //
    66     for (int i=0;; i++)
     60    int i=0;
     61    while (1)
    6762    {
    6863        TString idx = "File";
     
    7065
    7166        // Output if print set to kTRUE
    72         IsEnvDefined(env, prefix, idx, print);
     67        if (!IsEnvDefined(env, prefix, idx, print))
     68            break;
    7369
    7470        // Try to get the file name
    7571        TString name = GetEnvValue(env, prefix, idx, "");
    7672        if (name.IsNull())
    77             break;
     73        {
     74            *fLog << warn << prefix+"."+idx << " empty." << endl;
     75            continue;
     76        }
    7877
    7978        if (name.BeginsWith("\"") && name.EndsWith("\""))
     
    8382        }
    8483
    85         if (print)
    86             *fLog << all << "Add File: " << name << endl;
     84        *fLog << inf << "Add File: " << name << endl;
     85
    8786        AddFile(name);
     87        i++;
    8888    }
    8989
    90     return kTRUE;
     90    return i!=0;
    9191}
Note: See TracChangeset for help on using the changeset viewer.