Lines Matching refs:wp

434 free_word (struct word *wp)  in free_word()  argument
436 if (wp->type == t_string) in free_word()
438 free_token (wp->token); in free_word()
439 free (wp->token); in free_word()
445 string_of_word (const struct word *wp) in string_of_word() argument
450 if (!(wp->type == t_string)) in string_of_word()
452 n = wp->token->charcount; in string_of_word()
454 memcpy (str, wp->token->chars, n); in string_of_word()
580 accumulate_word (struct word *wp, enum terminator looking_for, in accumulate_word() argument
614 wp->type = t_other; in accumulate_word()
654 wp->type = t_other; in accumulate_word()
662 wp->type = t_other; in accumulate_word()
667 if (wp->type == t_string) in accumulate_word()
669 grow_token (wp->token); in accumulate_word()
670 wp->token->chars[wp->token->charcount++] = '$'; in accumulate_word()
679 wp->type = t_other; in accumulate_word()
692 if (wp->type == t_string) in accumulate_word()
695 grow_token (wp->token); in accumulate_word()
696 wp->token->chars[wp->token->charcount++] = utf8buf[i]; in accumulate_word()
701 if (wp->type == t_string) in accumulate_word()
703 grow_token (wp->token); in accumulate_word()
704 wp->token->chars[wp->token->charcount++] = (unsigned char) c; in accumulate_word()
714 read_word (struct word *wp, int looking_for, flag_context_ty context) in read_word() argument
725 wp->type = t_eof; in read_word()
731 wp->type = t_brace; in read_word()
742 wp->type = t_separator; in read_word()
748 wp->type = t_separator; in read_word()
755 wp->type = t_bracket; in read_word()
775 wp->type = t_other; in read_word()
780 wp->type = t_string; in read_word()
781 wp->token = (struct token *) xmalloc (sizeof (struct token)); in read_word()
782 init_token (wp->token); in read_word()
783 wp->line_number_at_start = line_number; in read_word()
787 c = accumulate_word (wp, te_quote, context); in read_word()
794 c = accumulate_word (wp, in read_word()
803 if (wp->type != t_string) in read_word()
805 free_token (wp->token); in read_word()
806 free (wp->token); in read_word()