summaryrefslogtreecommitdiff
path: root/www/bkedit
diff options
context:
space:
mode:
authorwiz <wiz>2006-06-25 13:46:37 +0000
committerwiz <wiz>2006-06-25 13:46:37 +0000
commitddc18b61151b5f36fc78f3d6a4e5f4bba18acdad (patch)
treea6934c52d30046c6083109ee1b832ed04b96dd35 /www/bkedit
parent235d1e8f892180ab25875da61c8a69b306d53694 (diff)
downloadpkgsrc-ddc18b61151b5f36fc78f3d6a4e5f4bba18acdad.tar.gz
Fix build with gcc4.
Diffstat (limited to 'www/bkedit')
-rw-r--r--www/bkedit/distinfo6
-rw-r--r--www/bkedit/patches/patch-ab22
-rw-r--r--www/bkedit/patches/patch-ac142
-rw-r--r--www/bkedit/patches/patch-ad142
-rw-r--r--www/bkedit/patches/patch-ae142
5 files changed, 453 insertions, 1 deletions
diff --git a/www/bkedit/distinfo b/www/bkedit/distinfo
index fcafd1757be..8cf8a87c5c8 100644
--- a/www/bkedit/distinfo
+++ b/www/bkedit/distinfo
@@ -1,6 +1,10 @@
-$NetBSD: distinfo,v 1.5 2005/02/24 14:08:29 wiz Exp $
+$NetBSD: distinfo,v 1.6 2006/06/25 13:46:37 wiz Exp $
SHA1 (bk_edit-0.6.23.tar.gz) = fe37a0e213e54d8a60f70b6e03818e26f3690bf2
RMD160 (bk_edit-0.6.23.tar.gz) = a9cc09925ccd0691d5a38b04ea2a81f877a3c102
Size (bk_edit-0.6.23.tar.gz) = 113434 bytes
SHA1 (patch-aa) = 84d7f99a8de035df2fd92586ded632aaf6edfc1e
+SHA1 (patch-ab) = 35434dd2df53738c6941f01f7fdd780bf20ea3fb
+SHA1 (patch-ac) = f2d604127d303ad1293c2990671a807a772da2ac
+SHA1 (patch-ad) = e1161633ecd78e5c195e97a70710f4af99950a76
+SHA1 (patch-ae) = c9be8f24f93a885c4a2adaca103e3b487a5200e0
diff --git a/www/bkedit/patches/patch-ab b/www/bkedit/patches/patch-ab
new file mode 100644
index 00000000000..984b1a1a517
--- /dev/null
+++ b/www/bkedit/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2006/06/25 13:46:37 wiz Exp $
+
+Fixes gcc4 error:
+error: invalid lvalue in decrement
+
+--- src/bk_edit_recent_document.c.orig 2003-11-29 13:14:14.000000000 +0000
++++ src/bk_edit_recent_document.c
+@@ -115,10 +115,13 @@ static void ok (GtkWidget *dialog, void
+ {
+ GList *list = config_recent_documents_list_get (conf);
+ GList *l = list;
++ int len;
++
++ len = (int) which;
+
+ while (l)
+ {
+- if (((int) which)-- == 0)
++ if (len-- == 0)
+ {
+ break;
+ }
diff --git a/www/bkedit/patches/patch-ac b/www/bkedit/patches/patch-ac
new file mode 100644
index 00000000000..9030f4c005c
--- /dev/null
+++ b/www/bkedit/patches/patch-ac
@@ -0,0 +1,142 @@
+$NetBSD: patch-ac,v 1.1 2006/06/25 13:46:37 wiz Exp $
+
+Fixes gcc4 error:
+error: invalid storage class for function 'non_greedy_parsing'
+
+--- src/plugins/nn4/nn4_parse.lex.orig 2003-11-29 13:14:14.000000000 +0000
++++ src/plugins/nn4/nn4_parse.lex
+@@ -38,6 +38,7 @@
+
+ #undef YY_USES_REJECT
+
++static char *non_greedy_parsing (pattern [], char []);
+ %}
+
+ %option noyywrap
+@@ -56,65 +57,6 @@ DOCTYPE "<!DOCTYPE NETSCAPE-Bookmark-fi
+
+
+ %{
+-
+-static char *non_greedy_parsing (pattern stop_pattern[], char yytext[])
+-{
+- char_vector *text_cv = char_vector_new (text_cv, 100);
+- char *text_end = NULL;
+- char *text;
+- int in, i, which, chr_cnt = 0;
+-
+- char_vector_add (text_cv, yytext[0]);
+-
+- while ((text_end == NULL) && ((in = input ()) != EOF))
+- {
+- char_vector_add (text_cv, in);
+- chr_cnt++;
+-
+- for (which = 0; stop_pattern[which].text != NULL; which++)
+- {
+- if (chr_cnt > stop_pattern[which].length)
+- {
+- stop_pattern[which].text_ptr++;
+- }
+- }
+-
+- for (which = 0; stop_pattern[which].text != NULL; which++)
+- {
+- text_end = strstr ((text_cv->vector) + stop_pattern[which].text_ptr,
+- stop_pattern[which].text);
+- if (text_end != NULL)
+- {
+- break;
+- }
+- }
+- }
+-
+- if (text_end != NULL)
+- {
+- *text_end = '\0';
+-
+- for (i = strlen (stop_pattern[which].text) - 1; i >= 0; i--)
+- {
+- unput (stop_pattern[which].text[i]);
+- }
+- }
+- else
+- {
+- char_vector_del (text_cv);
+- return NULL;
+- }
+-
+- text = strdup (text_cv->vector);
+- char_vector_del (text_cv);
+-
+- return text;
+-}
+-
+-%}
+-
+-
+-%{
+ /************************************************************************
+ * doctype
+ ************************************************************************/
+@@ -283,6 +225,60 @@ static char *non_greedy_parsing (pattern
+
+ %%
+
++static char *non_greedy_parsing (pattern stop_pattern[], char yytext[])
++{
++ char_vector *text_cv = char_vector_new (text_cv, 100);
++ char *text_end = NULL;
++ char *text;
++ int in, i, which, chr_cnt = 0;
++
++ char_vector_add (text_cv, yytext[0]);
++
++ while ((text_end == NULL) && ((in = input ()) != EOF))
++ {
++ char_vector_add (text_cv, in);
++ chr_cnt++;
++
++ for (which = 0; stop_pattern[which].text != NULL; which++)
++ {
++ if (chr_cnt > stop_pattern[which].length)
++ {
++ stop_pattern[which].text_ptr++;
++ }
++ }
++
++ for (which = 0; stop_pattern[which].text != NULL; which++)
++ {
++ text_end = strstr ((text_cv->vector) + stop_pattern[which].text_ptr,
++ stop_pattern[which].text);
++ if (text_end != NULL)
++ {
++ break;
++ }
++ }
++ }
++
++ if (text_end != NULL)
++ {
++ *text_end = '\0';
++
++ for (i = strlen (stop_pattern[which].text) - 1; i >= 0; i--)
++ {
++ unput (stop_pattern[which].text[i]);
++ }
++ }
++ else
++ {
++ char_vector_del (text_cv);
++ return NULL;
++ }
++
++ text = strdup (text_cv->vector);
++ char_vector_del (text_cv);
++
++ return text;
++}
++
+
+ void yyerror (char *error_message)
+ {
diff --git a/www/bkedit/patches/patch-ad b/www/bkedit/patches/patch-ad
new file mode 100644
index 00000000000..83f78e6cc0c
--- /dev/null
+++ b/www/bkedit/patches/patch-ad
@@ -0,0 +1,142 @@
+$NetBSD: patch-ad,v 1.1 2006/06/25 13:46:37 wiz Exp $
+
+Fixes gcc4 error:
+error: invalid storage class for function 'non_greedy_parsing'
+
+--- src/plugins/moz/moz_parse.lex.orig 2003-11-29 13:14:14.000000000 +0000
++++ src/plugins/moz/moz_parse.lex
+@@ -41,6 +41,7 @@
+ #undef YY_USES_REJECT
+
+ int yylex (void);
++static char *non_greedy_parsing (pattern [], char []);
+
+ %}
+
+@@ -60,65 +61,6 @@ DOCTYPE "<!DOCTYPE NETSCAPE-Bookmark-fi
+
+
+ %{
+-
+-static char *non_greedy_parsing (pattern stop_pattern[], char yytext[])
+-{
+- char_vector *text_cv = char_vector_new (text_cv, 100);
+- char *text_end = NULL;
+- char *text;
+- int in, i, which, chr_cnt = 0;
+-
+- char_vector_add (text_cv, yytext[0]);
+-
+- while ((text_end == NULL) && ((in = input ()) != EOF))
+- {
+- char_vector_add (text_cv, in);
+- chr_cnt++;
+-
+- for (which = 0; stop_pattern[which].text != NULL; which++)
+- {
+- if (chr_cnt > stop_pattern[which].length)
+- {
+- stop_pattern[which].text_ptr++;
+- }
+- }
+-
+- for (which = 0; stop_pattern[which].text != NULL; which++)
+- {
+- text_end = strstr ((text_cv->vector) + stop_pattern[which].text_ptr,
+- stop_pattern[which].text);
+- if (text_end != NULL)
+- {
+- break;
+- }
+- }
+- }
+-
+- if (text_end != NULL)
+- {
+- *text_end = '\0';
+-
+- for (i = strlen (stop_pattern[which].text) - 1; i >= 0; i--)
+- {
+- unput (stop_pattern[which].text[i]);
+- }
+- }
+- else
+- {
+- char_vector_del (text_cv);
+- return NULL;
+- }
+-
+- text = strdup (text_cv->vector);
+- char_vector_del (text_cv);
+-
+- return text;
+-}
+-
+-%}
+-
+-
+-%{
+ /************************************************************************
+ * doctype
+ ************************************************************************/
+@@ -303,6 +245,60 @@ static char *non_greedy_parsing (pattern
+
+ %%
+
++static char *non_greedy_parsing (pattern stop_pattern[], char yytext[])
++{
++ char_vector *text_cv = char_vector_new (text_cv, 100);
++ char *text_end = NULL;
++ char *text;
++ int in, i, which, chr_cnt = 0;
++
++ char_vector_add (text_cv, yytext[0]);
++
++ while ((text_end == NULL) && ((in = input ()) != EOF))
++ {
++ char_vector_add (text_cv, in);
++ chr_cnt++;
++
++ for (which = 0; stop_pattern[which].text != NULL; which++)
++ {
++ if (chr_cnt > stop_pattern[which].length)
++ {
++ stop_pattern[which].text_ptr++;
++ }
++ }
++
++ for (which = 0; stop_pattern[which].text != NULL; which++)
++ {
++ text_end = strstr ((text_cv->vector) + stop_pattern[which].text_ptr,
++ stop_pattern[which].text);
++ if (text_end != NULL)
++ {
++ break;
++ }
++ }
++ }
++
++ if (text_end != NULL)
++ {
++ *text_end = '\0';
++
++ for (i = strlen (stop_pattern[which].text) - 1; i >= 0; i--)
++ {
++ unput (stop_pattern[which].text[i]);
++ }
++ }
++ else
++ {
++ char_vector_del (text_cv);
++ return NULL;
++ }
++
++ text = strdup (text_cv->vector);
++ char_vector_del (text_cv);
++
++ return text;
++}
++
+
+ void yyerror (char *error_message)
+ {
diff --git a/www/bkedit/patches/patch-ae b/www/bkedit/patches/patch-ae
new file mode 100644
index 00000000000..1e829646edc
--- /dev/null
+++ b/www/bkedit/patches/patch-ae
@@ -0,0 +1,142 @@
+$NetBSD: patch-ae,v 1.1 2006/06/25 13:46:37 wiz Exp $
+
+Fixes gcc4 problem:
+error: invalid storage class for function 'non_greedy_parsing'
+
+--- src/plugins/links2/links2_parse.lex.orig 2003-11-29 13:14:14.000000000 +0000
++++ src/plugins/links2/links2_parse.lex
+@@ -31,6 +31,7 @@
+
+ #undef YY_USES_REJECT
+
++static char *non_greedy_parsing (pattern [], char []);
+ %}
+
+ %option noyywrap
+@@ -46,65 +47,6 @@
+ %%
+
+
+-%{
+-
+-static char *non_greedy_parsing (pattern stop_pattern[], char yytext[])
+-{
+- char_vector *text_cv = char_vector_new (text_cv, 100);
+- char *text_end = NULL;
+- char *text;
+- int in, i, which, chr_cnt = 0;
+-
+- char_vector_add (text_cv, yytext[0]);
+-
+- while ((text_end == NULL) && ((in = input ()) != EOF))
+- {
+- char_vector_add (text_cv, in);
+- chr_cnt++;
+-
+- for (which = 0; stop_pattern[which].text != NULL; which++)
+- {
+- if (chr_cnt > stop_pattern[which].length)
+- {
+- stop_pattern[which].text_ptr++;
+- }
+- }
+-
+- for (which = 0; stop_pattern[which].text != NULL; which++)
+- {
+- text_end = strstr ((text_cv->vector) + stop_pattern[which].text_ptr,
+- stop_pattern[which].text);
+- if (text_end != NULL)
+- {
+- break;
+- }
+- }
+- }
+-
+- if (text_end != NULL)
+- {
+- *text_end = '\0';
+-
+- for (i = strlen (stop_pattern[which].text) - 1; i >= 0; i--)
+- {
+- unput (stop_pattern[which].text[i]);
+- }
+- }
+- else
+- {
+- char_vector_del (text_cv);
+- return NULL;
+- }
+-
+- text = strdup (text_cv->vector);
+- char_vector_del (text_cv);
+-
+- return text;
+-}
+-
+-%}
+-
+-
+
+ %{
+ /************************************************************************
+@@ -229,6 +171,60 @@ static char *non_greedy_parsing (pattern
+
+ %%
+
++static char *non_greedy_parsing (pattern stop_pattern[], char yytext[])
++{
++ char_vector *text_cv = char_vector_new (text_cv, 100);
++ char *text_end = NULL;
++ char *text;
++ int in, i, which, chr_cnt = 0;
++
++ char_vector_add (text_cv, yytext[0]);
++
++ while ((text_end == NULL) && ((in = input ()) != EOF))
++ {
++ char_vector_add (text_cv, in);
++ chr_cnt++;
++
++ for (which = 0; stop_pattern[which].text != NULL; which++)
++ {
++ if (chr_cnt > stop_pattern[which].length)
++ {
++ stop_pattern[which].text_ptr++;
++ }
++ }
++
++ for (which = 0; stop_pattern[which].text != NULL; which++)
++ {
++ text_end = strstr ((text_cv->vector) + stop_pattern[which].text_ptr,
++ stop_pattern[which].text);
++ if (text_end != NULL)
++ {
++ break;
++ }
++ }
++ }
++
++ if (text_end != NULL)
++ {
++ *text_end = '\0';
++
++ for (i = strlen (stop_pattern[which].text) - 1; i >= 0; i--)
++ {
++ unput (stop_pattern[which].text[i]);
++ }
++ }
++ else
++ {
++ char_vector_del (text_cv);
++ return NULL;
++ }
++
++ text = strdup (text_cv->vector);
++ char_vector_del (text_cv);
++
++ return text;
++}
++
+
+ void yyerror (char *error_message)
+ {