quote: fuse into quotearg
authorAkim Demaille <demaille@gostai.com>
Wed, 7 Mar 2012 07:35:28 +0000 (23:35 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 Mar 2012 07:35:57 +0000 (23:35 -0800)
commit6417476607d4f04b1a7abf97fbfbb6bd2709e724
tree75f64d077c33827ac5c782c4ebf2db605c64af53
parentc41a44ca405cc1d885fdbbcd5e41ae94bbee1d7e
quote: fuse into quotearg

This patch is made for the benefit of Bison.
quote does not leave the choice of the quoting style to the user.
quoting_style provides poor customizability, yet quoting_options,
which is very rich, is hidden inside quotearg.c.  So in order to
allow quote customization, move its implementation to quotearg.c.
* lib/quote.c: Remove.
* modules/quote: Adjust.
* lib/quotearg.c (quoting_options_from_style): Fix a compiler
warning: provide all the members of literal structs.
(quote_quoting_options): New.
(quote, quote_n): Import implementation from quote.c.
* lib/quote.h: Import the comments from quote.c.
(quote_quoting_options): New.
ChangeLog
lib/quote.c [deleted file]
lib/quote.h
lib/quotearg.c
modules/quote