summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-02-19 15:40:54 +0000
committerwiz <wiz@pkgsrc.org>2005-02-19 15:40:54 +0000
commit0f780af217661c53d144dd587edcaa292e06760c (patch)
tree00e612099202495857d1610de2fab6d9801c57a5 /lang
parent9890972499e037190acb1dabe98c56c078e2012b (diff)
downloadpkgsrc-0f780af217661c53d144dd587edcaa292e06760c.tar.gz
Use header files for prototypes instead of just guessing.
Fixes PR 29455.
Diffstat (limited to 'lang')
-rw-r--r--lang/baci/distinfo19
-rw-r--r--lang/baci/patches/patch-aa14
-rw-r--r--lang/baci/patches/patch-ab31
-rw-r--r--lang/baci/patches/patch-ac8
-rw-r--r--lang/baci/patches/patch-ad8
-rw-r--r--lang/baci/patches/patch-ae30
-rw-r--r--lang/baci/patches/patch-af28
-rw-r--r--lang/baci/patches/patch-ag31
-rw-r--r--lang/baci/patches/patch-ah12
-rw-r--r--lang/baci/patches/patch-ai24
-rw-r--r--lang/baci/patches/patch-aj13
11 files changed, 176 insertions, 42 deletions
diff --git a/lang/baci/distinfo b/lang/baci/distinfo
index 3b3560854d8..8c08c90dca0 100644
--- a/lang/baci/distinfo
+++ b/lang/baci/distinfo
@@ -1,13 +1,16 @@
-$NetBSD: distinfo,v 1.3 2002/12/27 01:27:15 jschauma Exp $
+$NetBSD: distinfo,v 1.4 2005/02/19 15:40:54 wiz Exp $
SHA1 (bacisrc.tar.gz) = 3b655bcbd2823047f3f92e6f2d3d12bc7eaa772d
Size (bacisrc.tar.gz) = 186723 bytes
SHA1 (bacidoc.tar.gz) = 6550d2f87903b69ce470e9682d47420399fcf0af
Size (bacidoc.tar.gz) = 162066 bytes
-SHA1 (patch-aa) = cf26c021a886498611250f0f2cda4433d295d39f
-SHA1 (patch-ab) = 39aa0ad952cd6f77134c1d8d84d5c6c65bf2029e
-SHA1 (patch-ac) = b759d67e950596ad4e2e644214dd083d1c09c126
-SHA1 (patch-ad) = 646090115096f4c44c6ed8fc599e804b8c388ba9
-SHA1 (patch-ae) = 91de4ffe6b0c72cc9f01a89e219f2bba49ab74d2
-SHA1 (patch-af) = 9ce21eafc12d7a8cc337828d3a9ea9143d9e3e05
-SHA1 (patch-ag) = d80cfae441d1708e6cac34bfc80848325ea8702f
+SHA1 (patch-aa) = e6135390d910807ac89e14b0f7ca99dd641260a0
+SHA1 (patch-ab) = 26c8235aff9ab50013ae06f5f6256bfb3f26db83
+SHA1 (patch-ac) = f72a2a911b2c1d262b6767a72a223397daf00c7a
+SHA1 (patch-ad) = 70b1a6e08245d2c2769fa07532943e5fcecf1fc3
+SHA1 (patch-ae) = a2be64d957abd66dac0057b896af1326c89f71af
+SHA1 (patch-af) = 9317e315edace5580b714d82f88bd3360e4c4cd9
+SHA1 (patch-ag) = df83bd959b26677d193b883cc0d3a944c6d86544
+SHA1 (patch-ah) = 500a536f362eba6fdd152e5be598d66528b3396d
+SHA1 (patch-ai) = a94b97a695bfcf233835cec67791c99732c7cdf6
+SHA1 (patch-aj) = 0c9824049ac9555b76889fcd09e644e91ebae78d
diff --git a/lang/baci/patches/patch-aa b/lang/baci/patches/patch-aa
index d5108f4bfb1..cf5340cd4ce 100644
--- a/lang/baci/patches/patch-aa
+++ b/lang/baci/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
+$NetBSD: patch-aa,v 1.2 2005/02/19 15:40:54 wiz Exp $
---- interp/bainterp.c.orig Mon Jul 24 00:24:03 2000
-+++ interp/bainterp.c Mon Jul 24 00:25:36 2000
-@@ -240,8 +240,8 @@
+--- interp/bainterp.c.orig 1999-08-31 18:19:18.000000000 +0200
++++ interp/bainterp.c
+@@ -240,8 +240,8 @@ void interpret()
else {
ptab[curpr].t--;
h2 = PMAXP1; /* code like chooseproc */
@@ -13,7 +13,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
while (( h2 >= 0 ) && (ptab[h3].suspend != h1 )){
h3 = (h3+h4) % (PMAXP1);
h2--;
-@@ -294,8 +294,8 @@
+@@ -294,8 +294,8 @@ void interpret()
else { /* semaphore was initialized */
ptab[curpr].monitor = 0;
h2 = PMAXP1;
@@ -24,7 +24,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
while ((h2 >= 0) &&
((ptab[h3].monitor != h4) || (ptab[h3].suspend >= 0 ))){
h3 = (h3 + h5) % (PMAXP1);
-@@ -319,8 +319,8 @@
+@@ -319,8 +319,8 @@ void interpret()
ptab[curpr].active = 0;
stepcount = 0;
h2 = PMAXP1;
@@ -35,7 +35,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
while ((h2 >= 0) &&
((ptab[h3].monitor != h4) || (ptab[h3].suspend >=0 ))){
h3 = (h3 + h5) % (PMAXP1);
-@@ -339,8 +339,8 @@
+@@ -339,8 +339,8 @@ void interpret()
else { /* monitor sem was OK */
h1 = s[ptab[curpr].t];
ptab[curpr].t--;
diff --git a/lang/baci/patches/patch-ab b/lang/baci/patches/patch-ab
index 61663648a4f..7c900c6ccb2 100644
--- a/lang/baci/patches/patch-ab
+++ b/lang/baci/patches/patch-ab
@@ -1,8 +1,29 @@
-$NetBSD: patch-ab,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
+$NetBSD: patch-ab,v 1.2 2005/02/19 15:40:54 wiz Exp $
---- interp/baiutils.c.orig Mon Jul 24 00:25:52 2000
-+++ interp/baiutils.c Mon Jul 24 00:26:49 2000
-@@ -171,8 +171,8 @@
+--- interp/baiutils.c.orig 1999-08-31 18:19:18.000000000 +0200
++++ interp/baiutils.c
+@@ -1,6 +1,7 @@
+ /* BenAri Concurrent PCODE Interpreter Utilities */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <assert.h>
+
+@@ -10,12 +11,7 @@
+ #include "random.h"
+ #include "bainterp.h"
+
+-extern int fprintf(FILE*,const char*,...);
+-extern int fclose(FILE*);
+-extern int printf(const char*,...);
+-extern int atoi(char*);
+ extern int build_cbtab();
+-extern int sscanf(const char*, const char*,...);
+
+ FNAME_STRING interp_pname;
+
+@@ -171,8 +167,8 @@ void chooseproc()
d = PMAXP1;
suspended = active = 0;
@@ -13,7 +34,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
while ( ((!ptab[look].active) || (ptab[look].suspend>=0) ||
(ptab[look].tabix < 0)) && (d >= 0) ){
/* keep looking until a called process that is active and not
-@@ -189,7 +189,7 @@
+@@ -189,7 +185,7 @@ void chooseproc()
ps = deadlock;
}
else {
diff --git a/lang/baci/patches/patch-ac b/lang/baci/patches/patch-ac
index d399a23e342..a084e871bf6 100644
--- a/lang/baci/patches/patch-ac
+++ b/lang/baci/patches/patch-ac
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
+$NetBSD: patch-ac,v 1.2 2005/02/19 15:40:54 wiz Exp $
---- interp/random.c.orig Mon Jul 24 00:23:32 2000
-+++ interp/random.c Mon Jul 24 00:23:39 2000
-@@ -65,7 +65,7 @@
+--- interp/random.c.orig 1999-08-31 18:19:18.000000000 +0200
++++ interp/random.c
+@@ -65,7 +65,7 @@ long int temp;
useed = temp+seed; /* start user somewhere else */
}
diff --git a/lang/baci/patches/patch-ad b/lang/baci/patches/patch-ad
index a773a6f5819..7314397395a 100644
--- a/lang/baci/patches/patch-ad
+++ b/lang/baci/patches/patch-ad
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
+$NetBSD: patch-ad,v 1.2 2005/02/19 15:40:54 wiz Exp $
---- interp/random.h.orig Mon Jul 24 00:18:41 2000
-+++ interp/random.h Mon Jul 24 00:19:01 2000
-@@ -18,7 +18,7 @@
+--- interp/random.h.orig 1999-08-31 18:19:18.000000000 +0200
++++ interp/random.h
+@@ -18,7 +18,7 @@ extern float strand();
/* strand(); */
/* returns a randomly distributed 'random' real between 0 & 2^31 -1 */
diff --git a/lang/baci/patches/patch-ae b/lang/baci/patches/patch-ae
index 21ed409c7c5..8deea0ae03a 100644
--- a/lang/baci/patches/patch-ae
+++ b/lang/baci/patches/patch-ae
@@ -1,8 +1,30 @@
-$NetBSD: patch-ae,v 1.1.1.1 2000/07/25 12:44:34 wulf Exp $
+$NetBSD: patch-ae,v 1.2 2005/02/19 15:40:54 wiz Exp $
---- disasm/badautil.c.orig Sun Jul 23 23:42:23 2000
-+++ disasm/badautil.c Sun Jul 23 23:49:07 2000
-@@ -213,13 +213,12 @@
+--- disasm/badautil.c.orig 1999-08-31 18:19:14.000000000 +0200
++++ disasm/badautil.c
+@@ -5,6 +5,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <sys/stat.h> /* for stat */
+ #include <sys/types.h> /* for stat */
+@@ -19,13 +20,6 @@
+
+ #include "../include/disutils.h"
+
+-extern int fprintf(FILE*,const char*,...);
+-extern int fputc(int , FILE*);
+-extern int fputs(const char*,FILE*);
+-extern int sscanf(const char*,const char*,...);
+-extern int fclose(FILE*);
+-extern void rewind(FILE*);
+-
+ FNAME_STRING prog_name; /* to hold the name of the disassembler */
+
+ char pn_root[] =
+@@ -213,13 +207,12 @@ void close_ifile(FILE* f,int* cur_ifile)
level--;
}
diff --git a/lang/baci/patches/patch-af b/lang/baci/patches/patch-af
index 66ba47d1e6a..a41f1ad8d9f 100644
--- a/lang/baci/patches/patch-af
+++ b/lang/baci/patches/patch-af
@@ -1,8 +1,26 @@
-$NetBSD: patch-af,v 1.1 2002/12/27 01:27:15 jschauma Exp $
+$NetBSD: patch-af,v 1.2 2005/02/19 15:40:54 wiz Exp $
---- ccomp/bac.y.orig Thu Dec 26 20:15:57 2002
-+++ ccomp/bac.y Thu Dec 26 20:18:43 2002
-@@ -1013,6 +1013,7 @@
+--- ccomp/bac.y.orig 1999-08-31 18:19:03.000000000 +0200
++++ ccomp/bac.y
+@@ -3,6 +3,7 @@
+ /* based on the grammar for the BenAri Concurrent Pascal compiler */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <time.h>
+ #include <assert.h>
+@@ -24,9 +25,6 @@ extern char lasttoken[];
+ extern void global_init(int argc, char** argv);
+ extern char *lastident();
+
+-extern int fprintf(FILE*,const char*,...);
+-extern int printf(const char*,...);
+-extern int free(void*);
+ extern void yyerror(char*);
+ extern int yylex(void);
+
+@@ -1013,6 +1011,7 @@ then_stmt : stmt
the_else : ELSE
{ emit(JUMP); $$ = lc; }
@@ -10,7 +28,7 @@ $NetBSD: patch-af,v 1.1 2002/12/27 01:27:15 jschauma Exp $
switch_hdr : SWITCH '(' expr ')'
{
-@@ -1272,6 +1273,7 @@
+@@ -1272,6 +1271,7 @@ break_stmt : BREAK ';'
}
}
}
diff --git a/lang/baci/patches/patch-ag b/lang/baci/patches/patch-ag
index 9494afe5f0d..7b266263262 100644
--- a/lang/baci/patches/patch-ag
+++ b/lang/baci/patches/patch-ag
@@ -1,8 +1,29 @@
-$NetBSD: patch-ag,v 1.1 2002/12/27 01:27:15 jschauma Exp $
+$NetBSD: patch-ag,v 1.2 2005/02/19 15:40:54 wiz Exp $
---- pascomp/bapascal.y.orig Thu Dec 26 20:21:20 2002
-+++ pascomp/bapascal.y Thu Dec 26 20:22:09 2002
-@@ -866,7 +866,6 @@
+--- pascomp/bapascal.y.orig 1999-08-31 18:19:08.000000000 +0200
++++ pascomp/bapascal.y
+@@ -3,6 +3,7 @@
+ /* based on the Pascal grammar from the */
+ /* primost.cs.wisc.edu compiler archive */
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <time.h>
+
+@@ -25,12 +26,8 @@ extern void global_init(int argc, cha
+ #include "../include/writetab.h"
+ #include "../include/pcode.h"
+
+-extern int fprintf(FILE*,const char*,...);
+-extern int printf(const char*,...);
+-extern int free(void*);
+ extern void yyerror(char*);
+ extern int yylex(void);
+-extern int atoi(char*);
+
+ void process_var_inits(int level);
+ void add_var_init(int* curr_var, int tix, int level, int value);
+@@ -866,7 +863,6 @@ statement : /*empty*/
{ gen_exprval($4); emit1(JZER,$1); free_expr($4); }
| for_header statement
{ emit1(ENDFOR,1+$1); code[$1].y = lc; }
@@ -10,7 +31,7 @@ $NetBSD: patch-ag,v 1.1 2002/12/27 01:27:15 jschauma Exp $
| cbegin statements CEND
{ if (level == 1) emit(COEND); in_cobegin = 0; }
;
-@@ -885,6 +884,7 @@
+@@ -885,6 +881,7 @@ the_else : ELSE
the_while : WHILE
{ $$ = lc; }
diff --git a/lang/baci/patches/patch-ah b/lang/baci/patches/patch-ah
new file mode 100644
index 00000000000..6fc177c78dd
--- /dev/null
+++ b/lang/baci/patches/patch-ah
@@ -0,0 +1,12 @@
+$NetBSD: patch-ah,v 1.1 2005/02/19 15:40:54 wiz Exp $
+
+--- pascomp/bapascal.l.orig 1999-08-31 18:19:08.000000000 +0200
++++ pascomp/bapascal.l
+@@ -16,6 +16,7 @@ BS6192:1982 (ISO 7185:1983)
+ ******************************************************************************/
+
+ #include <stdio.h>
++#include <string.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+ #include "ytab.h"
diff --git a/lang/baci/patches/patch-ai b/lang/baci/patches/patch-ai
new file mode 100644
index 00000000000..40c3e67dc0f
--- /dev/null
+++ b/lang/baci/patches/patch-ai
@@ -0,0 +1,24 @@
+$NetBSD: patch-ai,v 1.1 2005/02/19 15:40:54 wiz Exp $
+
+--- ccomp/bac.l.orig 1999-08-31 18:19:04.000000000 +0200
++++ ccomp/bac.l
+@@ -3,6 +3,7 @@
+
+ #include <ctype.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+
+ #include "ytab.h"
+@@ -11,11 +12,6 @@
+ #include "../include/incfiles.h"
+ #include "../include/computil.h"
+
+-extern int printf(const char*,...);
+-extern int fprintf(FILE*,const char*,...);
+-extern size_t fwrite(const void*,size_t,size_t,FILE*);
+-extern int fgetc(FILE*);
+-extern int fputc(int,FILE*);
+ extern void yyerror(char*);
+
+ /* FLEX doesn't declare malloc and realloc before it uses them */
diff --git a/lang/baci/patches/patch-aj b/lang/baci/patches/patch-aj
new file mode 100644
index 00000000000..9c046cf8090
--- /dev/null
+++ b/lang/baci/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1 2005/02/19 15:40:54 wiz Exp $
+
+--- lib/disutils.c.orig 1999-09-16 04:38:05.000000000 +0200
++++ lib/disutils.c
+@@ -238,7 +238,7 @@ void disassemble(char *dl, int tix, int
+ case sems: strcat(dl,"(semaphore)"); break;
+ case bsems: strcat(dl,"(binarysem)"); break;
+ case chars: strcat(dl,"(char)"); break;
+- default: strcat(dl,"(??)"); break;
++ default: strcat(dl,"(?)"); break;
+ }
+ strcat(dl," s[t] to stdout, pop(1)\n");
+ break; /* 29 */