[gtksourceview] Private headers: Add GTK_SOURCE_INTERNAL



commit e875bab5ab95dc626a974253855eda530bc97ae2
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Dec 28 16:47:21 2015 +0800

    Private headers: Add GTK_SOURCE_INTERNAL
    
    This is for exporting the private symbols on Visual Studio builds, for
    use for the unit tests, as:
    -There isn't something like -Wl,whole-archive on Visual Studio, so
     we need to build everything here into the DLL directly so that we
     ensure everything is included, so we can't just really build 2 static
     libs and link them and assume everything needed will be included in
     the DLL and the sy,bols will be exported.
    -We can define GTK_SOURCE_INTERNAL as G_GNUC_INTERNAL, so that things
     will still work as they were on other compilers.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759838

 .../words/gtksourcecompletionwordslibrary.h        |   22 ++++++------
 .../words/gtksourcecompletionwordsproposal.h       |   12 ++++---
 gtksourceview/gtksourcebuffer-private.h            |   23 +++++++------
 gtksourceview/gtksourcebufferinputstream.h         |    8 ++--
 gtksourceview/gtksourcebufferoutputstream.h        |   10 +++---
 gtksourceview/gtksourcecompletionmodel.h           |   32 +++++++++---------
 gtksourceview/gtksourceencoding-private.h          |    3 +-
 gtksourceview/gtksourceiter.h                      |   33 ++++++++++---------
 gtksourceview/gtksourceregex.h                     |   22 ++++++------
 gtksourceview/gtksourcetypes-private.h             |    7 ++++
 gtksourceview/gtktextregion.h                      |   27 ++++++++--------
 11 files changed, 106 insertions(+), 93 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h 
b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
index 78b7926..55c2630 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
@@ -49,50 +49,50 @@ struct _GtkSourceCompletionWordsLibraryClass {
        GObjectClass parent_class;
 };
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GType           gtk_source_completion_words_library_get_type           (void) G_GNUC_CONST;
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceCompletionWordsLibrary *
                 gtk_source_completion_words_library_new                (void);
 
 /* Finding */
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GSequenceIter  *gtk_source_completion_words_library_find               (GtkSourceCompletionWordsLibrary  
*library,
                                                                         GtkSourceCompletionWordsProposal 
*proposal);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GSequenceIter  *gtk_source_completion_words_library_find_first         (GtkSourceCompletionWordsLibrary  
*library,
                                                                         const gchar                      
*word,
                                                                         gint                              
len);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GSequenceIter  *gtk_source_completion_words_library_find_next          (GSequenceIter                    
*iter,
                                                                         const gchar                      
*word,
                                                                         gint                              
len);
 
 /* Getting */
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceCompletionWordsProposal *
                 gtk_source_completion_words_library_get_proposal       (GSequenceIter                    
*iter);
 
 /* Adding/removing */
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceCompletionWordsProposal *
                 gtk_source_completion_words_library_add_word           (GtkSourceCompletionWordsLibrary  
*library,
                                                                         const gchar                      
*word);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            gtk_source_completion_words_library_remove_word        (GtkSourceCompletionWordsLibrary  
*library,
                                                                         GtkSourceCompletionWordsProposal 
*proposal);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean        gtk_source_completion_words_library_is_locked          (GtkSourceCompletionWordsLibrary  
*library);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            gtk_source_completion_words_library_lock               (GtkSourceCompletionWordsLibrary  
*library);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            gtk_source_completion_words_library_unlock             (GtkSourceCompletionWordsLibrary  
*library);
 
 G_END_DECLS
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h 
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
index b2ec2cc..5b6c83b 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
@@ -25,6 +25,8 @@
 #include <glib-object.h>
 #include <gtksourceview/gtksourcecompletionproposal.h>
 
+#include "gtksourceview/gtksourcetypes-private.h"
+
 G_BEGIN_DECLS
 
 #define GTK_SOURCE_TYPE_COMPLETION_WORDS_PROPOSAL                      
(gtk_source_completion_words_proposal_get_type ())
@@ -49,20 +51,20 @@ struct _GtkSourceCompletionWordsProposalClass {
        GObjectClass parent_class;
 };
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GType           gtk_source_completion_words_proposal_get_type  (void) G_GNUC_CONST;
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceCompletionWordsProposal *
                 gtk_source_completion_words_proposal_new       (const gchar                      *word);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 const gchar    *gtk_source_completion_words_proposal_get_word  (GtkSourceCompletionWordsProposal *proposal);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            gtk_source_completion_words_proposal_use       (GtkSourceCompletionWordsProposal *proposal);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            gtk_source_completion_words_proposal_unuse     (GtkSourceCompletionWordsProposal *proposal);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcebuffer-private.h b/gtksourceview/gtksourcebuffer-private.h
