Commit 61ef0434fcd947fa1be1cc1c3848b503047d99f0
1 parent
5eed74db
removing log from iniFile
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
anubis_dev/library/system/parameter/inifile.anubis
| ... | ... | @@ -94,7 +94,7 @@ define Bool isSection( List(IniSection) sectionList, String sectionName) = |
| 94 | 94 | if sectionList is |
| 95 | 95 | { |
| 96 | 96 | [] then false, //the list is empty, the section doesn't exist |
| 97 | - [h . t] then if h is iniSection(name, _) then print("inspecting " +name +" \n"); | |
| 97 | + [h . t] then if h is iniSection(name, _) then //print("inspecting " +name +" \n"); | |
| 98 | 98 | if name = sectionName |
| 99 | 99 | then true |
| 100 | 100 | else isSection(t, sectionName) |
| ... | ... | @@ -289,7 +289,7 @@ define IniInfo parseIniFile( Stream s, IniInfo ini, String sectionName) = |
| 289 | 289 | section_header(newSectionName) then forget(addSection(ini, newSectionName)); parseIniFile( s, ini, newSectionName), |
| 290 | 290 | variable(varName, value) then |
| 291 | 291 | if sectionName = "" then |
| 292 | - print("variable " + varName + "is without section"); | |
| 292 | + print("variable " + varName + "is without section\n"); | |
| 293 | 293 | parseIniFile(s , ini, sectionName) |
| 294 | 294 | else addVar(ini , sectionName, varName , value, string); |
| 295 | 295 | parseIniFile(s , ini, sectionName), |
| ... | ... | @@ -474,14 +474,14 @@ define Maybe(One) writeOfSectionList( RWStream s, Var(List(IniSection)) section) |
| 474 | 474 | public define One writeIniInfo( IniInfo ini, String newFile) = |
| 475 | 475 | if ini is iniInfo(fileName, sectionList, _) then |
| 476 | 476 | if length(newFile) > 0 then |
| 477 | - print("writing of " + newFile + " Inifile \n\n"); | |
| 477 | + //print("writing of " + newFile + " Inifile \n\n"); | |
| 478 | 478 | if (Maybe(RWStream))file(newFile, new) is |
| 479 | 479 | { |
| 480 | 480 | failure then unique, //nothing to write |
| 481 | 481 | success(f) then forget(writeOfSectionList( f, sectionList)) |
| 482 | 482 | } |
| 483 | 483 | else |
| 484 | - print("writing of " + fileName + " Inifile \n\n"); | |
| 484 | + //print("writing of " + fileName + " Inifile \n\n"); | |
| 485 | 485 | if (Maybe(RWStream))file(fileName, new) is |
| 486 | 486 | { |
| 487 | 487 | failure then unique, //nothing to write | ... | ... |