use size_t for string indices; document rl_reparse_colors

This commit is contained in:
Chet Ramey
2023-09-22 09:50:33 -04:00
parent 94bce520e8
commit 1cc5a8f752
12 changed files with 165 additions and 105 deletions
+3 -2
View File
@@ -4562,11 +4562,12 @@ INTERNAL_DEBUG(("current_token (%d) != shell_eof_token (%c)", current_token, she
called by the word expansion code and so does not have to reset as much
parser state before calling yyparse(). */
char *
xparse_dolparen (const char *base, char *string, int *indp, int flags)
xparse_dolparen (const char *base, char *string, size_t *indp, int flags)
{
sh_parser_state_t ps;
sh_input_line_state_t ls;
int orig_ind, nc, sflags, start_lineno, local_extglob, funsub, closer;
size_t orig_ind;
int nc, sflags, start_lineno, local_extglob, funsub, closer;
int save_lineno;
char *ret, *ep, *ostring;