pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/baci Use header files for prototypes instead of j...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/082bc3c226a4
branches:  trunk
changeset: 489280:082bc3c226a4
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Feb 19 15:40:54 2005 +0000

description:
Use header files for prototypes instead of just guessing.
Fixes PR 29455.

diffstat:

 lang/baci/distinfo         |  19 +++++++++++--------
 lang/baci/patches/patch-aa |  14 +++++++-------
 lang/baci/patches/patch-ab |  31 ++++++++++++++++++++++++++-----
 lang/baci/patches/patch-ac |   8 ++++----
 lang/baci/patches/patch-ad |   8 ++++----
 lang/baci/patches/patch-ae |  30 ++++++++++++++++++++++++++----
 lang/baci/patches/patch-af |  28 +++++++++++++++++++++++-----
 lang/baci/patches/patch-ag |  31 ++++++++++++++++++++++++++-----
 lang/baci/patches/patch-ah |  12 ++++++++++++
 lang/baci/patches/patch-ai |  24 ++++++++++++++++++++++++
 lang/baci/patches/patch-aj |  13 +++++++++++++
 11 files changed, 176 insertions(+), 42 deletions(-)

diffs (truncated from 337 to 300 lines):

diff -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/distinfo
--- a/lang/baci/distinfo        Sat Feb 19 12:45:49 2005 +0000
+++ b/lang/baci/distinfo        Sat Feb 19 15:40:54 2005 +0000
@@ -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 -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-aa
--- a/lang/baci/patches/patch-aa        Sat Feb 19 12:45:49 2005 +0000
+++ b/lang/baci/patches/patch-aa        Sat Feb 19 15:40:54 2005 +0000
@@ -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 @@
              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 @@
                 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 @@
              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 -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-ab
--- a/lang/baci/patches/patch-ab        Sat Feb 19 12:45:49 2005 +0000
+++ b/lang/baci/patches/patch-ab        Sat Feb 19 15:40:54 2005 +0000
@@ -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 @@
     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 -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-ac
--- a/lang/baci/patches/patch-ac        Sat Feb 19 12:45:49 2005 +0000
+++ b/lang/baci/patches/patch-ac        Sat Feb 19 15:40:54 2005 +0000
@@ -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 -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-ad
--- a/lang/baci/patches/patch-ad        Sat Feb 19 12:45:49 2005 +0000
+++ b/lang/baci/patches/patch-ad        Sat Feb 19 15:40:54 2005 +0000
@@ -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 -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-ae
--- a/lang/baci/patches/patch-ae        Sat Feb 19 12:45:49 2005 +0000
+++ b/lang/baci/patches/patch-ae        Sat Feb 19 15:40:54 2005 +0000
@@ -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 -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-af
--- a/lang/baci/patches/patch-af        Sat Feb 19 12:45:49 2005 +0000
+++ b/lang/baci/patches/patch-af        Sat Feb 19 15:40:54 2005 +0000
@@ -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 @@
  
  switch_hdr  :  SWITCH  '('  expr  ')'
           { 
-@@ -1272,6 +1273,7 @@
+@@ -1272,6 +1271,7 @@ break_stmt  :   BREAK  ';'
                 }
              }
           }
diff -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-ag
--- a/lang/baci/patches/patch-ag        Sat Feb 19 12:45:49 2005 +0000
+++ b/lang/baci/patches/patch-ag        Sat Feb 19 15:40:54 2005 +0000
@@ -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 @@
        | 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 -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/baci/patches/patch-ah        Sat Feb 19 15:40:54 2005 +0000
@@ -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 -r fb29446cf2a4 -r 082bc3c226a4 lang/baci/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/baci/patches/patch-ai        Sat Feb 19 15:40:54 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index