Fixes for VC++ 4 compilation; fixed wxCommandEvent arg in grid.h;

added $(RM) variable to Mingw32 makefile


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-10-31 12:03:20 +00:00
parent 3da17724b6
commit 6474416b2e
10 changed files with 54 additions and 47 deletions

View File

@@ -243,10 +243,10 @@ $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
$(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
copy ..\common\dosyacc.c ..\common\y_tab.c copy ..\\common\\dosyacc.c ..\\common\\y_tab.c
$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
copy ..\common\doslex.c ..\common\lex_yy.c copy ..\\common\doslex.c ..\\common\\lex_yy.c
# Replace lex with flex if you run into compilation # Replace lex with flex if you run into compilation
# problems with lex_yy.c. See also note about LEX_SCANNER # problems with lex_yy.c. See also note about LEX_SCANNER
@@ -279,21 +279,21 @@ $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
# mv y.tab.c $(COMMDIR)/y_tab.c # mv y.tab.c $(COMMDIR)/y_tab.c
clean: clean:
rm -f *.o -$(RM) *.o
rm -f *.bak -$(RM) *.bak
rm -f core -$(RM) core
rm -f ..\common\y_tab.c -$(RM) ..\common\y_tab.c
rm -f ..\common\lex_yy.c -$(RM) ..\common\lex_yy.c
rm -f ..\common\*.o -$(RM) ..\common\*.o
rm -f ..\common\*.bak -$(RM) ..\common\*.bak
rm -f ..\generic\*.o -$(RM) ..\generic\*.o
rm -f ..\generic\*.bak -$(RM) ..\generic\*.bak
rm -f ..\html\*.o -$(RM) ..\html\*.o
rm -f ..\png\*.o -$(RM) ..\png\*.o
rm -f ..\png\*.bak -$(RM) ..\png\*.bak
rm -f ..\zlib\*.o -$(RM) ..\zlib\*.o
rm -f ..\zlib\*.bak -$(RM) ..\zlib\*.bak
rm -f ..\jpeg\*.o -$(RM) ..\jpeg\*.o
rm -f ..\..\lib\libwx.a -$(RM) ..\..\lib\libwx.a
cleanall: clean cleanall: clean

View File

@@ -150,6 +150,10 @@ optimized. For example, in wxWindows project, set to 'Minimum
Size'. In Dialog Editor project, set to 'Customize: Favor Small Size'. In Dialog Editor project, set to 'Customize: Favor Small
Code' (and no others). This will then work. Code' (and no others). This will then work.
Similarly, in VC++ 4, optimization can cause internal compiler
errors, so edit src\makevc.env and change /O1 to /Od before
trying build a release version of the library.
Note (4): some crash problems can be due to inconsistent compiler Note (4): some crash problems can be due to inconsistent compiler
options. If strange/weird/impossible things start to happen please options. If strange/weird/impossible things start to happen please
check (dumping IDE project file as makefile and doing text comparison check (dumping IDE project file as makefile and doing text comparison

View File

@@ -395,7 +395,7 @@ class wxGrid : public wxPanel
void OnSize( wxSizeEvent& ); void OnSize( wxSizeEvent& );
void OnMouse( wxMouseEvent& ); void OnMouse( wxMouseEvent& );
void OnKeyDown( wxKeyEvent& ); void OnKeyDown( wxKeyEvent& );
void OnText( wxKeyEvent& ); void OnText( wxCommandEvent& );
void OnGridScroll( wxScrollEvent& ); void OnGridScroll( wxScrollEvent& );
void SelectCell( const wxGridCellCoords& coords ); void SelectCell( const wxGridCellCoords& coords );

View File

@@ -1942,7 +1942,7 @@ void wxGrid::OnKeyDown( wxKeyEvent& ev )
// Text updated in an edit control - either a text control or a // Text updated in an edit control - either a text control or a
// combo box // combo box
// //
void wxGrid::OnText( wxKeyEvent& ev ) void wxGrid::OnText( wxCommandEvent& ev )
{ {
if ( !m_inOnText ) if ( !m_inOnText )
{ {

View File

@@ -12,6 +12,9 @@ MINGW32=1
# Set to the version you have # Set to the version you have
MINGW32VERSION=2.95 MINGW32VERSION=2.95
# Set to the appropriate remove command
RM=rm -f
########################## Compiler ################################## ########################## Compiler ##################################
# C++ compiler # C++ compiler

View File

@@ -20,4 +20,4 @@ $(LIBTARGET): $(OBJECTS)
$(RANLIB) $@ $(RANLIB) $@
clean: clean:
rm -f $(OBJECTS) $(LIBTARGET) core *.rsc *.res -$(RM) $(OBJECTS) $(LIBTARGET) core *.rsc *.res

View File

@@ -20,9 +20,9 @@ $(TARGET)_resources.o: $(TARGET).rc
$(RESCOMP) $(RCINPUTSWITCH) $(TARGET).rc $(RCOUTPUTSWITCH) $(TARGET)_resources.o $(RESFLAGS) $(RESCOMP) $(RCINPUTSWITCH) $(TARGET).rc $(RCOUTPUTSWITCH) $(TARGET)_resources.o $(RESFLAGS)
clean: clean:
rm -f *.o -$(RM) *.o
rm -f $(TARGET)_resources.o -$(RM) $(TARGET)_resources.o
rm -f $(TARGET).exe -$(RM) $(TARGET).exe
rm -f core -$(RM) core
rm -f *.rsc -$(RM) *.rsc
rm -f *.res -$(RM) *.res

View File

@@ -390,10 +390,10 @@ $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
$(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
copy ..\common\dosyacc.c ..\common\y_tab.c copy ..\\common\\dosyacc.c ..\\common\\y_tab.c
$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
copy ..\common\doslex.c ..\common\lex_yy.c copy ..\\common\\doslex.c ..\\common\\lex_yy.c
# Replace lex with flex if you run into compilation # Replace lex with flex if you run into compilation
# problems with lex_yy.c. See also note about LEX_SCANNER # problems with lex_yy.c. See also note about LEX_SCANNER
@@ -426,21 +426,21 @@ $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
# mv y.tab.c $(COMMDIR)/y_tab.c # mv y.tab.c $(COMMDIR)/y_tab.c
clean: clean:
rm -f *.o -$(RM) *.o
rm -f *.bak -$(RM) *.bak
rm -f core -$(RM) core
rm -f ..\common\y_tab.c -$(RM) ..\common\y_tab.c
rm -f ..\common\lex_yy.c -$(RM) ..\common\lex_yy.c
rm -f ..\common\*.o -$(RM) ..\common\*.o
rm -f ..\common\*.bak -$(RM) ..\common\*.bak
rm -f ..\generic\*.o -$(RM) ..\generic\*.o
rm -f ..\generic\*.bak -$(RM) ..\generic\*.bak
rm -f ..\html\*.o -$(RM) ..\html\*.o
rm -f ..\png\*.o -$(RM) ..\png\*.o
rm -f ..\png\*.bak -$(RM) ..\png\*.bak
rm -f ..\zlib\*.o -$(RM) ..\zlib\*.o
rm -f ..\zlib\*.bak -$(RM) ..\zlib\*.bak
rm -f ..\jpeg\*.o -$(RM) ..\jpeg\*.o
rm -f ..\..\lib\libwx.a -$(RM) ..\..\lib\libwx.a
cleanall: clean cleanall: clean

View File

@@ -211,7 +211,7 @@ bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
#ifndef __GNUWIN32__ #ifndef __GNUWIN32__
#if defined(__BORLANDC__) || defined(__WATCOMC__) #if defined(__BORLANDC__) || defined(__WATCOMC__)
LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam; LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam;
#elif defined(__VISUALC__) && (__VISUALC__ == 1010) #elif defined(__VISUALC__) && (__VISUALC__ >= 1000) && (__VISUALC__ < 1020)
LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam; LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam;
#else #else
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam; LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;

View File

@@ -318,7 +318,7 @@ bool wxTreeCtrl::Create(wxWindow *parent,
#if !defined( __GNUWIN32__ ) && !defined( __BORLANDC__ ) && !defined(wxUSE_NORLANDER_HEADERS) #if !defined( __GNUWIN32__ ) && !defined( __BORLANDC__ ) && !defined(wxUSE_NORLANDER_HEADERS)
// we emulate the multiple selection tree controls by using checkboxes: set // we emulate the multiple selection tree controls by using checkboxes: set
// up the image list we need for this if we do have multiple selections // up the image list we need for this if we do have multiple selections
#if !defined(__VISUALC__) || (__VISUALC__ != 1010) #if !defined(__VISUALC__) || (__VISUALC__ > 1010)
if ( m_windowStyle & wxTR_MULTIPLE ) if ( m_windowStyle & wxTR_MULTIPLE )
wstyle |= TVS_CHECKBOXES; wstyle |= TVS_CHECKBOXES;
#endif #endif