Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/5] diff: parse separate options like -S foo

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:49:15

Jakub Narebski [off-list ref] writes:
Matthieu Moy [off-list ref] writes:
quoted
+static inline int short_opt(char opt, const char **argv,
+			    const char **optarg)
[...]
quoted
+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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help