From: H. P. A. <hp...@zy...> - 2014-01-08 17:40:43
|
On 01/08/2014 07:17 AM, Cyrill Gorcunov wrote: > On Mon, Jan 06, 2014 at 03:01:44PM -0700, Andy Willis wrote: >> Long patch description: NASM and yasm are in many respects compatible >> but yasm uses --v instead of -v for version. As often --v is used for >> version I end up using --v initially in NASM. This patch allows me to >> compile Mozilla apps which use yasm with NASM by merely renaming NASM to >> yasm so that the build environment does not have to be updated (Mozilla >> would not accept changes to allow use of NASM). The patch is trivial >> and as such should not affect any other use case that I can see. > --- > > I don't see a reason why can't we. I've udated patch a bit though. Peter? Presumably we should handle both --v and --version, but I'd prefer if we actually implemented the second '-' as a separate case clause and did whole string comparisons, for future use. Even better might be to adopt getopt_long(), I think I have a BSD-licensed implementation of getopt_long() sitting around somewhere... -hpa |