extern C linkage on repl