Added a few files; fixed some warnings and wxMotif compile problems

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-31 18:47:10 +00:00
parent e2cad35228
commit 8870c26ecb
21 changed files with 220 additions and 76 deletions

View File

@@ -1099,6 +1099,15 @@ wxString wxString::Upper() const
// convert to lower case, return the copy of the string
wxString wxString::Lower() const { wxString s(*this); return s.MakeLower(); }
int wxString::sprintf(const char *pszFormat, ...)
{
va_list argptr;
va_start(argptr, pszFormat);
int iLen = PrintfV(pszFormat, argptr);
va_end(argptr);
return iLen;
}
// ---------------------------------------------------------------------------
// standard C++ library string functions
// ---------------------------------------------------------------------------

View File

@@ -136,7 +136,7 @@ bool wxGetLocalTime(long *timeZone, int *dstObserved)
struct tm *tp;
time(&t0);
tp = localtime(&t0);
*timeZone = timezone; // tp->tm_gmtoff; // ???
*timeZone = _timezone; // tp->tm_gmtoff; // ???
*dstObserved = tp->tm_isdst;
#elif defined(__MINGW32__)
time_t t0;

View File

@@ -36,7 +36,7 @@ CCLEX=gcc
MAKE=make
# LEX
LEX=flex -t -L
LEX=flex # -t -L
# YACC. yacc or bison
# YACC=yacc
@@ -54,7 +54,7 @@ RESFLAGS=$(RCINCSWITCH) $(WXDIR)/include $(RCDEFSWITCH) __WIN32__ $(RCDEFSWITCH)
########################## Compiler flags #############################
# Miscellaneous compiler options
OPTIONS= # -D__MINGW32__ # -D__EGCS__
OPTIONS= -D__EGCS__ # -D__MINGW32__
# Debugging information
# AIX: comment out.
@@ -113,8 +113,8 @@ COMPPATHS=
WINLIBS=-lstdc++ -lgcc \
-lwinspool -lwinmm -lshell32 -loldnames \
-lcomctl32 -lctl3d32 -lodbc32 -ladvapi32
-lwinspool -lwinmm -lshell32 \
-lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 # -loldnames
# Shouldn't need to change these...
WXSRC=$(WXDIR)/src/msw

View File

@@ -1,11 +1,15 @@
REM
REM replace g:\egcs-mingw32 with whatever your installation root may be.
REM replace k:\mingw32 with whatever your installation root may be.
REM
path C:\WINDOWS;C:\WINDOWS\COMMAND;g:\egcs-mingw32\bin;c:\bin
path C:\WINDOWS;C:\WINDOWS\COMMAND;k:\mingw32\bin;c:\bin
SET GCC_EXEC_PREFIX=g:\egcs-mingw32\lib\gcc-lib\
set BISON_SIMPLE=g:\egcs-mingw32\share\bison.simple
set BISON_HAIRY=g:\egcs-mingw32\share\bison.hairy
SET GCC_EXEC_PREFIX=k:\mingw32\lib\gcc-lib\
set BISON_SIMPLE=k:\mingw32\share\bison.simple
set BISON_HAIRY=k:\mingw32\share\bison.hairy
set C_INCLUDE_PATH=k:\MINGW32\include
set CPLUS_INCLUDE_PATH=k:\MINGW32\include\g++;g:\MINGW32\include
set LIBRARY_PATH=k:\MINGW32\lib
set GCC_EXEC_PREFIX=k:\MINGW32\lib\gcc-lib\
rem 4DOS users only...
unalias make

View File

@@ -107,7 +107,6 @@ LIB_CPP_SRC=\
motif/msgdlg.cpp \
motif/palette.cpp \
motif/pen.cpp \
motif/print.cpp \
motif/radiobox.cpp \
motif/radiobut.cpp \
motif/region.cpp \

View File

@@ -217,6 +217,20 @@ void wxDropSource::UnregisterWindow(void)
}
#endif
wxPrivateDropTarget::wxPrivateDropTarget()
{
m_id = wxTheApp->GetAppName();
}
size_t wxPrivateDropTarget::GetFormatCount() const
{
return 1;
}
wxDataFormat wxPrivateDropTarget::GetFormat(size_t n) const
{
return wxDF_INVALID;
}
#endif
// wxUSE_DRAG_AND_DROP

View File

@@ -102,10 +102,10 @@ wxAcceleratorTable::wxAcceleratorTable(const wxString& resource)
extern int wxCharCodeWXToMSW(int id, bool *isVirtual);
// Create from an array
#if !defined(__WIN16__) && !defined(__TWIN32__)
wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[])
{
// Not available in WIN16
#if !defined(__WIN16__) && !defined(__TWIN32__)
m_refData = new wxAcceleratorRefData;
ACCEL* arr = new ACCEL[n];
@@ -135,8 +135,12 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
delete[] arr;
M_ACCELDATA->m_ok = (M_ACCELDATA->m_hAccel != 0);
#endif
}
#else
wxAcceleratorTable::wxAcceleratorTable(int WXUNUSED(n), const wxAcceleratorEntry WXUNUSED(entries)[])
{
}
#endif
bool wxAcceleratorTable::Ok(void) const
{

View File

@@ -279,10 +279,13 @@ $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
# problems with lex_yy.c. See also note about LEX_SCANNER
# above.
$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
$(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
$(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
# The following may be required for some versions of LEX/FLEX
# $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
# Try one of these if the above line doesn't work.
# Alternative syntax (1)
# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
# Alternative syntax (2)
# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \