开发者

Library to merge two text files

开发者 https://www.devze.com 2023-04-12 14:12 出处:网络
I am writing C++ code generation utility (compiler) from XLS to bring design decisions right into the game code. Generated classes can be changed m开发者_StackOverflow社区anually after generation, so

I am writing C++ code generation utility (compiler) from XLS to bring design decisions right into the game code. Generated classes can be changed m开发者_StackOverflow社区anually after generation, so after following compilations generated files have to be merged with previous ones. What is the best way to merge them? Use some merging library or call external command?

Compiler written in C++, for Windows.

Thank you.


I would do the merging outside from the compiler by hand using some merge utility like svn merge (a commandline version exists here, perhaps you can automate this, but I wouldn't do this..), or BeyondCompare

Automatic merging can be very dangerous IMHO and think about what should the merger do automatically if there are conflicts?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号