mask = mask_create( OLIGO_SIZE );
- MEM_GET( entry );
+ entry = mem_get( sizeof( entry ) );
fp = read_open( path );
uint *block;
uint block_pos;
uint block_beg;
+ uint block_size;
uint chr_pos;
mask = mask_create( OLIGO_SIZE );
- MEM_GET( entry );
+ entry = mem_get( sizeof( entry ) );
fp = read_open( path );
{
fprintf( stderr, "Writing results for: %s ... ", entry->seq_name );
- bin = 0;
- j = 0;
- block_pos = 0;
- block = mem_get_zero( sizeof( uint ) * ( entry->seq_len + OLIGO_SIZE ) );
+ bin = 0;
+ j = 0;
+ block_pos = 0;
+ block_size = sizeof( uint ) * ( entry->seq_len + OLIGO_SIZE );
+ block = mem_get_zero( block_size );
for ( i = 0; entry->seq[ i ]; i++ )
{
if ( block_pos == 0 )
{
- MEM_ZERO( block );
+ memset( block, '\0', block_size );
block_beg = chr_pos;
{
fixedstep_put_entry( entry->seq_name, block_beg, 1, block, block_pos );
- mem_free( block );
+ mem_free( ( void * ) &block );
}
fprintf( stderr, "done.\n" );