summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorjoerg <joerg>2012-07-03 18:10:50 +0000
committerjoerg <joerg>2012-07-03 18:10:50 +0000
commit4708c320f599b8a664430fbd766d72fc74cd3a82 (patch)
tree93a0aa3342728499cc59b7f1810f87d2d691f333 /editors
parent08fc9afb452d12bb09835c2039d684d5878cac93 (diff)
downloadpkgsrc-4708c320f599b8a664430fbd766d72fc74cd3a82.tar.gz
Fix inline usage.
Diffstat (limited to 'editors')
-rw-r--r--editors/beaver/distinfo3
-rw-r--r--editors/beaver/patches/patch-src_editor.c40
2 files changed, 42 insertions, 1 deletions
diff --git a/editors/beaver/distinfo b/editors/beaver/distinfo
index c1e17381ee9..565528a7691 100644
--- a/editors/beaver/distinfo
+++ b/editors/beaver/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2008/08/04 21:34:39 bjs Exp $
+$NetBSD: distinfo,v 1.5 2012/07/03 18:10:50 joerg Exp $
SHA1 (beaver0_3_0_1.tgz) = 7df51cd68367ad0f02d472647e5df23a32108f78
RMD160 (beaver0_3_0_1.tgz) = 58b8d48340e3aee5a0ce980d74e339b12e1f9189
Size (beaver0_3_0_1.tgz) = 142255 bytes
SHA1 (patch-aa) = d1704ecd08ca1839050dd4d623cbc86f3d0b10f8
SHA1 (patch-ab) = e2ce6fd1166d052b09fb042a9fcc6d35a32613e3
+SHA1 (patch-src_editor.c) = 0c1e366b63a2c328566671d84301c61df3ec47de
diff --git a/editors/beaver/patches/patch-src_editor.c b/editors/beaver/patches/patch-src_editor.c
new file mode 100644
index 00000000000..12f0da5eeb8
--- /dev/null
+++ b/editors/beaver/patches/patch-src_editor.c
@@ -0,0 +1,40 @@
+$NetBSD: patch-src_editor.c,v 1.1 2012/07/03 18:10:51 joerg Exp $
+
+--- src/editor.c.orig 2012-07-03 12:25:51.000000000 +0000
++++ src/editor.c
+@@ -404,7 +404,7 @@ extern void refresh_editor(GtkWidget *E
+ /* preconditions: iter points to possible start of interesting word
+ postconditions: end is set to the end of the word in the buffer if it was found.
+ if word found, returns TRUE, else FALSE*/
+-inline gboolean starts_string (gchar *text, gint i, gchar *word, gint *end)
++static inline gboolean starts_string (gchar *text, gint i, gchar *word, gint *end)
+ {
+ gunichar ch;
+ gunichar k;
+@@ -438,7 +438,7 @@ inline gboolean starts_string (gchar *te
+
+
+ /* returns color index of match, or -1 if none */
+-inline gint is_matching_keyword (gint Lg, const gchar *str)
++static inline gint is_matching_keyword (gint Lg, const gchar *str)
+ {
+ gint rv = -1;
+ gpointer val;
+@@ -454,7 +454,7 @@ inline gint is_matching_keyword (gint Lg
+ }
+
+
+-inline void refresh_markers (GtkTextBuffer *Buffer)
++static inline void refresh_markers (GtkTextBuffer *Buffer)
+ {
+ gint CurrentPage;
+ gint Lg;
+@@ -780,7 +780,7 @@ void search_for_keyword_correctly (gint
+ }
+
+
+-inline void search_for_keyword_fastly (gint page, GtkTextBuffer *Buffer, gchar *text, gint *i, gint offset, gint Lg)
++static void search_for_keyword_fastly (gint page, GtkTextBuffer *Buffer, gchar *text, gint *i, gint offset, gint Lg)
+ {
+ /* search for a keyword */
+ gint tmp, next;