我一直在寻找在旅途中运行时runtime.c文件,看到下面的函数定义:在</p> <pre><code>/usr/local/go/src/pkg/runtime </code></pre> <p>的语法和语义转到编译器运行
void
runtime∕pprof·runtime_cyclesPerSecond(int64 res)
{...}
和
int64
runtime·tickspersecond(void)
{...}
并且有很多声明像
void runtime·hashinit(void);
in runtime.h。
我之前没有看到过这个C语法(特别是那个斜杠似乎很奇怪)。 这是标准C还是一些plan9方言的一部分?
太晚了,但http://stackoverflow.com/questions/13475908/slashes-and-dots-in-function-names-and-prototypes – 2013-04-28 14:33:29