-
-
04 Jun 2022 14:28:43 UTC
- Distribution: Tree-RB-XS
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (366 / 2 / 0)
- Kwalitee
Bus factor: 1- 73.76% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (174.44KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
++ed by:1 non-PAUSE userSYNOPSIS
RBGen->new(%options) ->write_api('foo.h') ->write_impl('foo.c') ->write_wrapper( 'sometype-rb.h', obj_t => 'SomeType', node => 'NodeFieldName', # struct SomeType { rbtree_node_t NodeFieldName; } cmp => 'CompareFunc' # int CompareFunc(SomeType *a, SomeType *b); ) ->write_wrapper( 'sometype-rb.h', obj_t => SomeType', node => 'NodeField2', key_t => 'const char*', key => 'KeyField', cmp => 'strcmp' );
DESCRIPTION
This module writes customizable Red/Black Tree algorithms as C source code. While these sorts of things could be done with C header macros, I've decided that is really a massive waste of time and wrote it as a perl script instead.
Module Install Instructions
To install Tree::RB::XS, copy and paste the appropriate command in to your terminal.
cpanm Tree::RB::XS
perl -MCPAN -e shell install Tree::RB::XS
For more information on module installation, please visit the detailed CPAN module installation guide.