Quotearg part 2: add flag that can control NUL elision.
authorEric Blake <ebb9@byu.net>
Thu, 7 Feb 2008 21:35:51 +0000 (14:35 -0700)
committerEric Blake <ebb9@byu.net>
Wed, 13 Feb 2008 01:42:53 +0000 (18:42 -0700)
commit71e66c91f3e83d361242fabfb41155e38114369d
treee9763cde683ad2be298618cbf49078bff510383d
parent2aa21ba313a4b48ed239d5e2311c66d861351eb1
Quotearg part 2: add flag that can control NUL elision.

* lib/quotearg.h (set_quoting_flags): New prototype.
* lib/quotearg.c (struct quoting_options): Add flag field.
(set_quoting_flags): New function.
(quotearg_buffer_restyled): Add flags parameter.
(quotearg_alloc_mem): Set the flag if length cannot be returned.
(quotearg_n_options): Set the flag, since length cannot be
returned.
(quoting_options_from_style): Default flags correctly.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/quotearg.c
lib/quotearg.h