comparison libaf/af.c @ 14569:408dfb63ff95

Make this file compile with gcc-4.0.0: It's syntacticly incorrect to use the "&" operand to take the address of a variable that is declared as "register" as a register has no address.
author gpoirier
date Sat, 22 Jan 2005 10:47:58 +0000
parents 95bb94a930a3
children 108423cf7b3f
comparison
equal deleted inserted replaced
14568:bfdec335c4d4 14569:408dfb63ff95
519 length. */ 519 length. */
520 int af_outputlen(af_stream_t* s, int len) 520 int af_outputlen(af_stream_t* s, int len)
521 { 521 {
522 int t = s->input.bps*s->input.nch; 522 int t = s->input.bps*s->input.nch;
523 af_instance_t* af=s->first; 523 af_instance_t* af=s->first;
524 register frac_t mul = {1,1}; 524 frac_t mul = {1,1};
525 // Iterate through all filters 525 // Iterate through all filters
526 do{ 526 do{
527 af_frac_mul(&mul, &af->mul); 527 af_frac_mul(&mul, &af->mul);
528 af=af->next; 528 af=af->next;
529 }while(af); 529 }while(af);
536 calculated length is <= the actual length */ 536 calculated length is <= the actual length */
537 int af_inputlen(af_stream_t* s, int len) 537 int af_inputlen(af_stream_t* s, int len)
538 { 538 {
539 int t = s->input.bps*s->input.nch; 539 int t = s->input.bps*s->input.nch;
540 af_instance_t* af=s->first; 540 af_instance_t* af=s->first;
541 register frac_t mul = {1,1}; 541 frac_t mul = {1,1};
542 // Iterate through all filters 542 // Iterate through all filters
543 do{ 543 do{
544 af_frac_mul(&mul, &af->mul); 544 af_frac_mul(&mul, &af->mul);
545 af=af->next; 545 af=af->next;
546 }while(af); 546 }while(af);
560 { 560 {
561 int t = s->input.bps*s->input.nch; 561 int t = s->input.bps*s->input.nch;
562 int in = 0; 562 int in = 0;
563 int out = 0; 563 int out = 0;
564 af_instance_t* af=s->first; 564 af_instance_t* af=s->first;
565 register frac_t mul = {1,1}; 565 frac_t mul = {1,1};
566 // Iterate through all filters and calculate total multiplication factor 566 // Iterate through all filters and calculate total multiplication factor
567 do{ 567 do{
568 af_frac_mul(&mul, &af->mul); 568 af_frac_mul(&mul, &af->mul);
569 af=af->next; 569 af=af->next;
570 }while(af); 570 }while(af);