Re: [PATCH] strtoul_ui: actually report error in case of negative input
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 16, 2015, 01:17 UTC
- Message-ID
- <xmqqsi6ftb74.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <vpq4miwfa78.fsf@anie.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 7 quoted lines
> Not just the return type (which is the error status), but also the type > of the result argument indeed. It's not clear to me whether this is > intentional (09f2825 (git-grep: don't use sscanf, 2007-03-12) introduced > it, the commit message doesn't help). I first read strtoul_ui as > "strtoul with a better UI (user interface)", but maybe the name was > meant to say "a fuction that uses strtoul and returns an ui (unsigned > int)".
Just for this part. Yes, ui does not mean user interface but "we are grabbing an unsigned int and as its internal implementation we happen to use strtoul" is where the name comes from.
> I went through the thread quickly, my understanding is that there were > more work to do, but no objection to merging.
Yes, there were some in-flight topics that interfered with it and the topic quickly went stale without getting rerolled. There wasn't any fundamental issue with the topic itself.