mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-05-13 15:13:36 +00:00
quotearg: constify get_quoting_style parameters
* lib/quotearg.h (get_quoting_style): Mark parameter as const. * lib/quotearg.c (get_quoting_style): Likewise.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2015-11-03 Pádraig Brady <P@draigBrady.com>
|
||||
|
||||
quotearg: constify get_quoting_style parameters
|
||||
* lib/quotearg.h (get_quoting_style): Mark parameter as const.
|
||||
* lib/quotearg.c (get_quoting_style): Likewise.
|
||||
|
||||
2015-11-02 Pádraig Brady <P@draigBrady.com>
|
||||
|
||||
quotearg: add support for $'' shell escaping
|
||||
|
||||
@@ -120,7 +120,7 @@ clone_quoting_options (struct quoting_options *o)
|
||||
|
||||
/* Get the value of O's quoting style. If O is null, use the default. */
|
||||
enum quoting_style
|
||||
get_quoting_style (struct quoting_options *o)
|
||||
get_quoting_style (struct quoting_options const *o)
|
||||
{
|
||||
return (o ? o : &default_quoting_options)->style;
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ struct quoting_options;
|
||||
struct quoting_options *clone_quoting_options (struct quoting_options *o);
|
||||
|
||||
/* Get the value of O's quoting style. If O is null, use the default. */
|
||||
enum quoting_style get_quoting_style (struct quoting_options *o);
|
||||
enum quoting_style get_quoting_style (struct quoting_options const *o);
|
||||
|
||||
/* In O (or in the default if O is null),
|
||||
set the value of the quoting style to S. */
|
||||
|
||||
Reference in New Issue
Block a user