Lines Matching refs:word_length

48 static int parse_dollars (char **word, size_t *word_length, size_t *max_length,
52 static int parse_backtick (char **word, size_t *word_length,
56 static int parse_dquote (char **word, size_t *word_length, size_t *max_length,
181 parse_backslash (char **word, size_t *word_length, size_t *max_length, in parse_backslash() argument
197 *word = w_addchar (*word, word_length, max_length, words[1 + *offset]); in parse_backslash()
209 parse_qtd_backslash (char **word, size_t *word_length, size_t *max_length, in parse_qtd_backslash() argument
228 *word = w_addchar (*word, word_length, max_length, words[1 + *offset]); in parse_qtd_backslash()
236 *word = w_addchar (*word, word_length, max_length, words[*offset]); in parse_qtd_backslash()
238 *word = w_addchar (*word, word_length, max_length, words[1 + *offset]); in parse_qtd_backslash()
251 parse_tilde (char **word, size_t *word_length, size_t *max_length, in parse_tilde() argument
257 if (*word_length != 0) in parse_tilde()
259 if (!((*word)[*word_length - 1] == '=' && wordc == 0)) in parse_tilde()
261 if (!((*word)[*word_length - 1] == ':' in parse_tilde()
264 *word = w_addchar (*word, word_length, max_length, '~'); in parse_tilde()
278 *word = w_addchar (*word, word_length, max_length, '~'); in parse_tilde()
295 *word = w_addstr (*word, word_length, max_length, home); in parse_tilde()
316 *word = w_addstr (*word, word_length, max_length, pwd.pw_dir); in parse_tilde()
325 *word = w_addchar (*word, word_length, max_length, '~'); in parse_tilde()
351 *word = w_addstr (*word, word_length, max_length, pwd.pw_dir); in parse_tilde()
355 *word = w_addchar (*word, word_length, max_length, '~'); in parse_tilde()
357 *word = w_addstr (*word, word_length, max_length, user); in parse_tilde()
369 do_parse_glob (const char *glob_word, char **word, size_t *word_length, in do_parse_glob() argument
390 *word = w_addstr (*word, word_length, max_length, globbuf.gl_pathv[0]); in do_parse_glob()
393 *word = w_addchar (*word, word_length, max_length, ' '); in do_parse_glob()
395 *word = w_addstr (*word, word_length, max_length, in do_parse_glob()
407 *word = w_newword (word_length, max_length); in do_parse_glob()
425 parse_glob (char **word, size_t *word_length, size_t *max_length, in parse_glob() argument
475 error = parse_dollars (word, word_length, max_length, words, in parse_glob()
486 error = parse_qtd_backslash (word, word_length, max_length, in parse_glob()
489 error = parse_backslash (word, word_length, max_length, in parse_glob()
498 *word = w_addchar (*word, word_length, max_length, words[*offset]); in parse_glob()
508 *word = w_newword (word_length, max_length); in parse_glob()
510 error = do_parse_glob (glob_list.we_wordv[i], word, word_length, in parse_glob()
520 parse_squote (char **word, size_t *word_length, size_t *max_length, in parse_squote() argument
528 *word = w_addchar (*word, word_length, max_length, words[*offset]); in parse_squote()
651 parse_arith (char **word, size_t *word_length, size_t *max_length, in parse_arith() argument
732 *word = w_addchar (*word, word_length, max_length, '-'); in parse_arith()
743 *word = w_addstr (*word, word_length, max_length, in parse_arith()
768 *word = w_addstr (*word, word_length, max_length, in parse_arith()
874 exec_comm (char *comm, char **word, size_t *word_length, size_t *max_length, in exec_comm() argument
939 *word = w_addmem (*word, word_length, max_length, buffer, buflen); in exec_comm()
1030 *word = w_newword (word_length, max_length); in exec_comm()
1046 *word = w_newword (word_length, max_length); in exec_comm()
1056 *word = w_addchar (*word, word_length, max_length, in exec_comm()
1069 && *word_length > 0 && (*word)[*word_length - 1] == '\n') in exec_comm()
1071 (*word)[--*word_length] = '\0'; in exec_comm()
1075 if (*word_length == 0) in exec_comm()
1078 *word = w_newword (word_length, max_length); in exec_comm()
1103 parse_comm (char **word, size_t *word_length, size_t *max_length, in parse_comm() argument
1142 error = exec_comm (comm, word, word_length, max_length, in parse_comm()
1173 parse_param (char **word, size_t *word_length, size_t *max_length, in parse_param() argument
1394 *word = w_addchar (*word, word_length, max_length, '$'); in parse_param()
1425 *word = w_addstr (*word, word_length, max_length, value); in parse_param()
1467 value = w_addstr (*word, word_length, max_length, in parse_param()
1480 *word = w_newword (word_length, max_length); in parse_param()
1882 *word = w_addstr (*word, word_length, max_length, in parse_param()
1900 *word = w_addstr (*word, word_length, max_length, value); in parse_param()
1933 *word = w_newword (word_length, max_length); in parse_param()
1962 *word = w_addstr (*word, word_length, max_length, field_begin); in parse_param()
2001 parse_dollars (char **word, size_t *word_length, size_t *max_length, in parse_dollars() argument
2012 *word = w_addchar (*word, word_length, max_length, '$'); in parse_dollars()
2035 return parse_arith (word, word_length, max_length, words, offset, in parse_dollars()
2041 return parse_comm (word, word_length, max_length, words, offset, flags, in parse_dollars()
2047 return parse_arith (word, word_length, max_length, words, offset, flags, in parse_dollars()
2053 return parse_param (word, word_length, max_length, words, offset, flags, in parse_dollars()
2059 parse_backtick (char **word, size_t *word_length, size_t *max_length, in parse_backtick() argument
2076 error = exec_comm (comm, word, word_length, max_length, flags, in parse_backtick()
2123 parse_dquote (char **word, size_t *word_length, size_t *max_length, in parse_dquote() argument
2138 error = parse_dollars (word, word_length, max_length, words, offset, in parse_dquote()
2150 error = parse_backtick (word, word_length, max_length, words, in parse_dquote()
2161 error = parse_qtd_backslash (word, word_length, max_length, words, in parse_dquote()
2170 *word = w_addchar (*word, word_length, max_length, words[*offset]); in parse_dquote()
2210 size_t word_length; in libc_hidden_def() local
2212 char *word = w_newword (&word_length, &max_length); in libc_hidden_def()
2288 error = parse_backslash (&word, &word_length, &max_length, words, in libc_hidden_def()
2297 error = parse_dollars (&word, &word_length, &max_length, words, in libc_hidden_def()
2308 error = parse_backtick (&word, &word_length, &max_length, words, in libc_hidden_def()
2319 error = parse_dquote (&word, &word_length, &max_length, words, in libc_hidden_def()
2325 if (!word_length) in libc_hidden_def()
2337 error = parse_squote (&word, &word_length, &max_length, words, in libc_hidden_def()
2343 if (!word_length) in libc_hidden_def()
2354 error = parse_tilde (&word, &word_length, &max_length, words, in libc_hidden_def()
2365 error = parse_glob (&word, &word_length, &max_length, words, in libc_hidden_def()
2388 word = w_addchar (word, &word_length, &max_length, in libc_hidden_def()
2407 word = w_newword (&word_length, &max_length); in libc_hidden_def()