/* Internal function: abort this Glk program, freeing resources and calling the
user's interrupt handler. */
-void
+static void
abort_glk()
{
if(glk_data->interrupt_handler)
}
g_mutex_unlock(glk_data->abort_lock);
}
-
-
#ifndef ABORT_H
#define ABORT_H
-void check_for_abort();
-void signal_abort();
+G_GNUC_INTERNAL void check_for_abort();
+G_GNUC_INTERNAL void signal_abort();
#endif
#define PLACEHOLDER_STRING "?"
/* Our placeholder character is '?'; other options are possible, like printing "0x7F" or something */
-gchar *convert_latin1_to_utf8(const gchar *s, const gsize len);
-gchar *convert_latin1_to_ucs4be_string(const gchar *s, const gsize len);
-gchar *convert_utf8_to_latin1(const gchar *s, gsize *bytes_written);
-gunichar *convert_utf8_to_ucs4(const gchar *s, glong *items_written);
-gchar *convert_ucs4_to_utf8(const gunichar *buf, const glong len);
-gchar *convert_ucs4_to_latin1_binary(const gunichar *buf, const glong len);
-gchar *convert_ucs4_to_ucs4be_string(const gunichar *buf, const glong len);
+G_GNUC_INTERNAL gchar *convert_latin1_to_utf8(const gchar *s, const gsize len);
+G_GNUC_INTERNAL gchar *convert_latin1_to_ucs4be_string(const gchar *s, const gsize len);
+G_GNUC_INTERNAL gchar *convert_utf8_to_latin1(const gchar *s, gsize *bytes_written);
+G_GNUC_INTERNAL gunichar *convert_utf8_to_ucs4(const gchar *s, glong *items_written);
+G_GNUC_INTERNAL gchar *convert_ucs4_to_utf8(const gunichar *buf, const glong len);
+G_GNUC_INTERNAL gchar *convert_ucs4_to_latin1_binary(const gunichar *buf, const glong len);
+G_GNUC_INTERNAL gchar *convert_ucs4_to_ucs4be_string(const gunichar *buf, const glong len);
#endif /* CHARSET_H */
#define EVENT_QUEUE_MAX_LENGTH (100)
#define evtype_Abort (-1)
-void event_throw(glui32 type, winid_t win, glui32 val1, glui32 val2);
+G_GNUC_INTERNAL void event_throw(glui32 type, winid_t win, glui32 val1, glui32 val2);
#endif
#include "window.h"
#include "event.h"
-gboolean on_window_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win);
-void after_window_insert_text(GtkTextBuffer *textbuffer, GtkTextIter *location, gchar *text, gint len, winid_t win);
-void on_input_entry_activate(GtkEntry *input_entry, winid_t win);
+G_GNUC_INTERNAL gboolean on_window_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win);
+G_GNUC_INTERNAL void after_window_insert_text(GtkTextBuffer *textbuffer, GtkTextIter *location, gchar *text, gint len, winid_t win);
+G_GNUC_INTERNAL void on_input_entry_activate(GtkEntry *input_entry, winid_t win);
+
#endif
#define MAGIC_FILEREF 0x46494C45 /* "FILE" */
#define MAGIC_SCHANNEL 0x53434841 /* "SCHA" */
-gboolean magic_is_valid_or_null(const glui32 goodmagic, const glui32 realmagic, const gchar *function);
-gboolean magic_is_valid(const void *obj, const glui32 goodmagic, const glui32 realmagic, const gchar *function);
+G_GNUC_INTERNAL gboolean magic_is_valid_or_null(const glui32 goodmagic, const glui32 realmagic, const gchar *function);
+G_GNUC_INTERNAL gboolean magic_is_valid(const void *obj, const glui32 goodmagic, const glui32 realmagic, const gchar *function);
#define VALID_MAGIC(obj, goodmagic, die) \
if( !magic_is_valid(obj, goodmagic, obj->magic, G_STRFUNC) ) die
gchar *filename; /* Displayable filename in UTF-8 for error handling */
};
-strid_t window_stream_new(winid_t window);
-void stream_close_common(strid_t str, stream_result_t *result);
+G_GNUC_INTERNAL strid_t window_stream_new(winid_t window);
+G_GNUC_INTERNAL void stream_close_common(strid_t str, stream_result_t *result);
#endif