| 1 | package Tree::Node; | ||
| 2 | |||
| 3 | use 5.006; | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | our $VERSION = '0.08'; | ||
| 8 | |||
| 9 | require XSLoader; | ||
| 10 | XSLoader::load('Tree::Node', $VERSION); | ||
| 11 | |||
| 12 | require Exporter; | ||
| 13 | |||
| 14 | our @ISA = qw( Exporter ); | ||
| 15 | |||
| 16 | our %EXPORT_TAGS = ( | ||
| 17 | 'p_node' => [qw( | ||
| 18 | p_new p_destroy p_allocated | ||
| 19 | p_child_count p_get_child p_get_child_or_null p_set_child | ||
| 20 | p_set_key p_force_set_key p_get_key p_key_cmp | ||
| 21 | p_set_value p_get_value | ||
| 22 | )], | ||
| 23 | 'utility' => [qw( | ||
| 24 | _allocated_by_child_count MAX_LEVEL | ||
| 25 | )], | ||
| 26 | ); | ||
| 27 | $EXPORT_TAGS{'all'} = [ | ||
| 28 | @{ $EXPORT_TAGS{'p_node'} }, | ||
| 29 | @{ $EXPORT_TAGS{'utility'} } | ||
| 30 | ]; | ||
| 31 | our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); | ||
| 32 | our @EXPORT = ( ); | ||
| 33 | |||
| 34 | |||
| 35 | 1; | ||
| 36 | __END__ |