/[pub]/test/html-webhacc/cc.cgi
Suika

Diff of /test/html-webhacc/cc.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.39 by wakaba, Sun Mar 16 01:30:56 2008 UTC revision 1.40 by wakaba, Sun Mar 16 07:08:34 2008 UTC
# Line 1121  sub get_error_label ($$) { Line 1121  sub get_error_label ($$) {
1121    
1122    my $r = '';    my $r = '';
1123    
1124    if (defined $err->{line}) {    if (defined $err->{token} and defined $err->{token}->{line}) {
1125        if ($err->{token}->{column} > 0) {
1126          $r = qq[<a href="#$input->{id_prefix}line-$err->{token}->{line}">Line $err->{token}->{line}</a> column $err->{token}->{column}];
1127        } else {
1128          $err->{token}->{line} = $err->{token}->{line} - 1 || 1;
1129          $r = qq[<a href="#$input->{id_prefix}line-$err->{token}->{line}">Line $err->{token}->{line}</a>];
1130        }
1131      } elsif (defined $err->{line}) {
1132      if ($err->{column} > 0) {      if ($err->{column} > 0) {
1133        $r = qq[<a href="#$input->{id_prefix}line-$err->{line}">Line $err->{line}</a> column $err->{column}];        $r = qq[<a href="#$input->{id_prefix}line-$err->{line}">Line $err->{line}</a> column $err->{column}];
1134      } else {      } else {

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24