Quotearg part 1: more wrappers, restore quotearg_char state.
authorEric Blake <ebb9@byu.net>
Thu, 7 Feb 2008 13:39:57 +0000 (06:39 -0700)
committerEric Blake <ebb9@byu.net>
Wed, 13 Feb 2008 01:42:52 +0000 (18:42 -0700)
commit2aa21ba313a4b48ed239d5e2311c66d861351eb1
tree54b845fde50817b4d31f4b119655c97a806d588f
parente905aadb6e996c3040e311988e3dfbbf8b748edf
Quotearg part 1: more wrappers, restore quotearg_char state.

* lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
(quotearg_mem, quotearg_style_mem, quotearg_char_mem)
(quotearg_colon_mem): New wrappers.
* lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
(quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
functions.
(quotearg_n_mem, quotearg_mem, quotearg_style_mem)
(quotearg_colon_mem): New functions.

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