From 61ef0434fcd947fa1be1cc1c3848b503047d99f0 Mon Sep 17 00:00:00 2001 From: Cédric Ricard Date: Thu, 29 Jan 2009 21:44:51 +0000 Subject: [PATCH] removing log from iniFile --- anubis_dev/library/system/parameter/inifile.anubis | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/anubis_dev/library/system/parameter/inifile.anubis b/anubis_dev/library/system/parameter/inifile.anubis index e4c5891..31f21a6 100644 --- a/anubis_dev/library/system/parameter/inifile.anubis +++ b/anubis_dev/library/system/parameter/inifile.anubis @@ -94,7 +94,7 @@ define Bool isSection( List(IniSection) sectionList, String sectionName) = if sectionList is { [] then false, //the list is empty, the section doesn't exist - [h . t] then if h is iniSection(name, _) then print("inspecting " +name +" \n"); + [h . t] then if h is iniSection(name, _) then //print("inspecting " +name +" \n"); if name = sectionName then true else isSection(t, sectionName) @@ -289,7 +289,7 @@ define IniInfo parseIniFile( Stream s, IniInfo ini, String sectionName) = section_header(newSectionName) then forget(addSection(ini, newSectionName)); parseIniFile( s, ini, newSectionName), variable(varName, value) then if sectionName = "" then - print("variable " + varName + "is without section"); + print("variable " + varName + "is without section\n"); parseIniFile(s , ini, sectionName) else addVar(ini , sectionName, varName , value, string); parseIniFile(s , ini, sectionName), @@ -474,14 +474,14 @@ define Maybe(One) writeOfSectionList( RWStream s, Var(List(IniSection)) section) public define One writeIniInfo( IniInfo ini, String newFile) = if ini is iniInfo(fileName, sectionList, _) then if length(newFile) > 0 then - print("writing of " + newFile + " Inifile \n\n"); + //print("writing of " + newFile + " Inifile \n\n"); if (Maybe(RWStream))file(newFile, new) is { failure then unique, //nothing to write success(f) then forget(writeOfSectionList( f, sectionList)) } else - print("writing of " + fileName + " Inifile \n\n"); + //print("writing of " + fileName + " Inifile \n\n"); if (Maybe(RWStream))file(fileName, new) is { failure then unique, //nothing to write -- libgit2 0.21.4