hbons/SparkleShare — Issue #375: Latest version will not compile
Author: stevec99
Created: 2011-10-24 14:06:30+00:00
State: open

Making all in SparkleLib
MCS ../bin/SparkleLib.dll
./SparkleHelpers.cs(92,18): error CS1525: Unexpected symbol `string', expecting `class', `delegate', `enum', `interface', `partial', or `struct'
./SparkleHelpers.cs(96,0): error CS1525: Unexpected symbol `}', expecting `class', `delegate', `enum', `interface', `partial', or `struct'
Compilation failed: 2 error(s), 0 warnings
make[1]: *** [../bin/SparkleLib.dll] Error 1
make: *** [all-recursive] Error 1

This patch fixes it for me -:

diff --git a/SparkleLib/SparkleHelpers.cs b/SparkleLib/SparkleHelpers.cs
index 21855f5..7bb101c 100755
--- a/SparkleLib/SparkleHelpers.cs
+++ b/SparkleLib/SparkleHelpers.cs
@@ -38,6 +38,7 @@ namespace SparkleLib {
Console.WriteLine (timestamp + " " + "[" + type + "]" + message);
}
}
+

// Makes it possible to combine more than
@@ -86,12 +87,13 @@ namespace SparkleLib {
DateTime unix_epoch = new DateTime (1970, 1, 1, 0, 0, 0, 0);
return unix_epoch.AddSeconds (timestamp);
}
- }
+

- // Gets the relative path of two hierarchical absolute paths
- public static string DiffPaths (string target, string source)
- {
- return target.Replace (source + Path.DirectorySeparatorChar, "");
- }
+ // Gets the relative path of two hierarchical absolute paths
+ public static string DiffPaths (string target, string source)
+ {
+ return target.Replace (source + Path.DirectorySeparatorChar, "");
+ }
+ }
}