Hi,
The attached patch addresses some small MSVC8 issues, when the MSVC6
Tidy.dsw is loaded and converted to MSVC8 'solution' files ...
1. build/msvc/Tidy.dsp - Added the preprocessor define
_CRT_SECURE_NO_DEPRECATE. This has no effect on the MSVC6, nor MSVC7.1
builds, but removes most of the very UGLY 'depreciation' warning from MSVC8
...
2. build/readme.txt - Remove a non-existent directory ms.net, and add the
rpm directory. I agree there is no need to supply a ms.net 'solution' file
set, since these are easily created by later versions of MSVC from the
dsw/dsp MSVC6 set. This keeps maintenance to a minimum.
Many other open source projects adopt this policy of only supplying the
MSVC6 build files (DSW/DSP), at least while they remain fully
'convertible'. And many also add this _CRT_SECURE_NO_DEPRECATE define to
take some of the pain out of using this 'new' compiler, MSVC8, and the
latest PSDK header set ...
3. console/tidy.c - while it is clear to human readers that the code will
never reach this point, with an assert(0); abort(); before it, but the
compiler does not read so well, ;=)) thus reports a path with no return
warning. So it is added just for the 'blind' compiler ...
4. include/platform.h - while the above preprocessor define removes most of
the 'depreciation' warning, in some cases it is still necessary to add this
pragma. You will note it is just for _MSC_VER when _MSC_VER > 1300 ... that
is MSVC8 ...
5. build/msvc/MakeDLL.vc6 and Makefile.vc6 - Although I have patched these,
you may choose to DELETE them instead. (a) There are very few of us who
revert to using the nmake utility from the command line these days. (b)
Although I got the MakeDLL.vc6 to work - it required some adjustment of my
environment, at least when using the MSVC8 command prompt, I never got the
Makefile.vc6 fully functional.
The compiler reported many illegal 'struct' and 'union' in winnt.h, pulled
in by windows.h, in mappedio.c, and I decided not to spend the time to find
a work around for this ... since I would never use it anyway ... maybe it
would work in the MSVC6 or MSVC7 command prompt worlds ...
As stated, I would be all for REMOVING them altogether ... I had to adjust
the INCLUDE environment variable, and that takes some considerable
understanding of the nmake process ... but if you decide to keep them, then
the patch at least brings them more up-to-date ...
Regards,
Geoff.
attached: diffs/tidycvs02.txt
EOF - MSVC8-Issues-01.doc
Nobody/Anonymous
All
Current - all platforms
Public
|
Date: 2009-10-17 02:21 This Tracker item was closed automatically by the system. It was |
|
Date: 2007-01-21 20:42
|
|
Date: 2007-01-05 16:50
|
|
Date: 2007-01-05 14:54
|
|
Date: 2006-12-30 13:38
|
|
Date: 2006-12-30 08:39
|
| Filename | Description | Download |
|---|---|---|
| tidycvs02.txt | patches for MSVC8 issues | Download |
| tidycvs02a.zip | zip file for MSVC8 issues | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | 2007-01-21 20:42 | 2009-10-17 02:21 | sf-robot |
| allow_comments | 1 | 2009-10-17 02:21 | sf-robot |
| status_id | Pending | 2009-10-17 02:21 | sf-robot |
| close_date | - | 2007-01-21 20:42 | arnaud02 |
| status_id | Open | 2007-01-21 20:42 | arnaud02 |
| resolution_id | None | 2007-01-21 20:42 | arnaud02 |
| File Added | 209884: tidycvs02a.zip | 2007-01-05 14:54 | geoffmc |
| File Added | 205142: tidycvs02.txt | 2006-11-30 16:52 | geoffmc |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use