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:
@@ -79,8 +79,11 @@
|
|||||||
#define yy_scan_bytes PROIO_scan_bytes
|
#define yy_scan_bytes PROIO_scan_bytes
|
||||||
#define yy_flex_debug PROIO_flex_debug
|
#define yy_flex_debug PROIO_flex_debug
|
||||||
#define yy_flush_buffer PROIO_flush_buffer
|
#define yy_flush_buffer PROIO_flush_buffer
|
||||||
|
#if !defined(__VISAGECPP__)
|
||||||
|
// multiply defined???
|
||||||
#define yyleng PROIO_yyleng
|
#define yyleng PROIO_yyleng
|
||||||
#define yytext PROIO_yytext
|
#define yytext PROIO_yytext
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@@ -19,29 +19,25 @@
|
|||||||
// define this to 0 when building wxBase library
|
// define this to 0 when building wxBase library
|
||||||
#define wxUSE_GUI 1
|
#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
|
// 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
|
#define wxUSE_CONFIG 1
|
||||||
// Use wxConfig, with CreateConfig in wxApp
|
// 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
|
#define wxUSE_POSTSCRIPT 1
|
||||||
// 0 for no PostScript device context
|
// 0 for no PostScript device context
|
||||||
#define wxUSE_AFM_FOR_POSTSCRIPT 1
|
#define wxUSE_AFM_FOR_POSTSCRIPT 1
|
||||||
@@ -70,8 +66,6 @@
|
|||||||
#define wxUSE_DRAG_AND_DROP 1
|
#define wxUSE_DRAG_AND_DROP 1
|
||||||
// 0 for no drag and drop
|
// 0 for no drag and drop
|
||||||
|
|
||||||
#define wxUSE_TOOLBAR 1
|
|
||||||
// Define 1 to use toolbar classes
|
|
||||||
#define wxUSE_BUTTONBAR 1
|
#define wxUSE_BUTTONBAR 1
|
||||||
// Define 1 to use buttonbar classes (enhanced toolbar
|
// Define 1 to use buttonbar classes (enhanced toolbar
|
||||||
// for MS Windows)
|
// for MS Windows)
|
||||||
@@ -107,9 +101,6 @@
|
|||||||
#define wxUSE_CHECKLISTBOX 1
|
#define wxUSE_CHECKLISTBOX 1
|
||||||
// Define 1 to compile check listbox
|
// Define 1 to compile check listbox
|
||||||
|
|
||||||
#define wxUSE_CHOICE 1
|
|
||||||
// Define 1 to compile choice
|
|
||||||
|
|
||||||
#define wxUSE_CARET 1
|
#define wxUSE_CARET 1
|
||||||
// Define 1 to use wxCaret class
|
// Define 1 to use wxCaret class
|
||||||
#define wxUSE_XPM_IN_OS2 1
|
#define wxUSE_XPM_IN_OS2 1
|
||||||
@@ -173,7 +164,7 @@
|
|||||||
// Some databases/ODBC drivers only allow forward scrolling cursors.
|
// Some databases/ODBC drivers only allow forward scrolling cursors.
|
||||||
// Unless you specifically want to use backward scrolling
|
// Unless you specifically want to use backward scrolling
|
||||||
// cursors, and you know that all of the databases/ODBC drivers
|
// cursors, and you know that all of the databases/ODBC drivers
|
||||||
// that you will use these odbc classes with allow backward
|
// that you will use these odbc classes with allow backward
|
||||||
// scrolling cursors, this setting should remain set to 1
|
// scrolling cursors, this setting should remain set to 1
|
||||||
// for maximum database/driver compatibilty
|
// for maximum database/driver compatibilty
|
||||||
|
|
||||||
@@ -286,8 +277,6 @@
|
|||||||
// complains about deallocating
|
// complains about deallocating
|
||||||
// arrays of wxPoints if wxPoint is a class.
|
// arrays of wxPoints if wxPoint is a class.
|
||||||
|
|
||||||
#define wxUSE_DRAG_AND_DROP 1
|
|
||||||
|
|
||||||
#define wxUSE_PORTABLE_FONTS_IN_OS2 0
|
#define wxUSE_PORTABLE_FONTS_IN_OS2 0
|
||||||
// Define 1 to use new portable font scheme in Windows
|
// Define 1 to use new portable font scheme in Windows
|
||||||
// (used by default under X)
|
// (used by default under X)
|
||||||
|
@@ -19,29 +19,25 @@
|
|||||||
// define this to 0 when building wxBase library
|
// define this to 0 when building wxBase library
|
||||||
#define wxUSE_GUI 1
|
#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
|
// 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
|
#define wxUSE_CONFIG 1
|
||||||
// Use wxConfig, with CreateConfig in wxApp
|
// 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
|
#define wxUSE_POSTSCRIPT 1
|
||||||
// 0 for no PostScript device context
|
// 0 for no PostScript device context
|
||||||
#define wxUSE_AFM_FOR_POSTSCRIPT 1
|
#define wxUSE_AFM_FOR_POSTSCRIPT 1
|
||||||
@@ -70,8 +66,6 @@
|
|||||||
#define wxUSE_DRAG_AND_DROP 1
|
#define wxUSE_DRAG_AND_DROP 1
|
||||||
// 0 for no drag and drop
|
// 0 for no drag and drop
|
||||||
|
|
||||||
#define wxUSE_TOOLBAR 1
|
|
||||||
// Define 1 to use toolbar classes
|
|
||||||
#define wxUSE_BUTTONBAR 1
|
#define wxUSE_BUTTONBAR 1
|
||||||
// Define 1 to use buttonbar classes (enhanced toolbar
|
// Define 1 to use buttonbar classes (enhanced toolbar
|
||||||
// for MS Windows)
|
// for MS Windows)
|
||||||
@@ -106,10 +100,6 @@
|
|||||||
|
|
||||||
#define wxUSE_CHECKLISTBOX 1
|
#define wxUSE_CHECKLISTBOX 1
|
||||||
// Define 1 to compile check listbox
|
// Define 1 to compile check listbox
|
||||||
|
|
||||||
#define wxUSE_CHOICE 1
|
|
||||||
// Define 1 to compile choice
|
|
||||||
|
|
||||||
#define wxUSE_CARET 1
|
#define wxUSE_CARET 1
|
||||||
// Define 1 to use wxCaret class
|
// Define 1 to use wxCaret class
|
||||||
#define wxUSE_XPM_IN_OS2 1
|
#define wxUSE_XPM_IN_OS2 1
|
||||||
@@ -286,8 +276,6 @@
|
|||||||
// complains about deallocating
|
// complains about deallocating
|
||||||
// arrays of wxPoints if wxPoint is a class.
|
// arrays of wxPoints if wxPoint is a class.
|
||||||
|
|
||||||
#define wxUSE_DRAG_AND_DROP 1
|
|
||||||
|
|
||||||
#define wxUSE_PORTABLE_FONTS_IN_OS2 0
|
#define wxUSE_PORTABLE_FONTS_IN_OS2 0
|
||||||
// Define 1 to use new portable font scheme in Windows
|
// Define 1 to use new portable font scheme in Windows
|
||||||
// (used by default under X)
|
// (used by default under X)
|
||||||
|
@@ -252,7 +252,9 @@ static int my_unput(char);
|
|||||||
if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
|
if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
|
||||||
YY_FATAL_ERROR( "read() in flex scanner failed" );
|
YY_FATAL_ERROR( "read() in flex scanner failed" );
|
||||||
#else
|
#else
|
||||||
# undef unput
|
# ifndef unput
|
||||||
|
# undef unput
|
||||||
|
# endif
|
||||||
# define unput(_c) my_unput(_c)
|
# define unput(_c) my_unput(_c)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
// Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation
|
// Purpose: wxGIFDecoder, GIF reader for wxImage and wxAnimation
|
||||||
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
|
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
|
||||||
// Version: 3.03
|
// Version: 3.03
|
||||||
// RCS-ID:
|
// RCS-ID:
|
||||||
// Copyright: (c) Guillermo Rodriguez Garcia
|
// Copyright: (c) Guillermo Rodriguez Garcia
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "wx/gifdecod.h"
|
#include "wx/gifdecod.h"
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// wxGIFDecoder constructor and destructor
|
// wxGIFDecoder constructor and destructor
|
||||||
@@ -131,7 +131,7 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Data accessors
|
// Data accessors
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -202,7 +202,7 @@ bool wxGIFDecoder::GoNextFrame(bool cyclic)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxGIFDecoder::GoPrevFrame(bool cyclic)
|
bool wxGIFDecoder::GoPrevFrame(bool cyclic)
|
||||||
{
|
{
|
||||||
@@ -293,7 +293,7 @@ int wxGIFDecoder::getcode(int bits, int ab_fin)
|
|||||||
/* adjust total number of bits extracted from the buffer */
|
/* adjust total number of bits extracted from the buffer */
|
||||||
m_restbits = m_restbits + 8;
|
m_restbits = m_restbits + 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find number of bits remaining for next code */
|
/* find number of bits remaining for next code */
|
||||||
m_restbits = (m_restbits - bits);
|
m_restbits = (m_restbits - bits);
|
||||||
|
|
||||||
@@ -509,7 +509,13 @@ int wxGIFDecoder::ReadGIF()
|
|||||||
pprev = NULL;
|
pprev = NULL;
|
||||||
pimg = NULL;
|
pimg = NULL;
|
||||||
|
|
||||||
|
#if defined(__VISAGECPP__)
|
||||||
|
// VA just can't stand while(1)
|
||||||
|
bool bOs2var = TRUE;
|
||||||
|
while(bOs2var)
|
||||||
|
#else
|
||||||
while (1)
|
while (1)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
type = (unsigned char)m_f->GetC();
|
type = (unsigned char)m_f->GetC();
|
||||||
|
|
||||||
@@ -537,7 +543,7 @@ int wxGIFDecoder::ReadGIF()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* other extension, skip */
|
/* other extension, skip */
|
||||||
{
|
{
|
||||||
while ((i = (unsigned char)m_f->GetC()) != 0)
|
while ((i = (unsigned char)m_f->GetC()) != 0)
|
||||||
{
|
{
|
||||||
/* This line should not be neccessary!
|
/* This line should not be neccessary!
|
||||||
|
@@ -96,7 +96,7 @@ wxString wxHTTP::GetHeader(const wxString& header)
|
|||||||
wxString upper_header;
|
wxString upper_header;
|
||||||
|
|
||||||
upper_header = header.Upper();
|
upper_header = header.Upper();
|
||||||
|
|
||||||
node = m_headers.Find(upper_header);
|
node = m_headers.Find(upper_header);
|
||||||
if (!node)
|
if (!node)
|
||||||
return wxEmptyString;
|
return wxEmptyString;
|
||||||
@@ -130,7 +130,13 @@ bool wxHTTP::ParseHeaders()
|
|||||||
m_headers.Clear();
|
m_headers.Clear();
|
||||||
m_read = TRUE;
|
m_read = TRUE;
|
||||||
|
|
||||||
while (1) {
|
#if defined(__VISAGECPP__)
|
||||||
|
// VA just can't stand while(1)
|
||||||
|
bool bOs2var = TRUE;
|
||||||
|
while(bOs2var) {
|
||||||
|
#else
|
||||||
|
while (1) {
|
||||||
|
#endif
|
||||||
m_perr = GetLine(this, line);
|
m_perr = GetLine(this, line);
|
||||||
if (m_perr != wxPROTO_NOERR)
|
if (m_perr != wxPROTO_NOERR)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -197,7 +203,7 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
|
|||||||
|
|
||||||
// If there is no User-Agent defined, define it.
|
// If there is no User-Agent defined, define it.
|
||||||
if (GetHeader(wxT("User-Agent")).IsNull())
|
if (GetHeader(wxT("User-Agent")).IsNull())
|
||||||
SetHeader(wxT("User-Agent"), wxT("wxWindows 2.x"));
|
SetHeader(wxT("User-Agent"), wxT("wxWindows 2.x"));
|
||||||
|
|
||||||
switch (req) {
|
switch (req) {
|
||||||
case wxHTTP_GET:
|
case wxHTTP_GET:
|
||||||
|
@@ -310,7 +310,7 @@ bool wxMsgCatalog::Load(const wxChar *szDirPrefix, const wxChar *szName0)
|
|||||||
wxString szName = szName0;
|
wxString szName = szName0;
|
||||||
if(szName.Find('.') != -1) // contains a dot
|
if(szName.Find('.') != -1) // contains a dot
|
||||||
szName = szName.Left(szName.Find('.'));
|
szName = szName.Left(szName.Find('.'));
|
||||||
|
|
||||||
// FIXME VZ: I forgot the exact meaning of LC_PATH - anyone to remind me?
|
// FIXME VZ: I forgot the exact meaning of LC_PATH - anyone to remind me?
|
||||||
// KB: search path where to find the mo files, probably : delimited
|
// KB: search path where to find the mo files, probably : delimited
|
||||||
#if 0
|
#if 0
|
||||||
@@ -418,7 +418,13 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const
|
|||||||
|
|
||||||
size_t32 nIncr = 1 + (nHashVal % (m_nHashSize - 2));
|
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]);
|
size_t32 nStr = Swap(m_pHashTable[nIndex]);
|
||||||
if ( nStr == 0 )
|
if ( nStr == 0 )
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@@ -226,7 +226,6 @@ COMMONOBJS = \
|
|||||||
..\common\$D\mstream.obj \
|
..\common\$D\mstream.obj \
|
||||||
..\common\$D\object.obj \
|
..\common\$D\object.obj \
|
||||||
..\common\$D\objstrm.obj \
|
..\common\$D\objstrm.obj \
|
||||||
..\common\$D\odbc.obj \
|
|
||||||
..\common\$D\paper.obj \
|
..\common\$D\paper.obj \
|
||||||
..\common\$D\prntbase.obj \
|
..\common\$D\prntbase.obj \
|
||||||
..\common\$D\process.obj \
|
..\common\$D\process.obj \
|
||||||
@@ -326,7 +325,6 @@ COMLIBOBJS2 = \
|
|||||||
mstream.obj \
|
mstream.obj \
|
||||||
object.obj \
|
object.obj \
|
||||||
objstrm.obj \
|
objstrm.obj \
|
||||||
odbc.obj \
|
|
||||||
paper.obj \
|
paper.obj \
|
||||||
prntbase.obj \
|
prntbase.obj \
|
||||||
process.obj \
|
process.obj \
|
||||||
@@ -354,10 +352,10 @@ COMLIBOBJS2 = \
|
|||||||
url.obj \
|
url.obj \
|
||||||
utilscmn.obj \
|
utilscmn.obj \
|
||||||
valgen.obj \
|
valgen.obj \
|
||||||
validate.obj
|
validate.obj \
|
||||||
|
valtext.obj
|
||||||
|
|
||||||
COMLIBOBJS3 = \
|
COMLIBOBJS3 = \
|
||||||
valtext.obj \
|
|
||||||
variant.obj \
|
variant.obj \
|
||||||
wfstream.obj \
|
wfstream.obj \
|
||||||
wincmn.obj \
|
wincmn.obj \
|
||||||
@@ -630,7 +628,6 @@ $(COMLIBOBJS2):
|
|||||||
copy ..\common\$D\mstream.obj
|
copy ..\common\$D\mstream.obj
|
||||||
copy ..\common\$D\object.obj
|
copy ..\common\$D\object.obj
|
||||||
copy ..\common\$D\objstrm.obj
|
copy ..\common\$D\objstrm.obj
|
||||||
copy ..\common\$D\odbc.obj
|
|
||||||
copy ..\common\$D\paper.obj
|
copy ..\common\$D\paper.obj
|
||||||
copy ..\common\$D\prntbase.obj
|
copy ..\common\$D\prntbase.obj
|
||||||
copy ..\common\$D\process.obj
|
copy ..\common\$D\process.obj
|
||||||
@@ -659,9 +656,9 @@ $(COMLIBOBJS2):
|
|||||||
copy ..\common\$D\utilscmn.obj
|
copy ..\common\$D\utilscmn.obj
|
||||||
copy ..\common\$D\valgen.obj
|
copy ..\common\$D\valgen.obj
|
||||||
copy ..\common\$D\validate.obj
|
copy ..\common\$D\validate.obj
|
||||||
|
copy ..\common\$D\valtext.obj
|
||||||
|
|
||||||
$(COMLIBOBJS3):
|
$(COMLIBOBJS3):
|
||||||
copy ..\common\$D\valtext.obj
|
|
||||||
copy ..\common\$D\variant.obj
|
copy ..\common\$D\variant.obj
|
||||||
copy ..\common\$D\wfstream.obj
|
copy ..\common\$D\wfstream.obj
|
||||||
copy ..\common\$D\wincmn.obj
|
copy ..\common\$D\wincmn.obj
|
||||||
|
Reference in New Issue
Block a user