Diff for /loncom/homework/lonmaxima.pm between versions 1.20 and 1.22

version 1.20, 2007/08/13 10:21:46 version 1.22, 2008/06/10 13:31:38
Line 63  sub blacklisted { Line 63  sub blacklisted {
     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','read','inchar',     'stin','block','system','concat','read','inchar',
    'outchar','ttyoff','with_stdout','writefile') {     'outchar','ttyoff','with_stdout','writefile',
      'reset') {
  if ($cmd=~/$forbidden/s) { return 1; }   if ($cmd=~/$forbidden/s) { return 1; }
     }       } 
     return 0;      return 0;
Line 138  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;
 }  }

Removed from v.1.20  
changed lines
  Added in v.1.22


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>