I think the intent is that the final source file will be used to generate the autodoc, so in this case, module.c. That's in case there are transformations occurring during precompilation.
Bill
On Nov 29, 2016, at 8:24 AM, Pontus Östlund pontus@roxen.com wrote:
29 nov. 2016 kl. 13:56 skrev Pontus Östlund pontus@roxen.com:
Another thing I noticed is that when you run pike -x module module_modref in a local CMOD module the cmod doesn't get extracted. The .so file (and .pmod) gets copied to plib/module but not the .cmod file. Then in extract_autodoc.pike is this line:
foreach(filter(get_dir(srcdir), has_suffix, ".cmod"), string fn)
But there will never be any .cmod file in there.
But this might be due to a misconfiguration from my side in module?
Ok, after som searching I found you need the AUTODOC_SRC_IN directive in Makefile.in. But "cmods" isn't allowed there apparently:
if( !(< "c", "cc", "cpp", "m", /* "cmod", */ "pike", "pmod", >)[suffix] ) error("Unknown filetype %O.\n", suffix);
Regards
Pontus Östlund Developer • Roxen AB +46 70-662 81 69
www.roxen.com | twitter.com/roxen