@@ -234,9 +234,12 @@ fn sendMTFValues(s: &mut EState) {
234234 let mtfv = s. arr1 . mtfv ( ) ;
235235
236236 if s. verbosity >= 3 {
237- eprintln ! (
237+ #[ cfg( feature = "std" ) ]
238+ std:: eprintln!(
238239 " {} in block, {} after MTF & 1-2 coding, {}+2 syms in use" ,
239- s. nblock, s. nMTF, s. nInUse,
240+ s. nblock,
241+ s. nMTF,
242+ s. nInUse,
240243 ) ;
241244 }
242245
@@ -283,7 +286,8 @@ fn sendMTFValues(s: &mut EState) {
283286 }
284287
285288 if s. verbosity >= 3 {
286- eprintln ! (
289+ #[ cfg( feature = "std" ) ]
290+ std:: eprintln!(
287291 " initial group {}, [{} .. {}], has {} syms ({:4.1}%)" ,
288292 nPart,
289293 gs,
@@ -444,15 +448,18 @@ fn sendMTFValues(s: &mut EState) {
444448 }
445449
446450 if s. verbosity >= 3 {
447- eprint ! (
451+ #[ cfg( feature = "std" ) ]
452+ std:: eprint!(
448453 " pass {}: size is {}, grp uses are " ,
449454 iter + 1 ,
450455 totc / 8 ,
451456 ) ;
452457 for t in 0 ..nGroups {
453- eprint ! ( "{} " , fave[ t] , ) ;
458+ #[ cfg( feature = "std" ) ]
459+ std:: eprint!( "{} " , fave[ t] , ) ;
454460 }
455- eprintln ! ( ) ;
461+ #[ cfg( feature = "std" ) ]
462+ std:: eprintln!( ) ;
456463 }
457464
458465 /*--
@@ -532,7 +539,8 @@ fn sendMTFValues(s: &mut EState) {
532539 }
533540 }
534541 if s. verbosity >= 3 {
535- eprint ! ( " bytes: mapping {}, " , writer. num_z as i32 - nBytes, ) ;
542+ #[ cfg( feature = "std" ) ]
543+ std:: eprint!( " bytes: mapping {}, " , writer. num_z as i32 - nBytes, ) ;
536544 }
537545 }
538546
@@ -548,7 +556,8 @@ fn sendMTFValues(s: &mut EState) {
548556 writer. write ( 1 , 0 ) ;
549557 }
550558 if s. verbosity >= 3 {
551- eprint ! ( "selectors {}, " , writer. num_z as i32 - nBytes) ;
559+ #[ cfg( feature = "std" ) ]
560+ std:: eprint!( "selectors {}, " , writer. num_z as i32 - nBytes) ;
552561 }
553562
554563 /*--- Now the coding tables. ---*/
@@ -570,7 +579,8 @@ fn sendMTFValues(s: &mut EState) {
570579 }
571580 }
572581 if s. verbosity >= 3 {
573- eprint ! ( "code lengths {}, " , writer. num_z as i32 - nBytes) ;
582+ #[ cfg( feature = "std" ) ]
583+ std:: eprint!( "code lengths {}, " , writer. num_z as i32 - nBytes) ;
574584 }
575585
576586 /*--- And finally, the block data proper ---*/
@@ -631,7 +641,8 @@ fn sendMTFValues(s: &mut EState) {
631641 assert_h ! ( selCtr == nSelectors, 3007 ) ;
632642
633643 if s. verbosity >= 3 {
634- eprintln ! ( "codes {}" , writer. num_z as i32 - nBytes) ;
644+ #[ cfg( feature = "std" ) ]
645+ std:: eprintln!( "codes {}" , writer. num_z as i32 - nBytes) ;
635646 }
636647}
637648
@@ -645,9 +656,13 @@ pub fn BZ2_compressBlock(s: &mut EState, is_last_block: bool) {
645656 }
646657
647658 if s. verbosity >= 2 {
648- eprintln ! (
659+ #[ cfg( feature = "std" ) ]
660+ std:: eprintln!(
649661 " block {}: crc = 0x{:08x}, combined CRC = 0x{:08x}, size = {}" ,
650- s. blockNo, s. blockCRC, s. combinedCRC, s. nblock,
662+ s. blockNo,
663+ s. blockCRC,
664+ s. combinedCRC,
665+ s. nblock,
651666 ) ;
652667 }
653668
@@ -713,7 +728,8 @@ pub fn BZ2_compressBlock(s: &mut EState, is_last_block: bool) {
713728 writer. write_u32 ( s. combinedCRC ) ;
714729
715730 if s. verbosity >= 2 {
716- eprint ! ( " final combined CRC = 0x{:08x}\n " , s. combinedCRC) ;
731+ #[ cfg( feature = "std" ) ]
732+ std:: eprint!( " final combined CRC = 0x{:08x}\n " , s. combinedCRC) ;
717733 }
718734
719735 writer. finish ( ) ;
0 commit comments