summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-01 20:40:42 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-01 20:40:42 +0000
commitc5cd514663dc913dffbb4a428ad97a6bfd87f9b5 (patch)
tree8f673bb9c6aefd7b21d506683127869f7b454caf /lang
parenteaf54b4577663bc91bbb0ed5d4ed9c29ee7cdc61 (diff)
downloadpkgsrc-c5cd514663dc913dffbb4a428ad97a6bfd87f9b5.tar.gz
Don't use malloc.h. Kill some stupid prototypes that are part of ISO C
while here.
Diffstat (limited to 'lang')
-rw-r--r--lang/baci/distinfo4
-rw-r--r--lang/baci/patches/patch-aa35
2 files changed, 31 insertions, 8 deletions
diff --git a/lang/baci/distinfo b/lang/baci/distinfo
index fccf6534f35..34df082b3b9 100644
--- a/lang/baci/distinfo
+++ b/lang/baci/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2005/06/24 22:44:58 minskim Exp $
+$NetBSD: distinfo,v 1.7 2007/08/01 20:40:42 joerg Exp $
SHA1 (bacisrc.tar.gz) = 3b655bcbd2823047f3f92e6f2d3d12bc7eaa772d
RMD160 (bacisrc.tar.gz) = c484e3c05734cac1dd394d9b09b256e2a2626897
@@ -6,7 +6,7 @@ Size (bacisrc.tar.gz) = 186723 bytes
SHA1 (bacidoc.tar.gz) = 6550d2f87903b69ce470e9682d47420399fcf0af
RMD160 (bacidoc.tar.gz) = fab70e9bea44b384fe758de506f75bba68f412a6
Size (bacidoc.tar.gz) = 162066 bytes
-SHA1 (patch-aa) = e6135390d910807ac89e14b0f7ca99dd641260a0
+SHA1 (patch-aa) = 5a6f1c7219088687d244198bbcd76412a11ce645
SHA1 (patch-ab) = 26c8235aff9ab50013ae06f5f6256bfb3f26db83
SHA1 (patch-ac) = f72a2a911b2c1d262b6767a72a223397daf00c7a
SHA1 (patch-ad) = 70b1a6e08245d2c2769fa07532943e5fcecf1fc3
diff --git a/lang/baci/patches/patch-aa b/lang/baci/patches/patch-aa
index cf5340cd4ce..a392d1a47d6 100644
--- a/lang/baci/patches/patch-aa
+++ b/lang/baci/patches/patch-aa
@@ -1,8 +1,31 @@
-$NetBSD: patch-aa,v 1.2 2005/02/19 15:40:54 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2007/08/01 20:40:42 joerg Exp $
---- interp/bainterp.c.orig 1999-08-31 18:19:18.000000000 +0200
+--- interp/bainterp.c.orig 1999-08-31 16:19:18.000000000 +0000
+++ interp/bainterp.c
-@@ -240,8 +240,8 @@ void interpret()
+@@ -2,7 +2,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <assert.h>
+
+ #include "../include/bacicnty.h" /* for PMAX, PMAXP1 */
+@@ -14,13 +14,6 @@
+ #include "random.h"
+ #include "bainterp.h"
+
+-extern int printf(const char*,...);
+-extern int fprintf(FILE*,const char*,...);
+-extern int fputc(int,FILE*);
+-extern int fputs(const char*,FILE*);
+-extern int fseek(FILE*,long,int);
+-extern int sscanf(const char*,const char*,...);
+-
+ /* interpreter global variables */
+ extern char interp_pname[];
+ extern char interp_pnroot[];
+@@ -240,8 +233,8 @@ void interpret()
else {
ptab[curpr].t--;
h2 = PMAXP1; /* code like chooseproc */
@@ -13,7 +36,7 @@ $NetBSD: patch-aa,v 1.2 2005/02/19 15:40:54 wiz Exp $
while (( h2 >= 0 ) && (ptab[h3].suspend != h1 )){
h3 = (h3+h4) % (PMAXP1);
h2--;
-@@ -294,8 +294,8 @@ void interpret()
+@@ -294,8 +287,8 @@ void interpret()
else { /* semaphore was initialized */
ptab[curpr].monitor = 0;
h2 = PMAXP1;
@@ -24,7 +47,7 @@ $NetBSD: patch-aa,v 1.2 2005/02/19 15:40:54 wiz Exp $
while ((h2 >= 0) &&
((ptab[h3].monitor != h4) || (ptab[h3].suspend >= 0 ))){
h3 = (h3 + h5) % (PMAXP1);
-@@ -319,8 +319,8 @@ void interpret()
+@@ -319,8 +312,8 @@ void interpret()
ptab[curpr].active = 0;
stepcount = 0;
h2 = PMAXP1;
@@ -35,7 +58,7 @@ $NetBSD: patch-aa,v 1.2 2005/02/19 15:40:54 wiz Exp $
while ((h2 >= 0) &&
((ptab[h3].monitor != h4) || (ptab[h3].suspend >=0 ))){
h3 = (h3 + h5) % (PMAXP1);
-@@ -339,8 +339,8 @@ void interpret()
+@@ -339,8 +332,8 @@ void interpret()
else { /* monitor sem was OK */
h1 = s[ptab[curpr].t];
ptab[curpr].t--;