Changeset 1902 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 04/03/03 15:37:41 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MRead.cc
r1896 r1902 56 56 { 57 57 // 58 // Don't allow 'global' setup of files59 //60 if (prefix.IsNull())61 return kFALSE;62 63 //64 58 // Search (beginning with 0) all keys 65 59 // 66 for (int i=0;; i++) 60 int i=0; 61 while (1) 67 62 { 68 63 TString idx = "File"; … … 70 65 71 66 // Output if print set to kTRUE 72 IsEnvDefined(env, prefix, idx, print); 67 if (!IsEnvDefined(env, prefix, idx, print)) 68 break; 73 69 74 70 // Try to get the file name 75 71 TString name = GetEnvValue(env, prefix, idx, ""); 76 72 if (name.IsNull()) 77 break; 73 { 74 *fLog << warn << prefix+"."+idx << " empty." << endl; 75 continue; 76 } 78 77 79 78 if (name.BeginsWith("\"") && name.EndsWith("\"")) … … 83 82 } 84 83 85 if (print)86 *fLog << all << "Add File: " << name << endl; 84 *fLog << inf << "Add File: " << name << endl; 85 87 86 AddFile(name); 87 i++; 88 88 } 89 89 90 return kTRUE;90 return i!=0; 91 91 }
Note:
See TracChangeset
for help on using the changeset viewer.