ANSI C中的超便携,小型复杂配置文件库? [英] Ultra-portable, small complex config file library in ANSI C?

查看:160
本文介绍了ANSI C中的超便携,小型复杂配置文件库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在ANSI C中寻找一个非常便携,简约/小巧的XML /配置语言库,没有外部依赖(或很少),编译到小于100K。我需要一个适度复杂的配置文件,它必须支持Unicode。



还有一些要求:


  1. 确定使用/嵌入/静态链接到专有代码

  2. 不一定是XML。

  3. 真的,清洁代码 /否

  4. 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:

  1. OK to use/embed/statically link into proprietary code. Credit will always will be given where credit is due.
  2. Not necessarily XML.
  3. Really, clean code/no weird or inconsistent string handling.
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