Remove (Open)Watcom support.
This compiler is not being developed since several years and almost certainly can't be used to build the current wxWidgets sources anyhow, so remove all support for it, including a lot of extremely ugly workarounds for its bugs with template functions. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -11,9 +11,6 @@
|
||||
#define _WX_STRVARARG_H_
|
||||
|
||||
#include "wx/platform.h"
|
||||
#if wxONLY_WATCOM_EARLIER_THAN(1,4)
|
||||
#error "OpenWatcom version >= 1.4 is required to compile this code"
|
||||
#endif
|
||||
|
||||
#include "wx/cpp.h"
|
||||
#include "wx/chartype.h"
|
||||
@@ -1159,67 +1156,4 @@ private:
|
||||
inline void name(_WX_VARARG_FIXED_UNUSED_EXPAND(numfixed, fixed)) \
|
||||
{}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// workaround for OpenWatcom bug #351
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifdef __WATCOMC__
|
||||
// workaround for http://bugzilla.openwatcom.org/show_bug.cgi?id=351
|
||||
|
||||
// This macro can be used to forward a 'vararg' template to another one with
|
||||
// different fixed arguments types. Parameters are same as for
|
||||
// WX_DEFINE_VARARG_FUNC (rettype=void can be used here), 'convfixed' is how
|
||||
// to convert fixed arguments. For example, this is typical code for dealing
|
||||
// with different forms of format string:
|
||||
//
|
||||
// WX_DEFINE_VARARG_FUNC_VOID(Printf, 1, (const wxFormatString&),
|
||||
// DoPrintfWchar, DoPrintfUtf8)
|
||||
// #ifdef __WATCOMC__
|
||||
// WX_VARARG_WATCOM_WORKAROUND(void, Printf, 1, (const wxString&),
|
||||
// (wxFormatString(f1)))
|
||||
// WX_VARARG_WATCOM_WORKAROUND(void, Printf, 1, (const char*),
|
||||
// (wxFormatString(f1)))
|
||||
// ...
|
||||
#define WX_VARARG_WATCOM_WORKAROUND(rettype, name, numfixed, fixed, convfixed)\
|
||||
_WX_VARARG_ITER(_WX_VARARG_MAX_ARGS, \
|
||||
_WX_VARARG_WATCOM_WORKAROUND, \
|
||||
rettype, name, convfixed, dummy, numfixed, fixed)
|
||||
|
||||
#define WX_VARARG_WATCOM_WORKAROUND_CTOR(name, numfixed, fixed, convfixed) \
|
||||
_WX_VARARG_ITER(_WX_VARARG_MAX_ARGS, \
|
||||
_WX_VARARG_WATCOM_WORKAROUND_CTOR, \
|
||||
dummy, name, convfixed, dummy, numfixed, fixed)
|
||||
|
||||
#define _WX_VARARG_WATCOM_UNPACK_1(a1) a1
|
||||
#define _WX_VARARG_WATCOM_UNPACK_2(a1, a2) a1, a2
|
||||
#define _WX_VARARG_WATCOM_UNPACK_3(a1, a2, a3) a1, a2, a3
|
||||
#define _WX_VARARG_WATCOM_UNPACK_4(a1, a2, a3, a4) a1, a2, a3, a4
|
||||
#define _WX_VARARG_WATCOM_UNPACK(N, convfixed) \
|
||||
_WX_VARARG_WATCOM_UNPACK_##N convfixed
|
||||
|
||||
#define _WX_VARARG_PASS_WATCOM(i) a##i
|
||||
|
||||
#define _WX_VARARG_WATCOM_WORKAROUND(N, rettype, name, \
|
||||
convfixed, dummy, numfixed, fixed) \
|
||||
template<_WX_VARARG_JOIN(N, _WX_VARARG_TEMPL)> \
|
||||
rettype name(_WX_VARARG_FIXED_EXPAND(numfixed, fixed), \
|
||||
_WX_VARARG_JOIN(N, _WX_VARARG_ARG)) \
|
||||
{ \
|
||||
return name(_WX_VARARG_WATCOM_UNPACK(numfixed, convfixed), \
|
||||
_WX_VARARG_JOIN(N, _WX_VARARG_PASS_WATCOM)); \
|
||||
}
|
||||
|
||||
#define _WX_VARARG_WATCOM_WORKAROUND_CTOR(N, dummy1, name, \
|
||||
convfixed, dummy2, numfixed, fixed) \
|
||||
template<_WX_VARARG_JOIN(N, _WX_VARARG_TEMPL)> \
|
||||
name(_WX_VARARG_FIXED_EXPAND(numfixed, fixed), \
|
||||
_WX_VARARG_JOIN(N, _WX_VARARG_ARG)) \
|
||||
{ \
|
||||
name(_WX_VARARG_WATCOM_UNPACK(numfixed, convfixed), \
|
||||
_WX_VARARG_JOIN(N, _WX_VARARG_PASS_WATCOM)); \
|
||||
}
|
||||
|
||||
#endif // __WATCOMC__
|
||||
|
||||
#endif // _WX_STRVARARG_H_
|
||||
|
Reference in New Issue
Block a user