Lines Matching refs:main_buffer

228 static char *main_buffer = NULL;  variable
1782 if (ellength == 0 && pp == main_buffer + bufsize) break; in do_after_lines()
2530 char *lastmatchrestart = main_buffer; in pcre2grep()
2531 char *ptr = main_buffer; in pcre2grep()
2552 bufflength = fill_buffer(handle, frtype, main_buffer, bufsize, in pcre2grep()
2559 endptr = main_buffer + bufflength; in pcre2grep()
2568 binary = memchr(main_buffer, 0, (bufflength > 1024)? 1024 : bufflength) in pcre2grep()
2618 if (endlinelength == 0 && t == main_buffer + bufsize) in pcre2grep()
2642 memcpy(new_buffer, main_buffer, bufsize); in pcre2grep()
2645 ptr = new_buffer + (ptr - main_buffer); in pcre2grep()
2646 lastmatchrestart = new_buffer + (lastmatchrestart - main_buffer); in pcre2grep()
2647 free(main_buffer); in pcre2grep()
2648 main_buffer = new_buffer; in pcre2grep()
2653 bufflength += fill_buffer(handle, frtype, main_buffer + bufflength, in pcre2grep()
2655 endptr = main_buffer + bufflength; in pcre2grep()
2944 while (p > main_buffer && in pcre2grep()
2949 p = previous_line(p, main_buffer); in pcre2grep()
3145 int add = read_one_line(ptr, bufsize - (int)(ptr - main_buffer), in); in pcre2grep()
3155 if (bufflength >= (PCRE2_SIZE)bufsize && ptr > main_buffer + 2*bufthird) in pcre2grep()
3159 lastmatchrestart < main_buffer + bufthird) in pcre2grep()
3167 (void)memmove(main_buffer, main_buffer + bufthird, 2*bufthird); in pcre2grep()
3171 main_buffer + 2*bufthird, bufthird, input_line_buffered); in pcre2grep()
3172 endptr = main_buffer + bufflength; in pcre2grep()
4355 main_buffer = (char *)malloc(bufsize); in main()
4357 if (main_buffer == NULL) in main()
4521 free(main_buffer); in main()