Distrib things,

Typos in dynarray.h,
  Removed C++ comments from code,
  Added a few #ifdef wxUSE_XXX


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 1999-08-06 10:10:10 +00:00
parent 22d6efa851
commit d422d01eec
9 changed files with 74 additions and 18 deletions

View File

@ -1,5 +1,5 @@
29th July '99: Eight wxGTK 2.1 snapshot released 6th August '99: Eight wxGTK 2.1 snapshot released
The new makefile system is not able to produce shared libraries The new makefile system is not able to produce shared libraries
on Unix with the exception of Linux - libtool is really great. on Unix with the exception of Linux - libtool is really great.
@ -36,10 +36,12 @@ wxFilesystem, wxHTMLHelpController and others.
Added a wrapper for ffile() etc functions. Added a wrapper for ffile() etc functions.
Updateds to wxDynamicLibrary. Updates to wxDynamicLibrary.
New documentation. New documentation.
New version of wxPython, of course.
Fixed in unenclosed number of other bugs... Fixed in unenclosed number of other bugs...
25th June '99: Seventh wxGTK 2.1 snapshot released 25th June '99: Seventh wxGTK 2.1 snapshot released

View File

@ -18,9 +18,34 @@ News
</tr> </tr>
</table> </table>
<H3>August 6th, 1999</H3><P>
Today, a snapshot release of the MSW and the GTK ports has been
made. The two snapshots are synchronized and have been tested
for several weeks and should thus be considered to be quite stable.
Among the many new features that have appeared since version 2.0
was release are:
<ul>
<li> A great number of incompatiblities between the GTK and the MSW port have been removed. This
holds escecially true for the way, time and order, controls send notifications to the user program.
<li> Practically all widgets have been updated, removing bugs or adding missing features to
specific ports (mostly the GTK port).
<li> The GTK port now supports GTK version 1.2 as well as 1.0, giving access to the many new
features, such as e.g. menu accelerators.
<li> Many of the non-GUI classes have been reworked and new ones added, the stream classes
having undergone a complete rewrite.
<li> The addition of code to handle Unicode has begun and is in an advanced state.
<li> The Python bindings (wxPython) have been largely improved and upadted to the newest
API and features.
</ul>
<H3>July 31st, 1999</H3><P> <H3>July 31st, 1999</H3><P>
We are glad to announce the start of the work on the new wxWindows port - wxBe We are glad to announce the start of the work on the new wxWindows port - wxBeOS
which will implement wxWindows 2 API for <A HREF="http://www.be.com">BeOS</A>. which will implement wxWindows 2 API for <A HREF="http://www.be.com">BeOS</A>.
Thanks to Be for donating licenses to wxWindows project to make it possible. Thanks to Be for donating licenses to wxWindows project to make it possible.
<P> <P>

View File

@ -177,7 +177,7 @@ public: \
{ \ { \
size_t type = sizeof(T); \ size_t type = sizeof(T); \
size_t sizelong = sizeof(long); \ size_t sizelong = sizeof(long); \
if ( type <= sizelong ) \ if ( type > sizelong ) \
{ wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); } \ { wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); } \
} \ } \
\ \
@ -239,7 +239,7 @@ public: \
name(SCMPFUNC##T fn) \ name(SCMPFUNC##T fn) \
{ size_t type = sizeof(T); \ { size_t type = sizeof(T); \
size_t sizelong = sizeof(long); \ size_t sizelong = sizeof(long); \
if ( type <= sizelong ) \ if ( type > sizelong ) \
{ wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); } \ { wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); } \
m_fnCompare = fn; \ m_fnCompare = fn; \
} \ } \

View File

