结构定义
struct list
{
struct list **next, **prev;
}
核心.c
//Global struct
struct list *threads = {&threads, &threads}; //Warnings here:
// warning: initialization from incompatible pointer type
// warning: excess elements in scalar initializer
// warning: (near initialization for 'threads')
PS:我在这个文件中没有main
函数。这必须是全球性的。