From 414d40e1c21e3f473336277f84bd6436ade6541f Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 20 Jun 2002 16:44:19 +0000 Subject: . 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. --- math/rascal/Makefile | 2 +- math/rascal/distinfo | 2 +- math/rascal/files/patch-hoc.y | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 math/rascal/files/patch-hoc.y (limited to 'math/rascal') diff --git a/math/rascal/Makefile b/math/rascal/Makefile index 080962fc50f6..21b76e893c38 100644 --- a/math/rascal/Makefile +++ b/math/rascal/Makefile @@ -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} diff --git a/math/rascal/distinfo b/math/rascal/distinfo index b966acf643bc..2c2c6e457559 100644 --- a/math/rascal/distinfo +++ b/math/rascal/distinfo @@ -1 +1 @@ -MD5 (rascal-0.3.0.tar.gz) = 31cc46c064fe938887c4e43419425524 +MD5 (rascal-0.3.1.tar.gz) = 569ff6269f68e1bf29bfe5a3c28ef1ee diff --git a/math/rascal/files/patch-hoc.y b/math/rascal/files/patch-hoc.y new file mode 100644 index 000000000000..598f32de0081 --- /dev/null +++ b/math/rascal/files/patch-hoc.y @@ -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 + #include + #include ++#include ++extern "C" { ++#include ++} + 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 -- cgit v1.2.3