summaryrefslogtreecommitdiff
path: root/lang/baci/patches
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
commit4827e7109f18b509d23e6c07dea66a7f923edf3a (patch)
tree8f673bb9c6aefd7b21d506683127869f7b454caf /lang/baci/patches
parent7512eb7fea1b6ca6377a3eb15759a7e1c5cd3335 (diff)
downloadpkgsrc-4827e7109f18b509d23e6c07dea66a7f923edf3a.tar.gz
Don't use malloc.h. Kill some stupid prototypes that are part of ISO C
while here.
Diffstat (limited to 'lang/baci/patches')
-rw-r--r--lang/baci/patches/patch-aa35
1 files changed, 29 insertions, 6 deletions
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--;