@ -8,12 +8,14 @@
#ifndef __GSOCKET_H #ifndef __GSOCKET_H
#define __GSOCKET_H #define __GSOCKET_H
#include "wx/setup.h"
#if wxUSE_SOCKETS
#include <sys/types.h> #include <sys/types.h>
#if !defined(__cplusplus) #if !defined(__cplusplus)
typedef int bool; typedef int bool;
#endif #endif
#ifndef TRUE #ifndef TRUE
@ -230,7 +232,11 @@ void GSocket_DoEvent(unsigned long evt_id);
#ifdef __cplusplus #ifdef __cplusplus
}; };
#endif #endif /* __cplusplus */
#endif #endif
/* __GSOCKET_H */ /* wxUSE_SOCKETS */
#endif
/* __GSOCKET_H */

View File

@ -12,6 +12,11 @@
#ifndef _WX_SPINBUTT_H_BASE_ #ifndef _WX_SPINBUTT_H_BASE_
#define _WX_SPINBUTT_H_BASE_ #define _WX_SPINBUTT_H_BASE_
#ifdef __GNUG__
#pragma interface "spinbutbase.h"
#pragma implementation "spinbutbase.h"
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@ -10,9 +10,9 @@
#if wxUSE_SOCKETS #if wxUSE_SOCKETS
#include <stdlib.h> #include <stdlib.h>
#include <gdk/gdk.h> #include "gdk/gdk.h"
#include <glib.h> #include "glib.h"
#include <wx/gsocket.h> #include "wx/gsocket.h"
#include "../unix/gsockunx.h" #include "../unix/gsockunx.h"
void _GSocket_GDK_Input(gpointer data, gint source, GdkInputCondition condition) void _GSocket_GDK_Input(gpointer data, gint source, GdkInputCondition condition)

View File

@ -10,9 +10,9 @@
#if wxUSE_SOCKETS #if wxUSE_SOCKETS
#include <stdlib.h> #include <stdlib.h>
#include <gdk/gdk.h> #include "gdk/gdk.h"
#include <glib.h> #include "glib.h"
#include <wx/gsocket.h> #include "wx/gsocket.h"
#include "../unix/gsockunx.h" #include "../unix/gsockunx.h"
void _GSocket_GDK_Input(gpointer data, gint source, GdkInputCondition condition) void _GSocket_GDK_Input(gpointer data, gint source, GdkInputCondition condition)

View File

@ -101,7 +101,7 @@ GSocket *GSocket_new()
socket->m_gui_dependent = NULL; socket->m_gui_dependent = NULL;
socket->m_blocking = FALSE; socket->m_blocking = FALSE;
socket->m_timeout = 10*60*1000; socket->m_timeout = 10*60*1000;
// 10 minutes * 60 sec * 1000 millisec /* 10 minutes * 60 sec * 1000 millisec */
/* We initialize the GUI specific entries here */ /* We initialize the GUI specific entries here */
_GSocket_GUI_Init(socket); _GSocket_GUI_Init(socket);
@ -1150,4 +1150,5 @@ GSocketError GAddress_UNIX_GetPath(GAddress *address, char *path, size_t sbuf)
return GSOCK_NOERROR; return GSOCK_NOERROR;
} }
#endif // wxUSE_SOCKETS #endif
/* wxUSE_SOCKETS */

View File

@ -8,7 +8,16 @@
#ifndef __GSOCK_UNX_H #ifndef __GSOCK_UNX_H
#define __GSOCK_UNX_H #define __GSOCK_UNX_H
#include <wx/gsocket.h> #include "wx/setup.h"
#if wxUSE_SOCKETS
#include "wx/gsocket.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* Definition of GSocket */ /* Definition of GSocket */
struct _GSocket { struct _GSocket {
@ -66,4 +75,12 @@ GSocketError _GAddress_Init_INET(GAddress *address);
/* Local address family */ /* Local address family */
GSocketError _GAddress_Init_UNIX(GAddress *address); GSocketError _GAddress_Init_UNIX(GAddress *address);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif #endif
/* wxUSE_SOCKETS */
#endif
/* __GSOCK_UNX_H */