Lines Matching refs:text

392 	char *text = text_origin;  in print_match_error()  local
393 int middle = max_line_len(text) + 2; in print_match_error()
396 while (*pattern || *text) { in print_match_error()
402 while (*text && *text != '\n') { in print_match_error()
403 if (text == text_pos) in print_match_error()
405 fputc(*text, out); in print_match_error()
406 ++text; in print_match_error()
409 if (text == text_pos) in print_match_error()
434 if (*text) in print_match_error()
435 ++text; in print_match_error()
487 static bool match_pattern(struct btf *btf, char *pattern, char *text, char *reg_map[][2]) in match_pattern() argument
490 char *text_origin = text; in match_pattern()
495 if (!*text) in match_pattern()
500 if (!isspace(*text) && text != text_origin && isalnum(text[-1])) in match_pattern()
503 text = skip_space(text); in match_pattern()
515 text_next = match_str(text, reg_map[i][1]); in match_pattern()
520 text = text_next; in match_pattern()
566 text_next = match_number(text, acc_offset); in match_pattern()
574 text = text_next; in match_pattern()
588 text_next = match_number(text, field_offset); in match_pattern()
596 text = text_next; in match_pattern()
605 if (strncmp(pattern, text, matches[0].rm_eo) != 0) in match_pattern()
609 text += matches[0].rm_eo; in match_pattern()
614 if (*pattern != *text) in match_pattern()
618 ++text; in match_pattern()
625 print_match_error(stdout, pattern_origin, text_origin, pattern, text); in match_pattern()
747 char *text = NULL; in match_program() local
750 text = calloc(MAX_PROG_TEXT_SZ, 1); in match_program()
751 if (!text) { in match_program()
758 opts.log_buf = text; in match_program()
767 errno, strerror(errno), text); in match_program()
771 memset(text, 0, MAX_PROG_TEXT_SZ); in match_program()
779 prog_out = fmemopen(text, MAX_PROG_TEXT_SZ - 1, "w"); in match_program()
789 remove_insn_prefix(text, MAX_PROG_TEXT_SZ); in match_program()
791 ASSERT_TRUE(match_pattern(btf, pattern, text, reg_map), in match_program()
798 free(text); in match_program()