I have been experimenting with XS and run into a little problem.
There are two C functions called 'add'. One takes 2 arguments and the other takes 3 arguments:
int add(int a, int b)
int add(int a, int b, int c)
I am trying to wrap them up in XS. But I am getting a redefinition error from a C compiler if I try the following code:
add (int a, int b)
add (int a, int b, int c)
Obviously, the xsubpp does not take into account the different function signatures when it produces a C code. What should I do?