ANSI C中的超便携,小型复杂配置文件库? [英] Ultra-portable, small complex config file library in ANSI C?
问题描述
还有一些要求:
- 确定使用/嵌入/静态链接到专有代码。
- 不一定是XML。
- 真的,清洁代码 /否
- UTF-8 。
这与某个问题类似:嵌入式C项目有一个很好的小型XML解析器吗?
我能够调整编译标志遵循C语言的XML解析器库,并在我的Ubuntu机器上减少了超过50%的大小。 Mini-XML是唯一接近您所要求的内容:
I'm looking for a very portable, minimalistic/small XML/configuration language library in ANSI C with no external dependencies (or very few), compiling down to less than 100K. I need it for a moderately complex configuration file, and it must support Unicode.
Some more requirements:
- OK to use/embed/statically link into proprietary code. Credit will always will be given where credit is due.
- Not necessarily XML.
- Really, clean code/no weird or inconsistent string handling.
- UTF-8.
Thank you fellas.
This is somehow similar to this question: Is there a good tiny XML parser for an embedded C project?
I was able to tweak the compilation flags of the following XML parser libraries for C, and cut down more than 50% of their size on my Ubuntu machine. Mini-XML is the only one close to what you requested:
这篇关于ANSI C中的超便携,小型复杂配置文件库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!