• Home
  • Raw
  • Download

Lines Matching refs:wp

455 free_word (struct word *wp)  in free_word()  argument
457 if (wp->type == t_string) in free_word()
459 free_token (wp->token); in free_word()
460 free (wp->token); in free_word()
466 string_of_word (const struct word *wp) in string_of_word() argument
471 if (!(wp->type == t_string)) in string_of_word()
473 n = wp->token->charcount; in string_of_word()
475 memcpy (str, wp->token->chars, n); in string_of_word()
482 substring_of_word (const struct word *wp, size_t offset) in substring_of_word() argument
487 if (!(wp->type == t_string)) in substring_of_word()
489 n = wp->token->charcount; in substring_of_word()
493 memcpy (str, wp->token->chars + offset, n - offset); in substring_of_word()
746 read_word (struct word *wp, int looking_for, flag_context_ty context) in read_word() argument
778 wp->type = t_separator; in read_word()
786 wp->type = t_eof; in read_word()
808 wp->type = t_redirect; in read_word()
820 wp->type = t_backquote; in read_word()
830 wp->type = t_paren; in read_word()
842 wp->type = t_paren; in read_word()
849 wp->type = (c == ';' ? t_separator : t_other); in read_word()
853 wp->type = t_string; in read_word()
854 wp->token = XMALLOC (struct token); in read_word()
855 init_token (wp->token); in read_word()
856 wp->line_number_at_start = line_number; in read_word()
888 wp->type = t_redirect; in read_word()
889 free_token (wp->token); in read_word()
890 free (wp->token); in read_word()
899 if (all_unquoted_name_characters && wp->token->charcount > 0 && c == '=') in read_word()
901 wp->type = t_assignment; in read_word()
908 || (wp->token->charcount > 0 && c >= '0' && c <= '9')); in read_word()
1101 if (wp->type == t_string) in read_word()
1103 grow_token (wp->token); in read_word()
1104 wp->token->chars[wp->token->charcount++] = in read_word()
1151 wp->type = t_other; in read_word()
1197 wp->type = t_other; in read_word()
1217 wp->type = t_other; in read_word()
1228 if (wp->type == t_string) in read_word()
1230 grow_token (wp->token); in read_word()
1231 wp->token->chars[wp->token->charcount++] = (unsigned char) c; in read_word()
1237 if (wp->type != t_string) in read_word()
1239 free_token (wp->token); in read_word()
1240 free (wp->token); in read_word()