mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
last round of warning squashing. calling it a day now.
This commit is contained in:
@@ -65,7 +65,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
private enumCompileType DefaultCompileLanguage;
|
||||
private bool WriteScriptSourceToDebugFile;
|
||||
private bool CompileWithDebugInformation;
|
||||
private bool CleanUpOldScriptsOnStartup;
|
||||
// private bool CleanUpOldScriptsOnStartup;
|
||||
private Dictionary<string, bool> AllowedCompilers = new Dictionary<string, bool>(StringComparer.CurrentCultureIgnoreCase);
|
||||
private Dictionary<string, enumCompileType> LanguageMapping = new Dictionary<string, enumCompileType>(StringComparer.CurrentCultureIgnoreCase);
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
// Get some config
|
||||
WriteScriptSourceToDebugFile = m_scriptEngine.ScriptConfigSource.GetBoolean("WriteScriptSourceToDebugFile", true);
|
||||
CompileWithDebugInformation = m_scriptEngine.ScriptConfigSource.GetBoolean("CompileWithDebugInformation", true);
|
||||
CleanUpOldScriptsOnStartup = m_scriptEngine.ScriptConfigSource.GetBoolean("CleanUpOldScriptsOnStartup", true);
|
||||
// CleanUpOldScriptsOnStartup = m_scriptEngine.ScriptConfigSource.GetBoolean("CleanUpOldScriptsOnStartup", true);
|
||||
|
||||
// Get file prefix from scriptengine name and make it file system safe:
|
||||
FilePrefix = m_scriptEngine.ScriptEngineName;
|
||||
|
||||
@@ -69,11 +69,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
YP.tell(myCS_SW);
|
||||
|
||||
//Console.WriteLine("Mycode\n ===================================\n" + myCode+"\n");
|
||||
// disable warning on l1, don't see how we can
|
||||
// code this differently
|
||||
#pragma warning disable 0168
|
||||
foreach (bool l1 in Parser.parseInput(TermList))
|
||||
{
|
||||
foreach (bool l2 in YPCompiler.makeFunctionPseudoCode(TermList, FunctionCode))
|
||||
{
|
||||
ListPair VFC = new ListPair(FunctionCode, new Variable());
|
||||
// ListPair VFC = new ListPair(FunctionCode, new Variable());
|
||||
//Console.WriteLine("-------------------------")
|
||||
//Console.WriteLine(FunctionCode.ToString())
|
||||
//Console.WriteLine("-------------------------")
|
||||
@@ -81,6 +84,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
//YPCompiler.convertStringCodesCSharp(VFC);
|
||||
}
|
||||
}
|
||||
#pragma warning restore 0168
|
||||
YP.seen();
|
||||
myCS_SW.Close();
|
||||
YP.told();
|
||||
|
||||
Reference in New Issue
Block a user