reduce the amount of POSIX loaded.
[spider.git] / perl / Minimuf.pm
index d9b9e06fefa252ba5cf46c7971f9cf565ff65bd1..7f309979d7c30e8b89ae52249f6a50026933be26 100644 (file)
@@ -36,7 +36,6 @@
 
 package Minimuf;
 
-use POSIX;
 
 require Exporter;
 @ISA = qw(Exporter);
@@ -45,6 +44,16 @@ require Exporter;
             $noise);
 
 use strict;
+
+use DXDebug;
+use POSIX qw(:math_h);
+
+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 vars qw($pi $d2r $r2d $halfpi $pi2 $VOFL $R $hE $hF $GAMMA $LN10
                    $MINBETA $BOLTZ $NTEMP $DELTAF $MPATH $GLOSS $SLOSS
             $noise);
@@ -473,7 +482,7 @@ sub ds
        $s = 0 if $s < 0;
     my $plus = (($l / 6) >= $s + 0.5) ? '+' : ' ';
        
-    return "$c2\S$s$plus";
+    return "$c2". "S$s$plus";
 }              
 
 1;