Francois Gouget : mlang/tests: Replace some '#if 0's with 'if (0)'s.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 8 06:35:29 CST 2007


Module: wine
Branch: master
Commit: 7f0b93eabc9977624eb2029a9b56613bae5590b6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7f0b93eabc9977624eb2029a9b56613bae5590b6

Author: Francois Gouget <fgouget at free.fr>
Date:   Sat Jan  6 19:33:10 2007 +0100

mlang/tests: Replace some '#if 0's with 'if (0)'s.

---

 dlls/mlang/tests/mlang.c |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c
index 3c871f7..69e8c50 100644
--- a/dlls/mlang/tests/mlang.c
+++ b/dlls/mlang/tests/mlang.c
@@ -399,12 +399,14 @@ static void test_EnumCodePages(IMultiLan
                 "wszWebCharset mismatch");
 #endif
 
-#if 0 /* native mlang returns completely messed up encodings in some cases */
+	if (0)
+	{
+	    /* native mlang returns completely messed up encodings in some cases */
 	    ok(mcsi.uiInternetEncoding == cpinfo[i].uiCodePage || mcsi.uiInternetEncoding == cpinfo[i].uiFamilyCodePage,
 		"%u != %u || %u\n", mcsi.uiInternetEncoding, cpinfo[i].uiCodePage, cpinfo[i].uiFamilyCodePage);
 	    ok(mcsi.uiCodePage == cpinfo[i].uiCodePage || mcsi.uiCodePage == cpinfo[i].uiFamilyCodePage,
 		"%u != %u || %u\n", mcsi.uiCodePage, cpinfo[i].uiCodePage, cpinfo[i].uiFamilyCodePage);
-#endif
+        }
 	}
 
 	ret = IMultiLanguage2_GetCharsetInfo(iML2, cpinfo[i].wszHeaderCharset, &mcsi);
@@ -423,12 +425,14 @@ static void test_EnumCodePages(IMultiLan
                 "wszHeaderCharset mismatch");
 #endif
 
-#if 0 /* native mlang returns completely messed up encodings in some cases */
+	if (0)
+	{
+	    /* native mlang returns completely messed up encodings in some cases */
 	    ok(mcsi.uiInternetEncoding == cpinfo[i].uiCodePage || mcsi.uiInternetEncoding == cpinfo[i].uiFamilyCodePage,
 		"%u != %u || %u\n", mcsi.uiInternetEncoding, cpinfo[i].uiCodePage, cpinfo[i].uiFamilyCodePage);
 	    ok(mcsi.uiCodePage == cpinfo[i].uiCodePage || mcsi.uiCodePage == cpinfo[i].uiFamilyCodePage,
 		"%u != %u || %u\n", mcsi.uiCodePage, cpinfo[i].uiCodePage, cpinfo[i].uiFamilyCodePage);
-#endif
+	}
 	}
 
 	ret = IMultiLanguage2_GetCharsetInfo(iML2, cpinfo[i].wszBodyCharset, &mcsi);
@@ -447,12 +451,14 @@ static void test_EnumCodePages(IMultiLan
                 "wszBodyCharset mismatch");
 #endif
 
-#if 0 /* native mlang returns completely messed up encodings in some cases */
+	if (0)
+	{
+	    /* native mlang returns completely messed up encodings in some cases */
 	    ok(mcsi.uiInternetEncoding == cpinfo[i].uiCodePage || mcsi.uiInternetEncoding == cpinfo[i].uiFamilyCodePage,
 		"%u != %u || %u\n", mcsi.uiInternetEncoding, cpinfo[i].uiCodePage, cpinfo[i].uiFamilyCodePage);
 	    ok(mcsi.uiCodePage == cpinfo[i].uiCodePage || mcsi.uiCodePage == cpinfo[i].uiFamilyCodePage,
 		"%u != %u || %u\n", mcsi.uiCodePage, cpinfo[i].uiCodePage, cpinfo[i].uiFamilyCodePage);
-#endif
+	}
 	}
 
 	trace("---\n");
@@ -470,13 +476,14 @@ static void test_EnumCodePages(IMultiLan
     ok(n == 1 && ret == S_OK, "IEnumCodePage_Next: expected 1/S_OK, got %u/%08x\n", n, ret);
     cpinfo_cmp(&cpinfo[0], &cpinfo2);
 
-#if 0
+    if (0)
+    {
     /* Due to a bug in MS' implementation of IEnumCodePage_Skip
      * it's not used here.
      */
     ret = IEnumCodePage_Skip(iEnumCP, 1);
     ok(ret == S_OK, "IEnumCodePage_Skip: expected S_OK, got %08x\n", ret);
-#endif
+    }
     for (i = 0; i < total - 1; i++)
     {
         n = 0;
@@ -589,13 +596,14 @@ static void test_EnumScripts(IMultiLangu
     ok(n == 1 && ret == S_OK, "IEnumScript_Next: expected 1/S_OK, got %u/%08x\n", n, ret);
     scriptinfo_cmp(&sinfo[0], &sinfo2);
 
-#if 0
+    if (0)
+    {
     /* Due to a bug in MS' implementation of IEnumScript_Skip
      * it's not used here.
      */
     ret = IEnumScript_Skip(iEnumScript, 1);
     ok(ret == S_OK, "IEnumScript_Skip: expected S_OK, got %08x\n", ret);
-#endif
+    }
     for (i = 0; i < total - 1; i++)
     {
         n = 0;




More information about the wine-cvs mailing list