[vte/vte-next: 62/223] Don't export _vte_debug_* symbols



commit fbb48ff83388a12751e53df32d9c151e848715e6
Author: Christian Persch <chpe gnome org>
Date:   Sat May 7 19:46:42 2011 +0200

    Don't export _vte_debug_* symbols
    
    Debug symbols are for internal use only.

 src/Makefile.am |    4 ++--
 src/debug.h     |    9 +++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 4dc0203..d31703e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -96,7 +96,7 @@ libvte VTE_LIBRARY_SUFFIX_U@_la_LIBADD = $(VTE_LIBS)
 libvte VTE_LIBRARY_SUFFIX_U@_la_LDFLAGS = \
   $(VTE_LDFLAGS) \
 	-version-info $(LT_VERSION_INFO) \
-	-export-symbols-regex "^vte_terminal_.*|^vte_pty_.*|^vte_get_.*|_vte_debug_.*" \
+	-export-symbols-regex "^vte_terminal_.*|^vte_pty_.*|^vte_get_.*" \
 	@LIBTOOL_EXPORT_OPTIONS@ @LIBTOOL_FLAGS@ \
 	$(AM_LDFLAGS)
 
@@ -146,7 +146,7 @@ vteseq-list.h: vteseq-2.gperf vteseq-n.gperf
 
 bin_PROGRAMS = vte VTE_LIBRARY_SUFFIX_U@
 
-vte VTE_LIBRARY_SUFFIX_U@_SOURCES = vteapp.c
+vte VTE_LIBRARY_SUFFIX_U@_SOURCES = vteapp.c debug.c debug.h
 vte VTE_LIBRARY_SUFFIX_U@_CFLAGS = $(VTE_CFLAGS)
 vte VTE_LIBRARY_SUFFIX_U@_LDADD = libvte VTE_LIBRARY_SUFFIX_U@.la $(VTE_LIBS)
 
diff --git a/src/debug.h b/src/debug.h
index 303df3e..0683e17 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -25,6 +25,15 @@
 
 #include <glib.h>
 
+#ifndef VTE_COMPILATION
+#define _vte_debug_flags _vte_external_debug_flags
+#define _vte_debug_init  _vte_external_debug_init
+#define _vte_debug_on    _vte_external_debug_on
+#if !defined(__GNUC__) || !G_HAVE_GNUC_VARARGS
+#define _vte_debug_print _vte_external_debug_print
+#endif
+#endif
+
 G_BEGIN_DECLS
 
 typedef enum {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]