We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
创建了一个名为 libabc: 共享库骨架 的项目作者:伦纳特·珀特林:
http://0pointer.de/blog/projects/libabc.html
There is a project called libabc: shared library skeleton created by Lennart Poettering:
http://0pointer.de/blog/projects/libabc.html
以下是我经常提出的一些准则。我不完全确定它们会有多大帮助:
http://en.wikipedia.org/wiki/ Indent_style
http://www.python.org/dev/peps/pep -0007/
否则,我只是尝试匹配我所看到的。查看上面的样式指南应该可以让您很好地了解在代码中要寻找并尝试匹配的一致性。
编辑:
我应该澄清一下,上述指南并非特定于 GNU,但可能会帮助您找到一致性,例如命名方案或制表符/间距指南。
The following are some guidelines that I regularly bring up. I'm not entirely sure how helpful they'll be:
http://en.wikipedia.org/wiki/Indent_style
http://www.python.org/dev/peps/pep-0007/
Otherwise, I just try to match what I see. Looking at the above style guides should give you a good indication of what consistencies to look for and attempt to match in your code.
Edit:
I should clarify, the above guides are not specific to GNU, but might help you find consistencies such as naming schemes or tab/spacing guides.
我通读了 GNU 手册,找到了一个简短的示例,我认为它可以让您有一个良好的开端:
直接来自手册:
I read through the GNU manual and found a short example that I think would get you to a good start:
Straight from the manual: