I've inherited about 1000 files that were written in C++ which I had to grudgingly convert to C. In one of the header files, a function is declared as
errnum DSPAPI aaCxSVD(complexnum *input_matrix,[...],intnum jobz=0);
which yields the following compilation error in XCode:
error: expected ';', ',' or ')' before '=' token
if I simply do intnum 0
, I get:
error: expected ';', ',' or ')' before numeric constant
if I remove intnum, I get:
error: expected declaration specifiers or '...' before numeric constant
In the C file itself, different results get returned if jobz = 0 or not. Currently, it's the only header that ever mentions that function.
My question is thus: is there any legal way of doing this? is it even necessary?