projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a pretty nearly working gtkconsole...
[spider.git]
/
perl
/
Chain.pm
diff --git
a/perl/Chain.pm
b/perl/Chain.pm
index 8afd62f05b6a25ad146b69aaca08f4518d2ca582..60266c755716d84d3aa625c90ad2b8a25e84b671 100644
(file)
--- a/
perl/Chain.pm
+++ b/
perl/Chain.pm
@@
-2,16
+2,20
@@
package Chain;
use strict;
use Carp;
use strict;
use Carp;
-
-use vars qw($VERSION $docheck);
-$VERSION = do { my @r = (q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r};
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
use constant NEXT => 0;
use constant PREV => 1;
use constant OBJ => 2;
use constant NEXT => 0;
use constant PREV => 1;
use constant OBJ => 2;
-$docheck = 1;
+use vars qw($docheck);
+
+$docheck = 0;
sub _check
{
sub _check
{
@@
-152,6
+156,13
@@
sub count
return $count;
}
return $count;
}
+sub close
+{
+ my $base = shift;
+ $base->flush;
+ $base->[PREV] = $base->[NEXT] = undef;
+}
+
1;
__END__
# Below is the stub of documentation for your module. You better edit it!
1;
__END__
# Below is the stub of documentation for your module. You better edit it!