Author: fmantek
Date: Mon Mar 26 02:46:13 2007
New Revision: 120

Modified:
   trunk/clients/cs/src/VS2003/gdata.sln
   trunk/clients/cs/src/VS2003/gdata/gdata.csproj
   trunk/clients/cs/src/core/tracing.cs

Log:
Changed the tracing to depend on the TRACE symbol during compilation, and 
removed that define
from the release build of the GData DLL

Modified: trunk/clients/cs/src/VS2003/gdata.sln
==============================================================================
--- trunk/clients/cs/src/VS2003/gdata.sln       (original)
+++ trunk/clients/cs/src/VS2003/gdata.sln       Mon Mar 26 02:46:13 2007
@@ -51,6 +51,10 @@
        ProjectSection(ProjectDependencies) = postProject
        EndProjectSection
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "unittests", 
"unittests\unittests.csproj", "{22D56E6B-DF29-4675-A655-B33252B7FA4B}"
+       ProjectSection(ProjectDependencies) = postProject
+       EndProjectSection
+EndProject
 Global
        GlobalSection(SolutionConfiguration) = preSolution
                Debug = Debug
@@ -111,6 +115,10 @@
                {87784AB1-DCAB-4C86-BC03-C4D8D1A28606}.Debug.Build.0 = 
Debug|.NET
                {87784AB1-DCAB-4C86-BC03-C4D8D1A28606}.Release.ActiveCfg = 
Release|.NET
                {87784AB1-DCAB-4C86-BC03-C4D8D1A28606}.Release.Build.0 = 
Release|.NET
+               {22D56E6B-DF29-4675-A655-B33252B7FA4B}.Debug.ActiveCfg = 
Debug|.NET
+               {22D56E6B-DF29-4675-A655-B33252B7FA4B}.Debug.Build.0 = 
Debug|.NET
+               {22D56E6B-DF29-4675-A655-B33252B7FA4B}.Release.ActiveCfg = 
Release|.NET
+               {22D56E6B-DF29-4675-A655-B33252B7FA4B}.Release.Build.0 = 
Release|.NET
        EndGlobalSection
        GlobalSection(ExtensibilityGlobals) = postSolution
        EndGlobalSection

Modified: trunk/clients/cs/src/VS2003/gdata/gdata.csproj
==============================================================================
--- trunk/clients/cs/src/VS2003/gdata/gdata.csproj      (original)
+++ trunk/clients/cs/src/VS2003/gdata/gdata.csproj      Mon Mar 26 02:46:13 2007
@@ -48,7 +48,7 @@
                     BaseAddress = "285212672"
                     CheckForOverflowUnderflow = "false"
                     ConfigurationOverrideFile = ""
-                    DefineConstants = "TRACE"
+                    DefineConstants = ""
                     DocumentationFile = ""
                     DebugSymbols = "false"
                     FileAlignment = "4096"
@@ -197,7 +197,7 @@
                     SubType = "Code"
                     BuildAction = "Compile"
                 />
-                 <File
+                <File
                     RelPath = "authexceptions.cs"
                     Link = "..\..\core\authexceptions.cs"
                     SubType = "Code"

Modified: trunk/clients/cs/src/core/tracing.cs
==============================================================================
--- trunk/clients/cs/src/core/tracing.cs        (original)
+++ trunk/clients/cs/src/core/tracing.cs        Mon Mar 26 02:46:13 2007
@@ -12,9 +12,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
 */
-#define TRACE
-#define USE_TRACING
-
 
 using System;
 using System.IO;
@@ -83,7 +80,7 @@
         //////////////////////////////////////////////////////////////////////
         /// <summary>default initializer, does nothing right now</summary> 
         //////////////////////////////////////////////////////////////////////
-        [Conditional("USE_TRACING")] static public void InitTracing()
+        [Conditional("TRACE")] static public void InitTracing()
         {
             return;
         }
@@ -93,7 +90,7 @@
         //////////////////////////////////////////////////////////////////////
         /// <summary>Default deinitializer, closes the listener 
streams</summary> 
         //////////////////////////////////////////////////////////////////////
-        [Conditional("USE_TRACING")] static public void ExitTracing()
+        [Conditional("TRACE")] static public void ExitTracing()
         {
             return;
         }
@@ -104,7 +101,7 @@
         /// <summary>Method to trace the current call with an additional 
message</summary> 
         /// <param name="msg"> msg string to display</param>
         //////////////////////////////////////////////////////////////////////
-        [Conditional("USE_TRACING")] static public void TraceCall(string msg)
+        [Conditional("TRACE")] static public void TraceCall(string msg)
         {
             // puts out the callstack and the msg
             try
@@ -131,7 +128,7 @@
         //////////////////////////////////////////////////////////////////////
         /// <summary>Method to trace the current call with an additional 
message</summary> 
         //////////////////////////////////////////////////////////////////////
-        [Conditional("USE_TRACING")] static public void TraceCall()
+        [Conditional("TRACE")] static public void TraceCall()
         {
             Tracing.TraceCall("");
         }
@@ -140,7 +137,7 @@
         /// <summary>Method to trace the current call with an additional 
message</summary> 
         /// <param name="msg"> msg string to display</param>
         //////////////////////////////////////////////////////////////////////
-        [Conditional("USE_TRACING")] static public void TraceInfo(string msg)
+        [Conditional("TRACE")] static public void TraceInfo(string msg)
         {
             Tracing.TraceMsg(msg);
         }
@@ -149,7 +146,7 @@
         /// <summary>Method to trace the a message with timestamping</summary> 
         /// <param name="msg"> msg string to display</param>
         //////////////////////////////////////////////////////////////////////
-        [Conditional("USE_TRACING")] static public void Timestamp(string msg)
+        [Conditional("TRACE")] static public void Timestamp(string msg)
         {
             DateTime now = DateTime.Now;
             msg = now.ToString("HH:mm:ss:ffff") + " - " + msg; 
@@ -161,7 +158,7 @@
         /// <summary>Method to trace a message</summary> 
         /// <param name="msg"> msg string to display</param>
         //////////////////////////////////////////////////////////////////////
-        [Conditional("USE_TRACING")] static public void TraceMsg(string msg)
+        [Conditional("TRACE")] static public void TraceMsg(string msg)
         {
             try
             {
@@ -177,7 +174,7 @@
         /// <param name="condition"> if false, raises assert</param>
         /// <param name="msg"> msg string to display</param>
         //////////////////////////////////////////////////////////////////////
-        [Conditional("USE_TRACING")] static public void Assert(bool condition, 
string msg)
+        [Conditional("TRACE")] static public void Assert(bool condition, 
string msg)
         {
             if (condition == false)
             {

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to