Junio C Hamano writes:
> I forgot to mention it, but the above was done also to make it
> "possible but not mandatory" to pay extra allocation penalty. The
> caller can choose to parse the string into an int, for example,
> without extra allocation. Only the ones that want a string value
> and
Jeff King writes:
> I would think the extra memory allocation would dwarf it, anyway.
>> ...
>> and a new caller can do something like
>>
>> agent = server_supports("agent");
>> if (!agent || !agent[5])
>> ... no agent ...
>> else {
>> int span = strcs
On Fri, Aug 10, 2012 at 01:01:11PM -0700, Junio C Hamano wrote:
> Jeff King writes:
>
> > +/*
> > + * Parse features of the form "feature=value". Returns NULL if the feature
> > + * does not exist, the empty string if it exists but does not have an "=",
> > or
> > + * the content to the right
Jeff King writes:
> +/*
> + * Parse features of the form "feature=value". Returns NULL if the feature
> + * does not exist, the empty string if it exists but does not have an "=", or
> + * the content to the right of the "=" until the first space (or end of
> + * string). The cannot contain lit
On Fri, Aug 10, 2012 at 3:58 AM, Jeff King wrote:
> + * Parse features of the form "feature=value". Returns NULL if the feature
> + * does not exist, the empty string if it exists but does not have an "=", or
> + * the content to the right of the "=" until the first space (or end of
> + * string)
5 matches
Mail list logo