weixin_39822993 2020-11-30 11:25
浏览 0

getopt_long for Windows

Originally reported on Google Code with ID 52


In issue #20 I added support for getopt short options for Windows. In order to get the
tests running under Windows I need support for the longopt options too.

I've found an implementation of getopt_long which seems suit our needs in PostgreSQL:

http://www.google.com/codesearch#NNmaNPDfY7U/src/port/getopt_long.c

I believe it has a compatible license:

http://wiki.postgresql.org/wiki/FAQ#What_is_the_license_of_PostgreSQL.3F

I've attached a patch which makes use of this implementation. Provided that there are
no problems with the PostgreSQL license, would it be ok to move the Windows implementation
over to this version?

Cheers,
Paul

Reported by paul.holden on 2011-07-16 14:31:13

该提问来源于开源项目:include-what-you-use/include-what-you-use

  • 写回答

19条回答 默认 最新

  • weixin_39822993 2020-11-30 11:25
    关注
    
    I can ask our lawyer-folk if the license is compatible, but wouldn't it be easier to
    just change the tests to always use the short form of the flags?  I have no problem
    with that.  Just throw in a comment saying why.
    

    Reported by csilvers on 2011-07-18 23:43:25

    评论

报告相同问题?