Ai
1 Star 0 Fork 1

defeng2020/wdf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
quickc 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
defeng2020 提交于 2022-03-31 16:58 +08:00 . nn
"calloc func": {
"prefix": "calloc",
"body": [
"${1:int} *${2:it} = (${1:int}*)calloc(1, sizeof(${1:int}));\nif (${2:it} == 0) {\n\treturn$0;\n}"
],
"description": "calloc"
},
"Typedef Struct":{
"prefix": "typedef struct",
"body": "typedef struct {\n\t$0\n} ${1:MyCustomType};"
},
"Define i Loop":{
"prefix": "ifor",
"body": "int ${1:i};\nfor (${1:i} = 0; ${1:i} < ${2:count}; ${1:i}++) {\n\t$0\n}"
},
"print func": {
"prefix": "print",
"body": [
"printf(\"${2:it}=${1:%d}\\n\", ${2:it});"
],
"description": "print"
},
"While Loop":{
"prefix": "while",
"body": "while ($1) {\n\t$0\n}"
},
"If Condition":{
"prefix": "if",
"body": "if ($0) {\n\t\n}"
},
"Else":{
"prefix": "else",
"body": "else {\n\t$0\n}"
},
"else if":{
"prefix": "else if",
"body": "else if ($0) {\n\t\n}"
},
"Switch Statement":{
"prefix": "switch",
"body": "switch ($0) {\ncase :\n\t\n\tbreak;\ndefault :\n\t\n\tbreak;\n}"
},
"case break":{
"prefix": "case",
"body": "case $0:\n\t\n\tbreak;\n"
},
"any function":{
"prefix": "func",
"body": "${1:int} ${2:name}($3)\n{\n\t$5\n\treturn ${4:0};\n}"
},
"utnode":{
"prefix": "hstruct",
"body": "typedef struct {\n\t$0\n UT_hash_handle hh;\n} ${1:type};"
},
"hiter":{
"prefix": "hiter",
"body": "${1:Hit} *it;\n${1:Hit} *tmp;\nHASH_ITER(hh, ${2:g_htbl}, it, tmp) {\n\t$0\n}"
},
"liter":{
"prefix": "liter",
"body": "${1:Lit} *it;\n${1:Lit} *tmp;\nLIST_FOR_EACH_ENTRY_SAFE(it, tmp, ${2:list}, ${1:Lit}, node) {\n\t$0\n}"
},
"return":{
"prefix": "ret",
"body": "return ${1:0}$0;"
},
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/defeng2020/wdf.git
git@gitee.com:defeng2020/wdf.git
defeng2020
wdf
wdf
master

搜索帮助