]> git.saurik.com Git - wxWidgets.git/commitdiff
Committing in .
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 2 Nov 2004 07:13:19 +0000 (07:13 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 2 Nov 2004 07:13:19 +0000 (07:13 +0000)
 Patches to compile on OpenVMS

 Modified Files:
  wxWidgets/descrip.mms wxWidgets/src/common/db.cpp
  wxWidgets/src/common/stream.cpp
 Added Files:
  wxWidgets/src/xml/descrip.mms wxWidgets/src/xrc/descrip.mms
 ----------------------------------------------------------------------

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

descrip.mms
src/common/db.cpp
src/common/stream.cpp
src/xml/descrip.mms [new file with mode: 0755]
src/xrc/descrip.mms [new file with mode: 0755]

index 277e531f075615421a2a02898a72fc8c3fc573ba..d9237d52783ad2ff49fad05c7baf6f6d4af70f96 100644 (file)
@@ -34,6 +34,10 @@ gtk : [.include.wx]setup.h
        $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1)
        set default [-.html]
        $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1)
+       set default [-.xml]
+       $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1)
+       set default [-.xrc]
+       $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1)
        set default [-.unix]
        $(MMS)$(MMSQUALIFIERS)/macro=(__WXGTK__=1)
        set default [-.gtk]
@@ -85,6 +89,10 @@ x11 : [.include.wx]setup.h
        $(MMS)$(MMSQUALIFIERS)/macro=(__WXX11__=1,__WXUNIVERSAL__=1)
        set default [-.html]
        $(MMS)$(MMSQUALIFIERS)/macro=(__WXX11__=1,__WXUNIVERSAL__=1)
+       set default [-.xml]
+       $(MMS)$(MMSQUALIFIERS)/macro=(__WXX11__=1,__WXUNIVERSAL__=1)
+       set default [-.xrc]
+       $(MMS)$(MMSQUALIFIERS)/macro=(__WXX11__=1,__WXUNIVERSAL__=1)
        set default [-.unix]
        $(MMS)$(MMSQUALIFIERS)/macro=(__WXX11__=1,__WXUNIVERSAL__=1)
        set default [-.x11]
