• Home
  • Raw
  • Download

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()
582 accumulate_word (struct word *wp, enum terminator looking_for, in accumulate_word() argument
616 wp->type = t_other; in accumulate_word()
656 wp->type = t_other; in accumulate_word()
664 wp->type = t_other; in accumulate_word()
669 if (wp->type == t_string) in accumulate_word()
671 grow_token (wp->token); in accumulate_word()
672 wp->token->chars[wp->token->charcount++] = '$'; in accumulate_word()
681 wp->type = t_other; in accumulate_word()
694 if (wp->type == t_string) in accumulate_word()
697 grow_token (wp->token); in accumulate_word()
698 wp->token->chars[wp->token->charcount++] = utf8buf[i]; in accumulate_word()
703 if (wp->type == t_string) in accumulate_word()
705 grow_token (wp->token); in accumulate_word()
706 wp->token->chars[wp->token->charcount++] = (unsigned char) c; in accumulate_word()
716 read_word (struct word *wp, int looking_for, flag_context_ty context) in read_word() argument
727 wp->type = t_eof; in read_word()
733 wp->type = t_brace; in read_word()
744 wp->type = t_separator; in read_word()
750 wp->type = t_separator; in read_word()
757 wp->type = t_bracket; in read_word()
777 wp->type = t_other; in read_word()
782 wp->type = t_string; in read_word()
783 wp->token = XMALLOC (struct token); in read_word()
784 init_token (wp->token); in read_word()
785 wp->line_number_at_start = line_number; in read_word()
789 c = accumulate_word (wp, te_quote, context); in read_word()
796 c = accumulate_word (wp, in read_word()
805 if (wp->type != t_string) in read_word()
807 free_token (wp->token); in read_word()
808 free (wp->token); in read_word()