Use the original function name in C code wrappers

Using "sym:name" in the wrapping code is wrong, it is different from "name" if
the function has been renamed and we need to call the original C function, not
whichever name it is exported under.
This commit is contained in:
Vadim Zeitlin 2016-04-23 01:20:28 +02:00
commit d3412499bb

View file

@ -694,7 +694,7 @@ ready:
Printv(wrapper->code, return_type, " result;\n", NIL);
Printf(wrapper->code, "result = ");
}
Printv(wrapper->code, name, "(", arg_names, ");\n", NIL);
Printv(wrapper->code, Getattr(n, "name"), "(", arg_names, ");\n", NIL);
Append(wrapper->code, append_feature(n));
if (!is_void_return)
Printf(wrapper->code, "return result;\n");