index 7a553da..3367c2f 100644
--- a/gtksourceview/gtksourcebuffer-private.h
+++ b/gtksourceview/gtksourcebuffer-private.h
@@ -24,54 +24,55 @@
 
 #include <gtk/gtk.h>
 #include "gtksourcetypes.h"
+#include "gtksourcetypes-private.h"
 
 G_BEGIN_DECLS
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void                    _gtk_source_buffer_update_highlight            (GtkSourceBuffer        *buffer,
                                                                         const GtkTextIter      *start,
                                                                         const GtkTextIter      *end,
                                                                         gboolean                synchronous);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceMark          *_gtk_source_buffer_source_mark_next            (GtkSourceBuffer        *buffer,
                                                                         GtkSourceMark          *mark,
                                                                         const gchar            *category);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceMark          *_gtk_source_buffer_source_mark_prev            (GtkSourceBuffer        *buffer,
                                                                         GtkSourceMark          *mark,
                                                                         const gchar            *category);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkTextTag             *_gtk_source_buffer_get_bracket_match_tag       (GtkSourceBuffer        *buffer);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void                    _gtk_source_buffer_add_search_context          (GtkSourceBuffer        *buffer,
                                                                         GtkSourceSearchContext 
*search_context);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void                    _gtk_source_buffer_set_as_invalid_character    (GtkSourceBuffer        *buffer,
                                                                         const GtkTextIter      *start,
                                                                         const GtkTextIter      *end);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean                _gtk_source_buffer_has_invalid_chars           (GtkSourceBuffer        *buffer);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceBracketMatchType
                         _gtk_source_buffer_find_bracket_match          (GtkSourceBuffer        *buffer,
                                                                         const GtkTextIter      *pos,
                                                                         GtkTextIter            *bracket,
                                                                         GtkTextIter            
*bracket_match);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void                    _gtk_source_buffer_save_and_clear_selection    (GtkSourceBuffer        *buffer);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void                    _gtk_source_buffer_restore_selection           (GtkSourceBuffer        *buffer);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean                _gtk_source_buffer_is_undo_redo_enabled        (GtkSourceBuffer        *buffer);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcebufferinputstream.h b/gtksourceview/gtksourcebufferinputstream.h
index 97c460b..bcf3ec0 100644
--- a/gtksourceview/gtksourcebufferinputstream.h
+++ b/gtksourceview/gtksourcebufferinputstream.h
@@ -52,19 +52,19 @@ struct _GtkSourceBufferInputStreamClass
        GInputStreamClass parent_class;
 };
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GType           _gtk_source_buffer_input_stream_get_type               (void) G_GNUC_CONST;
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceBufferInputStream
                *_gtk_source_buffer_input_stream_new                    (GtkTextBuffer              *buffer,
                                                                         GtkSourceNewlineType        type,
                                                                         gboolean                    
add_trailing_newline);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gsize           _gtk_source_buffer_input_stream_get_total_size         (GtkSourceBufferInputStream *stream);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gsize           _gtk_source_buffer_input_stream_tell                   (GtkSourceBufferInputStream *stream);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcebufferoutputstream.h b/gtksourceview/gtksourcebufferoutputstream.h
index 041c25e..80b6681 100644
--- a/gtksourceview/gtksourcebufferoutputstream.h
+++ b/gtksourceview/gtksourcebufferoutputstream.h
@@ -52,23 +52,23 @@ struct _GtkSourceBufferOutputStreamClass
        GOutputStreamClass parent_class;
 };
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GType                   gtk_source_buffer_output_stream_get_type       (void) G_GNUC_CONST;
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceBufferOutputStream
                        *gtk_source_buffer_output_stream_new            (GtkSourceBuffer             *buffer,
                                                                         GSList                      
*candidate_encodings,
                                                                         gboolean                     
remove_trailing_newline);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceNewlineType    gtk_source_buffer_output_stream_detect_newline_type
                                                                        (GtkSourceBufferOutputStream *stream);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 const GtkSourceEncoding        *gtk_source_buffer_output_stream_get_guessed    (GtkSourceBufferOutputStream 
*stream);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 guint                   gtk_source_buffer_output_stream_get_num_fallbacks
                                                                        (GtkSourceBufferOutputStream *stream);
 
