44void sympify (VALUE operand2 , basic_struct * cbasic_operand2 ) {
55
66 basic_struct * temp ;
7- VALUE new_operand2 , num , den ;
8- VALUE real , imag ;
7+ VALUE new_operand2 ;
98 VALUE a , b ;
109 double f ;
1110 char * c ;
@@ -22,15 +21,15 @@ void sympify(VALUE operand2, basic_struct *cbasic_operand2) {
2221 break ;
2322
2423 case T_RATIONAL :
25- num = rb_funcall (operand2 , rb_intern ("numerator" ), 0 , NULL );
26- den = rb_funcall (operand2 , rb_intern ("denominator" ), 0 , NULL );
24+ a = rb_funcall (operand2 , rb_intern ("numerator" ), 0 , NULL );
25+ b = rb_funcall (operand2 , rb_intern ("denominator" ), 0 , NULL );
2726
2827 basic num_basic , den_basic ;
2928 basic_new_stack (num_basic );
3029 basic_new_stack (den_basic );
3130
32- get_symintfromval (num , num_basic );
33- get_symintfromval (den , den_basic );
31+ get_symintfromval (a , num_basic );
32+ get_symintfromval (b , den_basic );
3433
3534 rational_set (cbasic_operand2 , num_basic , den_basic );
3635
@@ -39,17 +38,17 @@ void sympify(VALUE operand2, basic_struct *cbasic_operand2) {
3938 break ;
4039
4140 case T_COMPLEX :
42- real = rb_funcall (operand2 , rb_intern ("real" ), 0 , NULL );
43- imag = rb_funcall (operand2 , rb_intern ("imaginary" ), 0 , NULL );
41+ a = rb_funcall (operand2 , rb_intern ("real" ), 0 , NULL );
42+ b = rb_funcall (operand2 , rb_intern ("imaginary" ), 0 , NULL );
4443
4544 basic real_basic ;
4645 basic imag_basic ;
4746
4847 basic_new_stack (real_basic );
4948 basic_new_stack (imag_basic );
5049
51- sympify (real , real_basic );
52- sympify (imag , imag_basic );
50+ sympify (a , real_basic );
51+ sympify (b , imag_basic );
5352
5453 basic_const_I (cbasic_operand2 );
5554 basic_mul (cbasic_operand2 , cbasic_operand2 , imag_basic );
0 commit comments