index 2713b02952a5ad5bce5237b91c7fbe837058e017..1182d61b7efe2fb1018a7b93b523ac6634c9563c 100644 (file)
@@ -1719,8 +1719,12 @@ bool wxDb::DispAllErrors(HENV aHenv, HDBC aHdbc, HSTMT aHstmt)
 {
     wxString odbcErrMsg;
 
-    while (SQLError(aHenv, aHdbc, aHstmt, (SQLTCHAR FAR *) sqlState, (long*) &nativeError, (SQLTCHAR FAR *) errorMsg, SQL_MAX_MESSAGE_LENGTH - 1, &cbErrorMsg) == SQL_SUCCESS)
-    {
+#ifdef __VMS
+   while (SQLError(aHenv, aHdbc, aHstmt, (SQLTCHAR FAR *) sqlState, (SQLINTEGER *) &nativeError, (SQLTCHAR FAR *) errorMsg, SQL_MAX_MESSAGE_LENGTH - 1, &cbErrorMsg) == SQL_SUCCESS)
+#else
+   while (SQLError(aHenv, aHdbc, aHstmt, (SQLTCHAR FAR *) sqlState, (long*) &nativeError, (SQLTCHAR FAR *) errorMsg, SQL_MAX_MESSAGE_LENGTH - 1, &cbErrorMsg) == SQL_SUCCESS)
+#endif
+     {
         odbcErrMsg.Printf(wxT("SQL State = %s\nNative Error Code = %li\nError Message = %s\n"), sqlState, nativeError, errorMsg);
         logError(odbcErrMsg, sqlState);
         if (!silent)
@@ -1746,8 +1750,12 @@ bool wxDb::DispAllErrors(HENV aHenv, HDBC aHdbc, HSTMT aHstmt)
 /********** wxDb::GetNextError() **********/
 bool wxDb::GetNextError(HENV aHenv, HDBC aHdbc, HSTMT aHstmt)
 {
-    if (SQLError(aHenv, aHdbc, aHstmt, (SQLTCHAR FAR *) sqlState, (long*) &nativeError, (SQLTCHAR FAR *) errorMsg, SQL_MAX_MESSAGE_LENGTH - 1, &cbErrorMsg) == SQL_SUCCESS)
-        return true;
+#ifdef __VMS
+   if (SQLError(aHenv, aHdbc, aHstmt, (SQLTCHAR FAR *) sqlState, (SQLINTEGER *) &nativeError, (SQLTCHAR FAR *) errorMsg, SQL_MAX_MESSAGE_LENGTH - 1, &cbErrorMsg) == SQL_SUCCESS)
+#else
+   if (SQLError(aHenv, aHdbc, aHstmt, (SQLTCHAR FAR *) sqlState, (long*) &nativeError, (SQLTCHAR FAR *) errorMsg, SQL_MAX_MESSAGE_LENGTH - 1, &cbErrorMsg) == SQL_SUCCESS)
+#endif
+     return true;
     else
         return false;
 
index b9ccfcd2c36701282c186a3aec30ba2860812178..3230417f2c9f028f25f5bdc1ae51ccb79f9b6685 100644 (file)
@@ -576,10 +576,10 @@ wxFileOffset wxStreamBuffer::Seek(wxFileOffset pos, wxSeekMode mode)
             default:
                 wxFAIL_MSG( _T("invalid seek mode") );
 
-                return wxInvalidOffset;
+                return (wxFileOffset) wxInvalidOffset;
         }
         if (diff < 0 || diff > last_access)
-            return wxInvalidOffset;
+            return (wxFileOffset) wxInvalidOffset;
         SetIntPosition(diff);
         return diff;
     }
@@ -616,7 +616,7 @@ wxFileOffset wxStreamBuffer::Seek(wxFileOffset pos, wxSeekMode mode)
             return ret_off;
     }
 
-    return wxInvalidOffset;
+    return (wxFileOffset) wxInvalidOffset;
 }
 
 wxFileOffset wxStreamBuffer::Tell() const
