version 1.17, 2007/07/11 18:50:33
|
version 1.22, 2008/06/10 13:31:38
|
Line 62 sub blacklisted {
|
Line 62 sub blacklisted {
|
my ($cmd)=@_; |
my ($cmd)=@_; |
foreach my $forbidden ('save','load','plot','lisp','includ','compil', |
foreach my $forbidden ('save','load','plot','lisp','includ','compil', |
'file','batch','stringout','translat','stout', |
'file','batch','stringout','translat','stout', |
'stin','block','system','concat') { |
'stin','block','system','concat','read','inchar', |
|
'outchar','ttyoff','with_stdout','writefile', |
|
'reset') { |
if ($cmd=~/$forbidden/s) { return 1; } |
if ($cmd=~/$forbidden/s) { return 1; } |
} |
} |
return 0; |
return 0; |
Line 137 sub maxima_check {
|
Line 139 sub maxima_check {
|
# integer to string mappings come from capaParser.h |
# integer to string mappings come from capaParser.h |
# 1 maps to 'EXACT_ANS' |
# 1 maps to 'EXACT_ANS' |
if ($reply eq 'true') { return 1; } |
if ($reply eq 'true') { return 1; } |
|
# 11 maps to 'BAD_FORMULA' |
|
if ($reply=~/^Error\:/) { return 11; } |
# 7 maps to 'INCORRECT' |
# 7 maps to 'INCORRECT' |
return 7; |
return 7; |
} |
} |