From f5b38337b91a5f657c614514a944d95418544b69 Mon Sep 17 00:00:00 2001 From: fliep Date: Tue, 26 May 2009 20:23:21 +0000 Subject: [PATCH] Made sure no internal symbols were exported; can be checked with 'nm -g --defined-only .libs/libchimara.so'. --- libchimara/glk.c | 2 +- libchimara/glkunix.h | 2 +- libchimara/style.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libchimara/glk.c b/libchimara/glk.c index c4f3954..d96c951 100644 --- a/libchimara/glk.c +++ b/libchimara/glk.c @@ -6,7 +6,7 @@ #include "chimara-glk-private.h" #include "gi_blorb.h" -ChimaraGlkPrivate *glk_data = NULL; +G_GNUC_INTERNAL ChimaraGlkPrivate *glk_data = NULL; /** * glk_exit: diff --git a/libchimara/glkunix.h b/libchimara/glkunix.h index 291610e..2028db2 100644 --- a/libchimara/glkunix.h +++ b/libchimara/glkunix.h @@ -4,6 +4,6 @@ #include #include -gboolean parse_command_line(glkunix_argumentlist_t glkunix_arguments[], int argc, char *argv[], glkunix_startup_t *data); +G_GNUC_INTERNAL gboolean parse_command_line(glkunix_argumentlist_t glkunix_arguments[], int argc, char *argv[], glkunix_startup_t *data); #endif \ No newline at end of file diff --git a/libchimara/style.c b/libchimara/style.c index 77ef158..698536f 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -23,7 +23,7 @@ glk_set_style(glui32 styl) } /* Internal function: mapping from style enum to tag name */ -gchar* +static gchar * get_tag_name(glui32 style) { switch(style) { @@ -75,7 +75,7 @@ style_init_textbuffer(GtkTextBuffer *buffer) gtk_text_buffer_create_tag(buffer, "user2", NULL); } -void +static void color_format(glui32 val, gchar *buffer) { sprintf(buffer, "#%02X%02X%02X", @@ -86,7 +86,7 @@ color_format(glui32 val, gchar *buffer) } /* Internal function: changes a GTK tag to correspond with the given style. */ -void +static void apply_stylehint_to_tag(GtkTextTag *tag, glui32 hint, glsi32 val) { g_return_if_fail(tag != NULL); -- 2.30.2