@@ -628,7 +628,7 @@ wxFileOffset wxStreamBuffer::Tell() const
     {
         pos = m_stream->OnSysTell();
         if ( pos == wxInvalidOffset )
-            return wxInvalidOffset;
+            return (wxFileOffset) wxInvalidOffset;
     }
     else // no associated stream
     {
@@ -659,12 +659,12 @@ wxStreamBase::~wxStreamBase()
 
 wxFileOffset wxStreamBase::OnSysSeek(wxFileOffset WXUNUSED(seek), wxSeekMode WXUNUSED(mode))
 {
-    return wxInvalidOffset;
+    return (wxFileOffset) wxInvalidOffset;
 }
 
 wxFileOffset wxStreamBase::OnSysTell() const
 {
-    return wxInvalidOffset;
+    return (wxFileOffset) wxInvalidOffset;
 }
 
 // ----------------------------------------------------------------------------
@@ -990,7 +990,7 @@ wxFileOffset wxCountingOutputStream::OnSysSeek(wxFileOffset pos, wxSeekMode mode
 
         default:
             wxFAIL_MSG( _T("invalid seek mode") );
-            return wxInvalidOffset;
+            return (wxFileOffset) wxInvalidOffset;
     }
 
     if (m_currentPos > m_lastcount)
diff --git a/src/xml/descrip.mms b/src/xml/descrip.mms
new file mode 100755 (executable)
index 0000000..ce55ac6
--- /dev/null
@@ -0,0 +1,58 @@
+#*****************************************************************************
+#                                                                            *
+# Make file for VMS                                                          *
+# Author : J.Jansen (joukj@hrem.stm.tudelft.nl)                              *
+# Date : 20 October 2004                                                      *
+#                                                                            *
+#*****************************************************************************
+.first
+       define wx [--.include.wx]
+
+.ifdef __WXMOTIF__
+CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\
+          /assume=(nostdnew,noglobal_array_new)
+CC_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)
+.else
+.ifdef __WXGTK__
+CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\
+          /assume=(nostdnew,noglobal_array_new)
+CC_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm
+.else
+.ifdef __WXX11__
+CXX_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\
+       /name=(as_is,short)/assume=(nostdnew,noglobal_array_new)
+CC_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\
+       /name=(as_is,short)
+.else
+CXX_DEFINE =
+CC_DEFINE =
+.endif
+.endif
+.endif
+
+.suffixes : .cpp
+
+.cpp.obj :
+       cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp
+.c.obj :
+       cc $(CFLAGS)$(CC_DEFINE) $(MMS$TARGET_NAME).c
+
+OBJECTS = xml.obj\
+
+SOURCES = xml.cpp\
+  
+all : $(SOURCES)
+       $(MMS)$(MMSQUALIFIERS) $(OBJECTS)
+.ifdef __WXMOTIF__
+       library [--.lib]libwx_motif.olb $(OBJECTS)
+.else
+.ifdef __WXGTK__
+       library [--.lib]libwx_gtk.olb $(OBJECTS)
+.else
+.ifdef __WXX11__
+       library [--.lib]libwx_x11_univ.olb $(OBJECTS)
+.endif
+.endif
+.endif
+
+xml.obj : xml.cpp
diff --git a/src/xrc/descrip.mms b/src/xrc/descrip.mms
new file mode 100755 (executable)
index 0000000..c2058df
--- /dev/null
@@ -0,0 +1,110 @@
+#*****************************************************************************
+#                                                                            *
+# Make file for VMS                                                          *
+# Author : J.Jansen (joukj@hrem.stm.tudelft.nl)                              *
+# Date : 20 October 2004                                                      *
+#                                                                            *
+#*****************************************************************************
+.first
+       define wx [--.include.wx]
+
+.ifdef __WXMOTIF__
+CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\
+          /assume=(nostdnew,noglobal_array_new)
+CC_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)
+.else
+.ifdef __WXGTK__
+CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\
+          /assume=(nostdnew,noglobal_array_new)
+CC_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm
+.else
+.ifdef __WXX11__
+CXX_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\
+       /name=(as_is,short)/assume=(nostdnew,noglobal_array_new)
+CC_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\
+       /name=(as_is,short)
+.else
+CXX_DEFINE =
+CC_DEFINE =
+.endif
+.endif
+.endif
+
+.suffixes : .cpp
+
+.cpp.obj :
+       cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp
+.c.obj :
+       cc $(CFLAGS)$(CC_DEFINE) $(MMS$TARGET_NAME).c
+
+OBJECTS=xh_bmp.obj,xh_bmpbt.obj,xh_bttn.obj,xh_cald.obj,xh_chckb.obj,\
+       xh_chckl.obj,xh_choic.obj,xh_combo.obj,xh_dlg.obj,xh_frame.obj,\
+       xh_gauge.obj,xh_gdctl.obj,xh_html.obj,xh_listb.obj,xh_listc.obj,\
+       xh_menu.obj,xh_notbk.obj,xh_panel.obj,xh_radbt.obj,xh_radbx.obj,\
+       xh_scrol.obj,xh_scwin.obj,xh_sizer.obj,xh_slidr.obj,xh_spin.obj,\
+       xh_split.obj,xh_statbar.obj,xh_stbmp.obj,xh_stbox.obj,xh_stlin.obj,\
+       xh_sttxt.obj,xh_text.obj,xh_tglbtn.obj,xh_toolb.obj,xh_tree.obj,\
+       xh_unkwn.obj,xh_wizrd.obj,xmlres.obj,xmlrsall.obj     
+
+SOURCES =xh_bmp.cpp,xh_bmpbt.cpp,xh_bttn.cpp,xh_cald.cpp,xh_chckb.cpp,\
+       xh_chckl.cpp,xh_choic.cpp,xh_combo.cpp,xh_dlg.cpp,xh_frame.cpp,\
+       xh_gauge.cpp,xh_gdctl.cpp,xh_html.cpp,xh_listb.cpp,xh_listc.cpp,\
+       xh_menu.cpp,xh_notbk.cpp,xh_panel.cpp,xh_radbt.cpp,xh_radbx.cpp,\
+       xh_scrol.cpp,xh_scwin.cpp,xh_sizer.cpp,xh_slidr.cpp,xh_spin.cpp,\
+       xh_split.cpp,xh_statbar.cpp,xh_stbmp.cpp,xh_stbox.cpp,xh_stlin.cpp,\
+       xh_sttxt.cpp,xh_text.cpp,xh_tglbtn.cpp,xh_toolb.cpp,xh_tree.cpp,\
+       xh_unkwn.cpp,xh_wizrd.cpp,xmlres.cpp,xmlrsall.cpp     
+  
+all : $(SOURCES)
+       $(MMS)$(MMSQUALIFIERS) $(OBJECTS)
+.ifdef __WXMOTIF__
+       library [--.lib]libwx_motif.olb $(OBJECTS)
+.else
+.ifdef __WXGTK__
+       library [--.lib]libwx_gtk.olb $(OBJECTS)
+.else
+.ifdef __WXX11__
+       library [--.lib]libwx_x11_univ.olb $(OBJECTS)
+.endif
+.endif
+.endif
+
+xh_bmp.obj : xh_bmp.cpp
+xh_bmpbt.obj : xh_bmpbt.cpp
+xh_bttn.obj : xh_bttn.cpp
+xh_cald.obj : xh_cald.cpp
+xh_chckb.obj : xh_chckb.cpp
+xh_chckl.obj : xh_chckl.cpp
+xh_choic.obj : xh_choic.cpp
+xh_combo.obj : xh_combo.cpp
+xh_dlg.obj : xh_dlg.cpp
+xh_frame.obj : xh_frame.cpp
+xh_gauge.obj : xh_gauge.cpp
+xh_gdctl.obj : xh_gdctl.cpp
+xh_html.obj : xh_html.cpp
+xh_listb.obj : xh_listb.cpp
+xh_listc.obj : xh_listc.cpp
+xh_menu.obj : xh_menu.cpp
+xh_notbk.obj : xh_notbk.cpp
+xh_panel.obj : xh_panel.cpp
+xh_radbt.obj : xh_radbt.cpp
+xh_radbx.obj : xh_radbx.cpp
+xh_scrol.obj : xh_scrol.cpp
+xh_scwin.obj : xh_scwin.cpp
+xh_sizer.obj : xh_sizer.cpp
+xh_slidr.obj : xh_slidr.cpp
+xh_spin.obj : xh_spin.cpp
+xh_split.obj : xh_split.cpp
+xh_statbar.obj : xh_statbar.cpp
+xh_stbmp.obj : xh_stbmp.cpp
+xh_stbox.obj : xh_stbox.cpp
+xh_stlin.obj : xh_stlin.cpp
+xh_sttxt.obj : xh_sttxt.cpp
+xh_text.obj : xh_text.cpp
+xh_tglbtn.obj : xh_tglbtn.cpp
+xh_toolb.obj : xh_toolb.cpp
+xh_tree.obj : xh_tree.cpp
+xh_unkwn.obj : xh_unkwn.cpp
+xh_wizrd.obj : xh_wizrd.cpp
+xmlres.obj : xmlres.cpp
+xmlrsall.obj : xmlrsall.cpp