On Wed, May 30, 2018 at 12:26:40PM +0200, Martin Ågren wrote:
> >>> So perhaps:
> >>>
> >>> void report_lines(FILE *out,
> >>> const char *color, const char *color_reset,
> >>> const char *prefix, const char *msg);
> >>>
> >>> or something?
> >>
> >> Sounds
On 30 May 2018 at 08:00, Junio C Hamano wrote:
> Junio C Hamano writes:
>
>> Jeff King writes:
>>
>>> But most importantly, it means we could eventually colorize errors, too,
>>> where we are not allowed to allocate.
>>>
>>> So perhaps:
>>>
>>> void report_lines(FILE *out,
>>>
Junio C Hamano writes:
> Jeff King writes:
>
>> But most importantly, it means we could eventually colorize errors, too,
>> where we are not allowed to allocate.
>>
>> So perhaps:
>>
>> void report_lines(FILE *out,
>> const char *color, const char *color_reset,
>>
Jeff King writes:
> But most importantly, it means we could eventually colorize errors, too,
> where we are not allowed to allocate.
>
> So perhaps:
>
> void report_lines(FILE *out,
> const char *color, const char *color_reset,
> const char *prefix, const
On Fri, May 25, 2018 at 11:00:53PM +0200, Martin Ågren wrote:
> +/*
> + * Write the message to the file, prefixing and suffixing
> + * each line with `prefix` resp. `suffix`.
> + */
> +void prefix_suffix_lines(FILE *f, const char *prefix,
> + const char *message, const char
On Mon, May 28, 2018 at 08:40:16PM +0200, Duy Nguyen wrote:
> On Fri, May 25, 2018 at 11:00 PM, Martin Ågren wrote:
> > advice.c contains a useful code snippet which takes a multi-line string
> > and prints the lines, prefixing and suffixing each line with two
> > constant strings. This was
On Fri, May 25, 2018 at 11:00 PM, Martin Ågren wrote:
> advice.c contains a useful code snippet which takes a multi-line string
> and prints the lines, prefixing and suffixing each line with two
> constant strings. This was originally added in 23cb5bf3b3 (i18n of
> multi-line advice messages,
Martin Ågren writes:
> I'm open for suggestions on the naming of `prefix_suffix_lines()`...
Is there a verb that means "have/place the thing in between two
other things" or "Bring two things and place them on each side of
the third thing" in a more concise way? Wrap?
8 matches
Mail list logo