From: Arjen M. <arj...@wl...> - 2006-08-11 07:15:17
|
Werner Smekal wrote: >Hi, > > > >>I think it may be prudent to merge the MinGW and the MSDEV versions of >>the windows driver into one framework. If there are no objections, I >>can attempt that. >> >> > >I also think, that this would make sense - there is no need for two >drivers which essentially do the same. But which one is the newer one, >or more complete one? Why is the one in cpp and the other only in c? >Does it also make sense to move the win3 driver into the driver directory? > > Hello Werner, I took Jim's remarks to mean the way one would build stuff under MinGW and bare Windows, you obviously talk of the wingcc and win3 drivers. First: the use of C++ for the win3 driver is historical. As there is very little code that is C++ specific, it should be easy to convert it to C. Second: the existence of two such drivers. This is again at least historical, due to limitations of the available compilers and the platform-specific issues (like the special attributes needed to export functions in DLLs). I would gladly see a merger, but this would mean that the sources can be compiled successfully with both gcc and MSVC/C++ (in all its variations). Currently there is a lot of preprocessor magic going on to keep the MSVC/C++ compiler happy with the various contexts. Regards, Arjen |