pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc ISO C90 does not allow declarations after code.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2929c65d1a4f
branches:  trunk
changeset: 499424:2929c65d1a4f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Sep 22 12:05:39 2005 +0000

description:
ISO C90 does not allow declarations after code.

diffstat:

 comms/jpilot/distinfo         |   3 ++-
 comms/jpilot/patches/patch-ae |  26 ++++++++++++++++++++++++++
 devel/lwp/distinfo            |   3 ++-
 devel/lwp/patches/patch-aa    |  28 ++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+), 2 deletions(-)

diffs (86 lines):

diff -r 8182d25e98e5 -r 2929c65d1a4f comms/jpilot/distinfo
--- a/comms/jpilot/distinfo     Thu Sep 22 11:56:37 2005 +0000
+++ b/comms/jpilot/distinfo     Thu Sep 22 12:05:39 2005 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.16 2005/09/05 07:51:58 rh Exp $
+$NetBSD: distinfo,v 1.17 2005/09/22 12:07:29 rillig Exp $
 
 SHA1 (jpilot-0.99.7.tar.gz) = 4ecdc3c00fa4b7d475d156f1cef6840c5e8aa4dc
 RMD160 (jpilot-0.99.7.tar.gz) = 04516b0be321addaf636205372483178dff5c839
 Size (jpilot-0.99.7.tar.gz) = 1197119 bytes
 SHA1 (patch-ab) = 00252b62491d894572a59645dcdfdf8edd3d0b21
 SHA1 (patch-ad) = cac013141685ff632cafc7a45841d4c9b77a957f
+SHA1 (patch-ae) = 62ae557a7f9c3692bfec8f6efcdc664db776d4c9
diff -r 8182d25e98e5 -r 2929c65d1a4f comms/jpilot/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/jpilot/patches/patch-ae     Thu Sep 22 12:05:39 2005 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ae,v 1.5 2005/09/22 12:07:29 rillig Exp $
+
+ISO C90 does not allow declarations after code.
+
+--- address_gui.c.orig Sun Feb 22 20:34:23 2004
++++ address_gui.c      Thu Sep 22 13:59:00 2005
+@@ -1426,14 +1426,16 @@ void cb_dialer(GtkWidget *widget, gpoint
+    char *Px;
+    char number[100];
+    char ext[100];
+-
+-   number[0]=ext[0]='\0';
+-   text=data;
+ #ifdef ENABLE_GTK2
+    GtkTextIter    start_iter;
+    GtkTextIter    end_iter;
+    GtkTextBuffer *text_buffer;
++#endif
+ 
++   number[0]=ext[0]='\0';
++   text=data;
++
++#ifdef ENABLE_GTK2
+    text_buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
+    gtk_text_buffer_get_bounds(GTK_TEXT_BUFFER(text),&start_iter,&end_iter);
+    str = gtk_text_buffer_get_text(GTK_TEXT_BUFFER(text),&start_iter,&end_iter,TRUE);
diff -r 8182d25e98e5 -r 2929c65d1a4f devel/lwp/distinfo
--- a/devel/lwp/distinfo        Thu Sep 22 11:56:37 2005 +0000
+++ b/devel/lwp/distinfo        Thu Sep 22 12:05:39 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.10 2005/08/15 01:14:05 xtraeme Exp $
+$NetBSD: distinfo,v 1.11 2005/09/22 12:05:39 rillig Exp $
 
 SHA1 (lwp-2.0.tar.gz) = 4188f5df42a9f879f67c9294ebf9bf59056a0e25
 RMD160 (lwp-2.0.tar.gz) = cf42e3324ed94fe67ae817281763eb1f2f475935
 Size (lwp-2.0.tar.gz) = 362141 bytes
+SHA1 (patch-aa) = 02ff9a57c996c67b722987d4dde3899056341df5
diff -r 8182d25e98e5 -r 2929c65d1a4f devel/lwp/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lwp/patches/patch-aa        Thu Sep 22 12:05:39 2005 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.5 2005/09/22 12:05:39 rillig Exp $
+
+ISO C90 does not allow declarations after code.
+
+--- src/lwp_ucontext.c.orig    Thu Mar  3 19:53:51 2005
++++ src/lwp_ucontext.c Thu Sep 22 14:02:14 2005
+@@ -109,6 +109,10 @@ void makecontext(ucontext_t *ucp, void (
+ {
+     va_list ap;
+     char *stack = ucp->uc_stack.ss_sp;
++    struct sigaction action, oldaction;
++    sigset_t sigs, oldsigs;
++    stack_t oldstack;
++
+     assert(stack != NULL);
+ 
+     child = ucp;
+@@ -132,10 +136,6 @@ void makecontext(ucontext_t *ucp, void (
+     savecontext(_thread, &parent, stack);
+ 
+ #else /* HAVE_SIGALTSTACK */
+-    struct sigaction action, oldaction;
+-    sigset_t sigs, oldsigs;
+-    stack_t oldstack;
+-
+     action.sa_handler = (void(*)(int))_thread;
+     action.sa_flags = SA_ONSTACK;
+     sigemptyset(&action.sa_mask);



Home | Main Index | Thread Index | Old Index