Skip to content

Commit

Permalink
export
Browse files Browse the repository at this point in the history
  • Loading branch information
clkao committed Nov 26, 2010
1 parent b046865 commit 2ae724b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lib/Finance/FITF.pm
Expand Up @@ -6,6 +6,15 @@ our $VERSION = '0.29';
use Finance::FITF::Writer;
use Class::Accessor "antlers";

use Sub::Exporter -setup => {
groups => {
default => [ qw(FITF_TICK_NONE FITF_TICK_USHORT FITF_TICK_ULONG
FITF_BAR_USHORT FITF_BAR_ULONG)],
},
exports => [qw(FITF_TICK_NONE FITF_TICK_USHORT FITF_TICK_ULONG
FITF_BAR_USHORT FITF_BAR_ULONG)],
};

use constant FITF_TICK_FMT => 0x000f;
use constant FITF_TICK_NONE => 0x0000;
use constant FITF_TICK_USHORT => 0x0001;
Expand Down
2 changes: 1 addition & 1 deletion t/01basic.t
Expand Up @@ -12,7 +12,7 @@ my $writer = Finance::FITF->new_writer(
date => '20101119',
time_zone => 'Asia/Taipei',
bar_seconds => 10,
# format => 0x03, #FITF_TICK_USHORT | FITF_BAR_USHORT
format => FITF_TICK_USHORT | FITF_BAR_USHORT,
},
);

Expand Down

0 comments on commit 2ae724b

Please sign in to comment.