Some minor modifications for VA 4.0 support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
31d80f31af
commit
2ce0a6e2d6
@ -79,8 +79,11 @@
|
||||
#define yy_scan_bytes PROIO_scan_bytes
|
||||
#define yy_flex_debug PROIO_flex_debug
|
||||
#define yy_flush_buffer PROIO_flush_buffer
|
||||
#if !defined(__VISAGECPP__)
|
||||
// multiply defined???
|
||||
#define yyleng PROIO_yyleng
|
||||
#define yytext PROIO_yytext
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -19,29 +19,25 @@
|
||||
// define this to 0 when building wxBase library
|
||||
#define wxUSE_GUI 1
|
||||
|
||||
#define WXWIN_COMPATIBILITY 0
|
||||
// Compatibility with 1.68 API.
|
||||
// Level 0: no backward compatibility, all new features
|
||||
// Level 1: Some compatibility. In fact
|
||||
// the compatibility code is now very minimal so there
|
||||
// is little advantage to setting it to 1.
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// General features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define wxUSE_NET_API 0 // Utilize OS/2's UPM netapi's
|
||||
#define wxUSE_PCX 1 // Utilize PCX images
|
||||
|
||||
#define wxUSE_PNM 1 // Utilize PNM images
|
||||
|
||||
#define wxUSE_GIF 1 // Utilize GIF images
|
||||
|
||||
#if defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )
|
||||
#define wxUSE_LONG_LONG 1
|
||||
#endif
|
||||
|
||||
#define wxUSE_NET_API 1 // Utilize OS/2's UPM netapi's
|
||||
|
||||
#define wxUSE_CONFIG 1
|
||||
// Use wxConfig, with CreateConfig in wxApp
|
||||
|
||||
#define WXWIN_COMPATIBILITY 0
|
||||
// Compatibility with 1.68 API.
|
||||
// Level 0: no backward compatibility, all new features
|
||||
// Level 1: Some compatibility. In fact
|
||||
// the compatibility code is now very minimal so there
|
||||
// is little advantage to setting it to 1.
|
||||
|
||||
#define wxUSE_POSTSCRIPT 1
|
||||
// 0 for no PostScript device context
|
||||
#define wxUSE_AFM_FOR_POSTSCRIPT 1
|
||||
@ -70,8 +66,6 @@
|
||||
#define wxUSE_DRAG_AND_DROP 1
|
||||
// 0 for no drag and drop
|
||||
|
||||
#define wxUSE_TOOLBAR 1
|
||||
// Define 1 to use toolbar classes
|
||||
#define wxUSE_BUTTONBAR 1
|
||||
// Define 1 to use buttonbar classes (enhanced toolbar
|
||||
// for MS Windows)
|
||||
@ -107,9 +101,6 @@
|
||||
#define wxUSE_CHECKLISTBOX 1
|
||||
// Define 1 to compile check listbox
|
||||
|
||||
#define wxUSE_CHOICE 1
|
||||
// Define 1 to compile choice
|
||||
|
||||
#define wxUSE_CARET 1
|
||||
// Define 1 to use wxCaret class
|
||||
#define wxUSE_XPM_IN_OS2 1
|
||||
@ -286,8 +277,6 @@
|
||||
// complains about deallocating
|
||||
// arrays of wxPoints if wxPoint is a class.
|
||||
|
||||
#define wxUSE_DRAG_AND_DROP 1
|
||||
|
||||
#define wxUSE_PORTABLE_FONTS_IN_OS2 0
|
||||
// Define 1 to use new portable font scheme in Windows
|
||||
// (used by default under X)
|
||||
|
@ -19,29 +19,25 @@
|
||||
// define this to 0 when building wxBase library
|
||||
#define wxUSE_GUI 1
|
||||
|
||||
#define WXWIN_COMPATIBILITY 0
|
||||
// Compatibility with 1.68 API.
|
||||
// Level 0: no backward compatibility, all new features
|
||||
// Level 1: Some compatibility. In fact
|
||||
// the compatibility code is now very minimal so there
|
||||
// is little advantage to setting it to 1.
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// General features
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define wxUSE_NET_API 0 // Utilize OS/2's UPM netapi's
|
||||
#define wxUSE_PCX 1 // Utilize PCX images
|
||||
|
||||
#define wxUSE_PNM 1 // Utilize PNM images
|
||||
|
||||
#define wxUSE_GIF 1 // Utilize GIF images
|
||||
|
||||
#if defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )
|
||||
#define wxUSE_LONG_LONG 1
|
||||
#endif
|
||||
|
||||
#define wxUSE_NET_API 1 // Utilize OS/2's UPM netapi's
|
||||
|
||||
#define wxUSE_CONFIG 1
|
||||
// Use wxConfig, with CreateConfig in wxApp
|
||||
|
||||
#define WXWIN_COMPATIBILITY 0
|
||||
// Compatibility with 1.68 API.
|
||||
// Level 0: no backward compatibility, all new features
|
||||
// Level 1: Some compatibility. In fact
|
||||
// the compatibility code is now very minimal so there
|
||||
// is little advantage to setting it to 1.
|
||||
|
||||
#define wxUSE_POSTSCRIPT 1
|
||||
// 0 for no PostScript device context
|
||||
#define wxUSE_AFM_FOR_POSTSCRIPT 1
|
||||
@ -70,8 +66,6 @@
|
||||
#define wxUSE_DRAG_AND_DROP 1
|
||||
// 0 for no drag and drop
|
||||
|
||||
#define wxUSE_TOOLBAR 1
|
||||
// Define 1 to use toolbar classes
|
||||
#define wxUSE_BUTTONBAR 1
|
||||
// Define 1 to use buttonbar classes (enhanced toolbar
|
||||
// for MS Windows)
|
||||
@ -106,10 +100,6 @@
|
||||
|
||||
#define wxUSE_CHECKLISTBOX 1
|
||||
// Define 1 to compile check listbox
|
||||
|
||||
#define wxUSE_CHOICE 1
|
||||
// Define 1 to compile choice
|
||||
|
||||
#define wxUSE_CARET 1
|
||||
// Define 1 to use wxCaret class
|
||||
#define wxUSE_XPM_IN_OS2 1
|
||||
@ -286,8 +276,6 @@
|
||||
// complains about deallocating
|
||||
// arrays of wxPoints if wxPoint is a class.
|
||||
|
||||
#define wxUSE_DRAG_AND_DROP 1
|
||||
|
||||
#define wxUSE_PORTABLE_FONTS_IN_OS2 0
|
||||
// Define 1 to use new portable font scheme in Windows
|
||||
// (used by default under X)
|
||||
|
@ -252,7 +252,9 @@ static int my_unput(char);
|
||||
if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
|
||||
YY_FATAL_ERROR( "read() in flex scanner failed" );
|
||||
#else
|
||||
# ifndef unput
|
||||
# undef unput
|
||||
# endif
|
||||
# define unput(_c) my_unput(_c)
|
||||
#endif
|
||||
|
||||
|
@ -509,7 +509,13 @@ int wxGIFDecoder::ReadGIF()
|
||||
pprev = NULL;
|
||||
pimg = NULL;
|
||||
|
||||
#if defined(__VISAGECPP__)
|
||||
// VA just can't stand while(1)
|
||||
bool bOs2var = TRUE;
|
||||
while(bOs2var)
|
||||
#else
|
||||
while (1)
|
||||
#endif
|
||||
{
|
||||
type = (unsigned char)m_f->GetC();
|
||||
|
||||
|
@ -130,7 +130,13 @@ bool wxHTTP::ParseHeaders()
|
||||
m_headers.Clear();
|
||||
m_read = TRUE;
|
||||
|
||||
#if defined(__VISAGECPP__)
|
||||
// VA just can't stand while(1)
|
||||
bool bOs2var = TRUE;
|
||||
while(bOs2var) {
|
||||
#else
|
||||
while (1) {
|
||||
#endif
|
||||
m_perr = GetLine(this, line);
|
||||
if (m_perr != wxPROTO_NOERR)
|
||||
return FALSE;
|
||||
|
@ -418,7 +418,13 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const
|
||||
|
||||
size_t32 nIncr = 1 + (nHashVal % (m_nHashSize - 2));
|
||||
|
||||
while ( TRUE ) {
|
||||
#if defined(__VISAGECPP__)
|
||||
// VA just can't stand while(1) or while(TRUE)
|
||||
bool bOs2var = TRUE;
|
||||
while(bOs2var) {
|
||||
#else
|
||||
while (1) {
|
||||
#endif
|
||||
size_t32 nStr = Swap(m_pHashTable[nIndex]);
|
||||
if ( nStr == 0 )
|
||||
return NULL;
|
||||
|
@ -226,7 +226,6 @@ COMMONOBJS = \
|
||||
..\common\$D\mstream.obj \
|
||||
..\common\$D\object.obj \
|
||||
..\common\$D\objstrm.obj \
|
||||
..\common\$D\odbc.obj \
|
||||
..\common\$D\paper.obj \
|
||||
..\common\$D\prntbase.obj \
|
||||
..\common\$D\process.obj \
|
||||
@ -326,7 +325,6 @@ COMLIBOBJS2 = \
|
||||
mstream.obj \
|
||||
object.obj \
|
||||
objstrm.obj \
|
||||
odbc.obj \
|
||||
paper.obj \
|
||||
prntbase.obj \
|
||||
process.obj \
|
||||
@ -354,10 +352,10 @@ COMLIBOBJS2 = \
|
||||
url.obj \
|
||||
utilscmn.obj \
|
||||
valgen.obj \
|
||||
validate.obj
|
||||
validate.obj \
|
||||
valtext.obj
|
||||
|
||||
COMLIBOBJS3 = \
|
||||
valtext.obj \
|
||||
variant.obj \
|
||||
wfstream.obj \
|
||||
wincmn.obj \
|
||||
@ -630,7 +628,6 @@ $(COMLIBOBJS2):
|
||||
copy ..\common\$D\mstream.obj
|
||||
copy ..\common\$D\object.obj
|
||||
copy ..\common\$D\objstrm.obj
|
||||
copy ..\common\$D\odbc.obj
|
||||
copy ..\common\$D\paper.obj
|
||||
copy ..\common\$D\prntbase.obj
|
||||
copy ..\common\$D\process.obj
|
||||
@ -659,9 +656,9 @@ $(COMLIBOBJS2):
|
||||
copy ..\common\$D\utilscmn.obj
|
||||
copy ..\common\$D\valgen.obj
|
||||
copy ..\common\$D\validate.obj
|
||||
copy ..\common\$D\valtext.obj
|
||||
|
||||
$(COMLIBOBJS3):
|
||||
copy ..\common\$D\valtext.obj
|
||||
copy ..\common\$D\variant.obj
|
||||
copy ..\common\$D\wfstream.obj
|
||||
copy ..\common\$D\wincmn.obj
|
||||
|
Loading…
Reference in New Issue
Block a user