mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
. Update to 0.3.1.
. Unbreak by adding a patch for hoc.y. Note: Cannot update to 0.3.2 due to 4.x having an older readline library.
This commit is contained in:
parent
6bc24e23d4
commit
414d40e1c2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61639
@ -7,7 +7,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= rascal
|
||||
PORTVERSION= 0.3.0
|
||||
PORTVERSION= 0.3.1
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
@ -1 +1 @@
|
||||
MD5 (rascal-0.3.0.tar.gz) = 31cc46c064fe938887c4e43419425524
|
||||
MD5 (rascal-0.3.1.tar.gz) = 569ff6269f68e1bf29bfe5a3c28ef1ee
|
||||
|
38
math/rascal/files/patch-hoc.y
Normal file
38
math/rascal/files/patch-hoc.y
Normal file
@ -0,0 +1,38 @@
|
||||
--- hoc.y.orig Thu Jun 20 10:22:54 2002
|
||||
+++ hoc.y Thu Jun 20 10:35:33 2002
|
||||
@@ -36,6 +36,10 @@
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <stdio.h>
|
||||
+extern "C" {
|
||||
+#include <getopt.h>
|
||||
+}
|
||||
int precis=8;
|
||||
|
||||
void * set_string_input(char *);
|
||||
@@ -197,17 +201,17 @@
|
||||
;
|
||||
PARSERexpr:
|
||||
PARSERexpr PARSERwhite { $$ = $1; }
|
||||
- | PARSERfunction { $$ = new value($1) }
|
||||
- | PARSERfunction2 { $$ = new value($1) }
|
||||
- | PARSERat PARSERprocedure { $$ = new value($2) }
|
||||
- | PARSERuserfunction { $$ = new value($1) }
|
||||
- | PARSERat PARSERvariable { $$ = new value($2) }
|
||||
+ | PARSERfunction { $$ = new value($1); }
|
||||
+ | PARSERfunction2 { $$ = new value($1); }
|
||||
+ | PARSERat PARSERprocedure { $$ = new value($2); }
|
||||
+ | PARSERuserfunction { $$ = new value($1); }
|
||||
+ | PARSERat PARSERvariable { $$ = new value($2); }
|
||||
| PARSERlbracket PARSERexprlist PARSERrbracket { $$=new value(bracket(cell(($2)->asMATRIX(),1),cell(($2)->asMATRIX(),2))); delete $2; }
|
||||
| PARSERwhite PARSERexpr %prec PARSERbecomes { $$ = $2; }
|
||||
| PARSERnumber { $$ = $1; }
|
||||
| PARSERvariable { $$ = new value($1->var); }
|
||||
- | PARSERvariable PARSERplusplus { $1->var=$1->var+1; $$ = new value($1->var) }
|
||||
- | PARSERvariable PARSERminusminus { $1->var=$1->var-1; $$ = new value($1->var) }
|
||||
+ | PARSERvariable PARSERplusplus { $1->var=$1->var+1; $$ = new value($1->var); }
|
||||
+ | PARSERvariable PARSERminusminus { $1->var=$1->var-1; $$ = new value($1->var); }
|
||||
| PARSERvariable PARSERbecomes PARSERexpr { $$ = $3; $1->var=*($3);}
|
||||
| PARSERprocedure { $$=new value( (*($1->ivalue.procptr))() ); }
|
||||
| PARSERexpr PARSERlbracket PARSERmatrix PARSERrbracket
|
Loading…
Reference in New Issue
Block a user