git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@559
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{ return m_parent; }
wxWindow *GetGrandParent(void) const
{ return (m_parent ? m_parent->m_parent : (wxWindow*)NULL); }
{ return m_parent; }
wxWindow *GetGrandParent(void) const
{ return (m_parent ? m_parent->m_parent : (wxWindow*)NULL); }
- void wxWindow::SetParent( wxWindow *p )
+ void SetParent( wxWindow *p )
{ m_parent = p; }
wxEvtHandler *GetEventHandler();
{ m_parent = p; }
wxEvtHandler *GetEventHandler();
{ return m_parent; }
wxWindow *GetGrandParent(void) const
{ return (m_parent ? m_parent->m_parent : (wxWindow*)NULL); }
{ return m_parent; }
wxWindow *GetGrandParent(void) const
{ return (m_parent ? m_parent->m_parent : (wxWindow*)NULL); }
- void wxWindow::SetParent( wxWindow *p )
+ void SetParent( wxWindow *p )
{ m_parent = p; }
wxEvtHandler *GetEventHandler();
{ m_parent = p; }
wxEvtHandler *GetEventHandler();
DEFAULT_USE_DEBUG_FLAG=0
DEFAULT_USE_DEBUG_INFO=0
DEFAULT_USE_MEM_TRACING=0
DEFAULT_USE_DEBUG_FLAG=0
DEFAULT_USE_DEBUG_INFO=0
DEFAULT_USE_MEM_TRACING=0
DEFAULT_USE_ZLIB=1
DEFAULT_USE_GDK_IMLIB=1
DEFAULT_USE_ZLIB=1
DEFAULT_USE_GDK_IMLIB=1
**--with-mem_traing create code with memory tracing,
USE_MEM_TRACING)
**--with-mem_traing create code with memory tracing,
USE_MEM_TRACING)
+AC_OVERRIDES(dmalloc,dmalloc,
+**--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/),
+USE_DMALLOC)
+
AC_OVERRIDES(profile,profile,
**--with-profile create code with profiling information included,
USE_PROFILE)
AC_OVERRIDES(profile,profile,
**--with-profile create code with profiling information included,
USE_PROFILE)
dnl AC_DEFINE_UNQUOTED(USE_GLOBAL_MEMORY_OPERATORS,$USE_MEM_TRACING)
fi
dnl AC_DEFINE_UNQUOTED(USE_GLOBAL_MEMORY_OPERATORS,$USE_MEM_TRACING)
fi
+EXTRA_LINK=
+if test "$USE_DMALLOC" = 1 ; then
+ EXTRA_LINK="$EXTRA_LINK -ldmalloc"
+fi
+AC_SUBST(EXTRA_LINK)
+
PROFILE=
if test "$USE_PROFILE" = 1 ; then
PROFILE="-pg"
PROFILE=
if test "$USE_PROFILE" = 1 ; then
PROFILE="-pg"
OPENGL_LINK = @OPENGL_LINK@
THREADS_LINK = @THREADS_LINK@
OPENGL_LINK = @OPENGL_LINK@
THREADS_LINK = @THREADS_LINK@
+EXTRA_LINK = @EXTRA_LINK@
# INCLUDES
WX_INCLUDES = \
# INCLUDES
WX_INCLUDES = \
$(GUI_TK_LIBS) \
$(X_EXTRA_LIBS) \
$(X_PRE_LIBS) \
$(GUI_TK_LIBS) \
$(X_EXTRA_LIBS) \
$(X_PRE_LIBS) \
+ $(THREADS_LINK) \
+ $(EXTRA_LINK)
# Don't include $(OPENGL_LIBS) in LINK_LIBS; they
# can be conveniently added to BIN_LINK in Makefile.in.
# Don't include $(OPENGL_LIBS) in LINK_LIBS; they
# can be conveniently added to BIN_LINK in Makefile.in.
s|*TOOLKIT_DEF*|@TOOLKIT_DEF@|g
s|*THREADS*|@THREADS@|g
s|*THREADS_LINK*|@THREADS_LINK@|g
s|*TOOLKIT_DEF*|@TOOLKIT_DEF@|g
s|*THREADS*|@THREADS@|g
s|*THREADS_LINK*|@THREADS_LINK@|g
+s|*EXTRA_LINK*|@EXTRA_LINK@|g
s|*WXSTRING*|@WXSTRING@|g
s|*TYPETREE*|@TYPETREE@|g
s|*METAFILE*|@METAFILE@|g
s|*WXSTRING*|@WXSTRING@|g
s|*TYPETREE*|@TYPETREE@|g
s|*METAFILE*|@METAFILE@|g
// quote the string before writing it to file
wxString FilterOut(const wxString& str)
{
// quote the string before writing it to file
wxString FilterOut(const wxString& str)
{
+ if(str.IsEmpty())
+ return str;
+
wxString strResult;
strResult.Alloc(str.Len());
wxString strResult;
strResult.Alloc(str.Len());