From: Matthieu Moy Date: Thu, 05 Aug 2010 12:24:13 GMT Subject: Re: [PATCH 1/5] diff: parse separate options like -S foo Message-ID: In-Reply-To: Jakub Narebski writes: > Matthieu Moy writes: > >> +static inline int short_opt(char opt, const char **argv, >> + const char **optarg) > [...] >> +int parse_long_opt(const char *opt, const char **argv, >> + const char **optarg) > > Just a nitpick question: why it is 'parse_long_opt' but just > 'short_opt'? I initially made *_long_opt prefixed with something (diff_ in my first version) because it's global, while short_opt is static. parse_short_opt is already taken in parse-option.c, so I'd rather avoid re-using it (it's static there, so technically, we can, but ...). -- Matthieu Moy http://www-verimag.imag.fr/~moy/