Commits

Shlomi Fish committed 34f3470

Some bug fixes.

1. Convert the XSAccessor initializers to a hash reference.

2. Real class name.

Comments (0)

Files changed (2)

modules/Shlomif-Sokoban-Solver/examples/Solve.pl

 EOF
 
 {
-    my $board = S->load($board_contents);
+    my $board = Shlomif::Sokoban::Solver::Board->load($board_contents);
 
     $board->solve();
 }

modules/Shlomif-Sokoban-Solver/lib/Shlomif/Sokoban/Solver/Board.pm

 
 use Class::XSAccessor
     accessors =>
-    [map { $_ => $_ } qw/
-    height
-    width
-    _collect
-    _data
-    _dests
-    _init_state
-    _queue
-    /],
+    {
+        map { $_ => $_ }
+        qw/
+        height
+        width
+        _collect
+        _data
+        _dests
+        _init_state
+        _queue
+        /
+    },
     constructor => 'new'
     ;