diff --git a/gtksourceview/gtksourcecompletionmodel.h b/gtksourceview/gtksourcecompletionmodel.h
index 8f7ee26..76a666f 100644
--- a/gtksourceview/gtksourcecompletionmodel.h
+++ b/gtksourceview/gtksourcecompletionmodel.h
@@ -63,64 +63,64 @@ enum
        GTK_SOURCE_COMPLETION_MODEL_N_COLUMNS
 };
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GType    gtk_source_completion_model_get_type                  (void) G_GNUC_CONST;
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceCompletionModel *
          gtk_source_completion_model_new                       (void);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void     gtk_source_completion_model_add_proposals              (GtkSourceCompletionModel    *model,
                                                                 GtkSourceCompletionProvider *provider,
                                                                 GList                       *proposals);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_is_empty                  (GtkSourceCompletionModel    *model,
                                                                 gboolean                     only_visible);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void     gtk_source_completion_model_set_visible_providers     (GtkSourceCompletionModel    *model,
                                                                 GList                       *providers);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GList   *gtk_source_completion_model_get_visible_providers     (GtkSourceCompletionModel    *model);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GList   *gtk_source_completion_model_get_providers             (GtkSourceCompletionModel    *model);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void     gtk_source_completion_model_set_show_headers          (GtkSourceCompletionModel    *model,
                                                                 gboolean                     show_headers);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_iter_is_header            (GtkSourceCompletionModel    *model,
                                                                 GtkTreeIter                 *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_iter_previous             (GtkSourceCompletionModel    *model,
                                                                 GtkTreeIter                 *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_first_proposal             (GtkSourceCompletionModel    *model,
                                                                 GtkTreeIter                 *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_last_proposal              (GtkSourceCompletionModel    *model,
                                                                 GtkTreeIter                 *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_next_proposal              (GtkSourceCompletionModel    *model,
                                                                 GtkTreeIter                 *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_previous_proposal          (GtkSourceCompletionModel    *model,
                                                                 GtkTreeIter                 *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_has_info                   (GtkSourceCompletionModel    *model);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean gtk_source_completion_model_iter_equal                        (GtkSourceCompletionModel    *model,
                                                                 GtkTreeIter                 *iter1,
                                                                 GtkTreeIter                 *iter2);
diff --git a/gtksourceview/gtksourceencoding-private.h b/gtksourceview/gtksourceencoding-private.h
index daae66e..ad04361 100644
--- a/gtksourceview/gtksourceencoding-private.h
+++ b/gtksourceview/gtksourceencoding-private.h
@@ -23,6 +23,7 @@
 #define __GTK_SOURCE_ENCODING_PRIVATE_H__
 
 #include <glib.h>
+#include "gtksourcetypes-private.h"
 
 G_BEGIN_DECLS
 
@@ -42,7 +43,7 @@ typedef enum _GtkSourceEncodingDuplicates
        GTK_SOURCE_ENCODING_DUPLICATES_KEEP_LAST
 } GtkSourceEncodingDuplicates;
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GSList *               _gtk_source_encoding_remove_duplicates          (GSList                      
*encodings,
                                                                         GtkSourceEncodingDuplicates  
removal_type);
 
diff --git a/gtksourceview/gtksourceiter.h b/gtksourceview/gtksourceiter.h
index df48c5e..1509442 100644
--- a/gtksourceview/gtksourceiter.h
+++ b/gtksourceview/gtksourceiter.h
@@ -23,63 +23,64 @@
 #define __GTK_SOURCE_ITER_H__
 
 #include <gtk/gtk.h>
+#include "gtksourcetypes-private.h"
 
 G_BEGIN_DECLS
 
 /* Semi-public functions. */
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_forward_visible_word_end               (GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_forward_visible_word_ends              (GtkTextIter *iter,
                                                                         gint         count);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_backward_visible_word_start            (GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_backward_visible_word_starts           (GtkTextIter *iter,
                                                                         gint         count);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           _gtk_source_iter_extend_selection_word                  (const GtkTextIter *location,
                                                                         GtkTextIter       *start,
                                                                         GtkTextIter       *end);
 
 /* Internal functions, in the header for unit tests. */
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           _gtk_source_iter_forward_full_word_end                  (GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           _gtk_source_iter_backward_full_word_start               (GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_starts_full_word                       (const GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_ends_full_word                         (const GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           _gtk_source_iter_forward_extra_natural_word_end         (GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           _gtk_source_iter_backward_extra_natural_word_start      (GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_starts_extra_natural_word              (const GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_ends_extra_natural_word                (const GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_starts_word                            (const GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_ends_word                              (const GtkTextIter *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_iter_inside_word                            (const GtkTextIter *iter);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourceregex.h b/gtksourceview/gtksourceregex.h
index 630878a..786128a 100644
--- a/gtksourceview/gtksourceregex.h
+++ b/gtksourceview/gtksourceregex.h
@@ -28,56 +28,56 @@
 
 G_BEGIN_DECLS
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceRegex *_gtk_source_regex_new          (const gchar         *pattern,
                                                 GRegexCompileFlags   flags,
                                                 GError             **error);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceRegex *_gtk_source_regex_ref          (GtkSourceRegex *regex);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            _gtk_source_regex_unref        (GtkSourceRegex *regex);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkSourceRegex *_gtk_source_regex_resolve      (GtkSourceRegex *regex,
                                                 GtkSourceRegex *start_regex,
                                                 const gchar    *matched_text);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean        _gtk_source_regex_is_resolved  (GtkSourceRegex *regex);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       _gtk_source_regex_match         (GtkSourceRegex *regex,
                                                 const gchar    *line,
                                                 gint             byte_length,
                                                 gint             byte_pos);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gchar          *_gtk_source_regex_fetch        (GtkSourceRegex *regex,
                                                 gint            num);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            _gtk_source_regex_fetch_pos    (GtkSourceRegex *regex,
                                                 const gchar    *text,
                                                 gint            num,
                                                 gint           *start_pos, /* character offsets */
                                                 gint           *end_pos);  /* character offsets */
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            _gtk_source_regex_fetch_pos_bytes (GtkSourceRegex *regex,
                                                    gint            num,
                                                    gint           *start_pos_p, /* byte offsets */
                                                    gint           *end_pos_p);  /* byte offsets */
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void            _gtk_source_regex_fetch_named_pos (GtkSourceRegex *regex,
                                                    const gchar    *text,
                                                    const gchar    *name,
                                                    gint           *start_pos, /* character offsets */
                                                    gint           *end_pos);  /* character offsets */
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 const gchar    *_gtk_source_regex_get_pattern  (GtkSourceRegex *regex);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcetypes-private.h b/gtksourceview/gtksourcetypes-private.h
index 3c49432..f1a7b90 100644
--- a/gtksourceview/gtksourcetypes-private.h
+++ b/gtksourceview/gtksourcetypes-private.h
@@ -39,6 +39,13 @@ typedef struct _GtkSourcePixbufHelper                GtkSourcePixbufHelper;
 typedef struct _GtkSourceRegex                 GtkSourceRegex;
 typedef struct _GtkSourceUndoManagerDefault    GtkSourceUndoManagerDefault;
 
+#ifdef _MSC_VER
+/* For Visual Studio, we need to export the symbols used by the unit tests */
+#define GTK_SOURCE_INTERNAL __declspec(dllexport)
+#else
+#define GTK_SOURCE_INTERNAL G_GNUC_INTERNAL
+#endif
+
 G_END_DECLS
 
 #endif /* __GTK_SOURCE_TYPES_PRIVATE_H__ */
diff --git a/gtksourceview/gtktextregion.h b/gtksourceview/gtktextregion.h
index b830f0e..df05045 100644
--- a/gtksourceview/gtktextregion.h
+++ b/gtksourceview/gtktextregion.h
@@ -23,6 +23,7 @@
 #define __GTK_TEXT_REGION_H__
 
 #include <gtk/gtk.h>
+#include "gtksourcetypes-private.h"
 
 G_BEGIN_DECLS
 
@@ -40,57 +41,57 @@ struct _GtkTextRegionIterator {
        gpointer dummy3;
 };
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkTextRegion *gtk_text_region_new                          (GtkTextBuffer *buffer);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           gtk_text_region_destroy                      (GtkTextRegion *region);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkTextBuffer *gtk_text_region_get_buffer                   (GtkTextRegion *region);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           gtk_text_region_add                          (GtkTextRegion     *region,
                                                             const GtkTextIter *_start,
                                                             const GtkTextIter *_end);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           gtk_text_region_subtract                     (GtkTextRegion     *region,
                                                             const GtkTextIter *_start,
                                                             const GtkTextIter *_end);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gint           gtk_text_region_subregions                   (GtkTextRegion *region);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       gtk_text_region_nth_subregion                (GtkTextRegion *region,
                                                             guint          subregion,
                                                             GtkTextIter   *start,
                                                             GtkTextIter   *end);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 GtkTextRegion *gtk_text_region_intersect                    (GtkTextRegion     *region,
                                                             const GtkTextIter *_start,
                                                             const GtkTextIter *_end);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           gtk_text_region_get_iterator                 (GtkTextRegion         *region,
                                                              GtkTextRegionIterator *iter,
                                                              guint                  start);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       gtk_text_region_iterator_is_end              (GtkTextRegionIterator *iter);
 
 /* Returns FALSE if iterator is the end iterator */
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       gtk_text_region_iterator_next               (GtkTextRegionIterator *iter);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 gboolean       gtk_text_region_iterator_get_subregion       (GtkTextRegionIterator *iter,
                                                             GtkTextIter           *start,
                                                             GtkTextIter           *end);
 
-G_GNUC_INTERNAL
+GTK_SOURCE_INTERNAL
 void           gtk_text_region_debug_print                  (GtkTextRegion *region);
 
 G_END_DECLS


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