aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/Compiler
diff options
context:
space:
mode:
authorMelanie2009-11-25 08:39:29 +0000
committerMelanie2009-11-25 08:39:29 +0000
commit4fbdc538c7beb4015eeda12aa3f85440cc7b9690 (patch)
tree6534a0fbb7ffc3dc800d35801be519ae481f95b5 /OpenSim/Tools/Compiler
parentAdd wildcard to prebuild include. Seems each file can only hold one project (diff)
parent* Reverting last commit.. because it just made it worse. (diff)
downloadopensim-SC-4fbdc538c7beb4015eeda12aa3f85440cc7b9690.zip
opensim-SC-4fbdc538c7beb4015eeda12aa3f85440cc7b9690.tar.gz
opensim-SC-4fbdc538c7beb4015eeda12aa3f85440cc7b9690.tar.bz2
opensim-SC-4fbdc538c7beb4015eeda12aa3f85440cc7b9690.tar.xz
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Tools/Compiler')
-rw-r--r--OpenSim/Tools/Compiler/Program.cs26
1 files changed, 14 insertions, 12 deletions
diff --git a/OpenSim/Tools/Compiler/Program.cs b/OpenSim/Tools/Compiler/Program.cs
index b18e029..249e18b 100644
--- a/OpenSim/Tools/Compiler/Program.cs
+++ b/OpenSim/Tools/Compiler/Program.cs
@@ -36,7 +36,8 @@ namespace OpenSim.Tools.LSL.Compiler
36{ 36{
37 class Program 37 class Program
38 { 38 {
39 private static Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> m_positionMap; 39// Commented out because generated warning since m_positionMap could never be anything other than null
40// private static Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> m_positionMap;
40 private static CSharpCodeProvider CScodeProvider = new CSharpCodeProvider(); 41 private static CSharpCodeProvider CScodeProvider = new CSharpCodeProvider();
41 42
42 static void Main(string[] args) 43 static void Main(string[] args)
@@ -210,16 +211,16 @@ namespace OpenSim.Tools.LSL.Compiler
210 sfs.Close(); 211 sfs.Close();
211 212
212 string posmap = String.Empty; 213 string posmap = String.Empty;
213 if (m_positionMap != null) 214// if (m_positionMap != null)
214 { 215// {
215 foreach (KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> kvp in m_positionMap) 216// foreach (KeyValuePair<KeyValuePair<int, int>, KeyValuePair<int, int>> kvp in m_positionMap)
216 { 217// {
217 KeyValuePair<int, int> k = kvp.Key; 218// KeyValuePair<int, int> k = kvp.Key;
218 KeyValuePair<int, int> v = kvp.Value; 219// KeyValuePair<int, int> v = kvp.Value;
219 posmap += String.Format("{0},{1},{2},{3}\n", 220// posmap += String.Format("{0},{1},{2},{3}\n",
220 k.Key, k.Value, v.Key, v.Value); 221// k.Key, k.Value, v.Key, v.Value);
221 } 222// }
222 } 223// }
223 224
224 buf = enc.GetBytes(posmap); 225 buf = enc.GetBytes(posmap);
225 226
@@ -253,7 +254,8 @@ namespace OpenSim.Tools.LSL.Compiler
253 254
254 private static KeyValuePair<int, int> FindErrorPosition(int line, int col) 255 private static KeyValuePair<int, int> FindErrorPosition(int line, int col)
255 { 256 {
256 return FindErrorPosition(line, col, m_positionMap); 257 //return FindErrorPosition(line, col, m_positionMap);
258 return FindErrorPosition(line, col, null);
257 } 259 }
258 260
259 private class kvpSorter : IComparer<KeyValuePair<int,int>> 261 private class kvpSorter : IComparer<KeyValuePair<int,int>>