aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-07-31 11:35:35 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-07-31 11:35:35 +0300
commitef8c876c77fe7d3d2a509ea235629b62553dd82e (patch)
tree920939217385273ba9d26d62289b56ed5f94eee2
parentc3850a4d3f94436aab6b23020242bc99c71506ee (diff)
downloadgrecs-ef8c876c77fe7d3d2a509ea235629b62553dd82e.tar.gz
grecs-ef8c876c77fe7d3d2a509ea235629b62553dd82e.tar.bz2
Minor fixes in wordsplit
* src/wordsplit.c (find_closing_paren): paren is char const * (wsplt_unquote_char, wsplt_quote_char): mark as static (exptab) <descr>: mark as const.
-rw-r--r--src/wordsplit.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wordsplit.c b/src/wordsplit.c
index 5468297..b4baeb3 100644
--- a/src/wordsplit.c
+++ b/src/wordsplit.c
@@ -68,3 +68,3 @@ _wsplt_alloc_die (struct wordsplit *wsp)
-static void
+static void
_wsplt_error (const char *fmt, ...)
@@ -924,3 +924,3 @@ static int
find_closing_paren (const char *str, size_t i, size_t len, size_t *poff,
- char *paren)
+ char const *paren)
{
@@ -2120,3 +2120,3 @@ wordsplit_c_quoted_length (const char *str, int quote_hex, int *quote)
-int
+static int
wsplt_unquote_char (const char *transtab, int c)
@@ -2132,3 +2132,3 @@ wsplt_unquote_char (const char *transtab, int c)
-int
+static int
wsplt_quote_char (const char *transtab, int c)
@@ -2276,5 +2276,5 @@ struct exptab
{
- char *descr; /* Textual description (for debugging) */
- int flag; /* WRDSF_ bit that controls this phase */
- int opt; /* Entry-specific options (see EXPOPT_ flags below */
+ char const *descr; /* Textual description (for debugging) */
+ int flag; /* WRDSF_ bit that controls this phase */
+ int opt; /* Entry-specific options (see EXPOPT_ flags below */
int (*expansion) (struct wordsplit *wsp); /* expansion function */

Return to:

Send suggestions and report system problems to the System administrator.