11#include "ruby_ntheory.h"
22
3- VALUE cfunction_onearg (void (* cwfunc_ptr )(basic_struct * , const basic_struct * ), VALUE operand1 ) {
3+ VALUE cntheory_onearg (void (* cwfunc_ptr )(basic_struct * , const basic_struct * ), VALUE operand1 ) {
44 basic_struct * cresult ;
55 VALUE result ;
66
@@ -16,7 +16,7 @@ VALUE cfunction_onearg(void (*cwfunc_ptr)(basic_struct*, const basic_struct*), V
1616 return result ;
1717}
1818
19- VALUE cfunction_twoarg (void (* cwfunc_ptr )(basic_struct * , const basic_struct * , const basic_struct * ), VALUE operand1 , VALUE operand2 ) {
19+ VALUE cntheory_twoarg (void (* cwfunc_ptr )(basic_struct * , const basic_struct * , const basic_struct * ), VALUE operand1 , VALUE operand2 ) {
2020 basic_struct * cresult ;
2121 VALUE result ;
2222
@@ -37,22 +37,22 @@ VALUE cfunction_twoarg(void (*cwfunc_ptr)(basic_struct*, const basic_struct*, co
3737 return result ;
3838}
3939
40- VALUE cfunction_nextprime (VALUE self , VALUE operand1 ) {
41- return cfunction_onearg ( nthoery_gcd , operand1 );
40+ VALUE cntheory_nextprime (VALUE self , VALUE operand1 ) {
41+ return cntheory_onearg ( ntheory_nextprime , operand1 );
4242}
4343
44- VALUE cfunction_gcd (VALUE self , VALUE operand1 , VALUE operand2 ) {
45- return cfunction_twoarg (ntheory_gcd , operand1 , operand2 );
44+ VALUE cntheory_gcd (VALUE self , VALUE operand1 , VALUE operand2 ) {
45+ return cntheory_twoarg (ntheory_gcd , operand1 , operand2 );
4646}
4747
48- VALUE cfunction_lcm (VALUE self , VALUE operand1 , VALUE operand2 ) {
49- return cfunction_twoarg (ntheory_lcm , operand1 , operand2 );
48+ VALUE cntheory_lcm (VALUE self , VALUE operand1 , VALUE operand2 ) {
49+ return cntheory_twoarg (ntheory_lcm , operand1 , operand2 );
5050}
5151
52- VALUE cfunction_mod (VALUE self , VALUE operand1 , VALUE operand2 ) {
53- return cfunction_twoarg (ntheory_mod , operand1 , operand2 );
52+ VALUE cntheory_mod (VALUE self , VALUE operand1 , VALUE operand2 ) {
53+ return cntheory_twoarg (ntheory_mod , operand1 , operand2 );
5454}
5555
56- VALUE cfunction_quotient (VALUE self , VALUE operand1 , VALUE operand2 ) {
57- return cfunction_twoarg (ntheory_quotient , operand1 , operand2 );
56+ VALUE cntheory_quotient (VALUE self , VALUE operand1 , VALUE operand2 ) {
57+ return cntheory_twoarg (ntheory_quotient , operand1 , operand2 );
5858}
0 commit comments