代码样版
来自个人维基
void main() { printf("hello world \n"); //work gogogo!!! }
typedef struct hw_module_methods_t { //硬件模块方法列表的定义,这里只定义了一个open函数 /** Open a specific device */ int (*open)(const struct hw_module_t* module, const char* id, struct hw_device_t** device); } hw_module_methods_t;
typedef struct hw_module_methods_t { //硬件模块方法列表的定义,这里只定义了一个open函数 /** Open a specific device */ int (*open)(const struct hw_module_t* module, const char* id, struct hw_device_t** device); } hw_module_methods_t;
- // This is line 4.
- foo();
- bar();
- baz();
- boo();
- far();
- faz();
function $(id) { return document.getElementById(id); } function addLoadEvent(func){ var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function(){ oldonload(); func(); } }