Re: Colored output

2019-02-10 Thread Akim Demaille
> Le 10 févr. 2019 à 23:36, Jose E. Marchesi a écrit : > > >>> If you want the combination of (B) and (III): >> >> Well, I was going for B.II, but now that you teased me with B.III, I can't >> wait for it! > >You find the first alpha version of the GNU libtextstyle library in > htt

Re: [PATCH] *-map, *-omap: Allow passing NULL to search

2019-02-10 Thread Bruno Haible
Hi Colin, > > 2) Allowing NULL pointers as arguments in all possible places is > > *not* a good coding style in general. (It may be a good practice, > > though, when you're being paid for a consulting project and your > > code will never be maintained once you have delivered it.)

Re: [PATCH] *-map, *-omap: Allow passing NULL to search

2019-02-10 Thread Colin Watson
On Mon, Feb 11, 2019 at 02:32:11AM +0100, Bruno Haible wrote: > Hi Colin, > > > It's sometimes convenient to have a map whose values may be NULL, but in > > that case it's a little awkward to determine whether a key exists in the > > map: gl_map_get returns NULL for both "key not found" and "value

Re: [PATCH] *-map, *-omap: Allow passing NULL to search

2019-02-10 Thread Bruno Haible
Hi Colin, > It's sometimes convenient to have a map whose values may be NULL, but in > that case it's a little awkward to determine whether a key exists in the > map: gl_map_get returns NULL for both "key not found" and "value is > NULL", so one needs a local variable just for the purpose of passi

[PATCH] *-map, *-omap: Allow passing NULL to search

2019-02-10 Thread Colin Watson
It's sometimes convenient to have a map whose values may be NULL, but in that case it's a little awkward to determine whether a key exists in the map: gl_map_get returns NULL for both "key not found" and "value is NULL", so one needs a local variable just for the purpose of passing its address to g

Re: Colored output

2019-02-10 Thread Jose E. Marchesi
> > If you want the combination of (B) and (III): > > Well, I was going for B.II, but now that you teased me with B.III, I can't > wait for it! You find the first alpha version of the GNU libtextstyle library in https://www.haible.de/bruno/gnu/libtextstyle-0.5.t

new module 'libtextstyle'

2019-02-10 Thread Bruno Haible
Now that a first release of libtextstyle is out of the door, here comes a module that makes it easy to link with it. Like Gnulib already has modules for linking with readline, libsigsegv, libunistring, etc. 2019-02-10 Bruno Haible libtextstyle: New module. * m4/libtextstyle.m4

Re: Colored output

2019-02-10 Thread Bruno Haible
Hi Akim, > > If you want the combination of (B) and (III): > > Well, I was going for B.II, but now that you teased me with B.III, I can't > wait for it! You find the first alpha version of the GNU libtextstyle library in https://www.haible.de/bruno/gnu/libtextstyle-0.5.tar.gz It is pretty com