Re: [ tidy-Patches-1551769 ] memory mapping on win32

"Geoff Air" <[email protected]> Thu, 21 Sep 2006 17:47:29 +0000
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <[email protected]>
Thursday, 21 September 2006.

Hi Arnaud,

Thanks for the recent cvs updates ...

As mentioned earlier, the following patch needs
to be applied to the file build\msvc\tidydll.dsp
Maybe this is already work-in-progress ...

<diff1>
diff -urN F:\FGCVS\tidy\build\msvc\tidydll.dsp 
tidycvs6\build\msvc\tidydll.dsp
--- F:\FGCVS\tidy\build\msvc\tidydll.dsp	Tue Sep 19 15:45:44 2006
+++ tidycvs6\build\msvc\tidydll.dsp	Thu Sep 21 13:35:57 2006
@@ -183,7 +183,7 @@

SOURCE=..\..\src\utf8.c
# End Source File
-# End Group
+# Begin Source File

SOURCE=..\..\src\win32tc.c
# End Source File
</diff1>

Without this the tidydll.dsp will FAIL to load,
in ANY and ALL versions of MSVC (6, 7.1 and 8)!

And, if we want to REMOVE a WARNING from MSVC6
compile, then the following patch also needs to be
applied to mappedio.c

<diff2>
diff -urN F:\FGCVS\tidy\src\mappedio.c tidycvs6\src\mappedio.c
--- F:\FGCVS\tidy\src\mappedio.c	Tue Sep 19 15:45:47 2006
+++ tidycvs6\src\mappedio.c	Thu Sep 21 13:43:41 2006
@@ -89,6 +89,9 @@


#if defined(_WIN32)
+#if _MSC_VER < 1300  /* less than msvc++ 7.0 */
+#pragma warning(disable:4115) /* named type definition in parentheses */
+#endif /* #if _MSC_VER < 1300 - less than msvc++ 7.0 */
#include "streamio.h"
#include "tidy-int.h"
#include "message.h"
</diff2>

This second patch is not too important, in that
it is ONLY a 'warning', but the first causes
the build to fail to load into MSVC, thus the
Tidy compile CAN NOT PROCEED ...

Regards,

Geoff.

EOF - Tidy-047.doc

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV