1
0
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:
Pádraig Brady
2015-11-03 10:59:55 +00:00
parent df3cd2684d
commit 77d702067d
3 changed files with 8 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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. */