Home | History | Annotate | Download | only in dist

Lines Matching defs:in

7 recurse into directories, and in z/OS it can handle PDS files.
9 Note that for native z/OS, in addition to defining the NATIVE_ZOS macro, an
10 additional header is required. That header is not included in the main PCRE
12 The header can be found in the special z/OS distribution, which is available
18 Redistribution and use in source and binary forms, with or without
24 * Redistributions in binary form must reproduce the above copyright
25 notice, this list of conditions and the following disclaimer in the
35 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
39 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
41 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
118 /* In newer versions of gcc, with FORTIFY_SOURCE set (the default in some
220 /* Structure for list of file names (for -f and --{in,ex}clude-from) */
352 { OP_NODATA, N_NOJIT, NULL, "no-jit", "do not use just-in-time compiler optimization" },
364 { OP_NODATA, 'M', NULL, "multiline", "run in multiline mode" },
379 hyphens in the option names. As this was not discovered for several releases,
380 the incorrect versions are left in the table for compatibility. However, the
381 --help function misses out any option that has an underscore in its name. */
399 options. These set the 1, 2, and 4 bits in process_options, respectively. Note
555 /* However, z/OS needs the #include statements in this header */
557 /* That header is not included in the main PCRE distribution because
559 can be found in the special z/OS distribution, which is available
571 return 0; /* In the expectation that opening as a file will fail */
608 return 1; /* In the expectation that opening as a file will fail */
614 /************* Test for a terminal in z/OS **********/
615 /* isatty() does not work in a TSO environment, so always give FALSE.*/
649 /************* Directory scanning in Windows ***********/
752 /************* Test for regular file in Windows **********/
763 /************* Test for a terminal in Windows **********/
828 in their libraries, but can provide the same facility by this simple
875 printf("Search for PATTERN in each FILE or standard input.\n");
880 printf("Files whose names end in .gz are read using zlib.\n");
884 printf("Files whose names end in .bz2 are read using bzlib2.\n");
902 instead of hyphens in their names, something that was not noticed for quite a
903 few releases. When fixing this, I left the underscored versions in the list
904 in case people were using them. However, we don't want to display them in the
986 longop TRUE if option given in long form
1077 because there may be binary zeros embedded in the data.
1110 p current position in line
1123 default: /* Just in case */
1284 default: /* Just in case */
1377 and at the end of the file. The data in the line is written using fwrite() so
1417 is used multiple times for the same subject when colouring is enabled, in order
1425 offsets the offets vector to fill in
1456 FWRITE(matchptr, 1, slen, stderr); /* In case binary zero included */
1482 be in the middle third most of the time, so the bottom third is available for
1517 FILE *in = NULL; /* Ensure initialized */
1529 of what we have. In the case of libz, a non-zipped .gz file will be read as a
1555 in = (FILE *)handle;
1556 if (is_file_tty(in)) input_line_buffered = TRUE;
1558 read_one_line(main_buffer, bufsize, in) :
1559 fread(main_buffer, 1, bufsize, in);
1576 files, endptr will be at the end of the buffer when we are in the middle of the
1595 of the subject string to pass to pcre_exec(). In multiline mode, it is the
1596 length remainder of the data in the buffer. Otherwise, it is the length of
1598 advance by the length of the next line. In multiline mode the PCRE_FIRSTLINE
1599 option is used for compiling, so that any match is constrained to be in the
1670 /* We come back here after a match when show_only_matching is set, in order
1671 to find any further matches in the same line. This applies to
1677 than NOMATCH. This code is in a subroutine so that it can be re-used for
1679 match, set PCRE_NOTEMPTY to disable any further matches of null strings in
1704 variable will be set true (it's false in all other cases). In this
1714 in the file. */
1727 and then jump back to look for further matches in the same line. If we are
1728 in invert mode, however, nothing is printed and we do not restart - this
1842 each line's data using fwrite() in case there are binary zeroes. */
1904 /* In multiline mode, we want to print to the end of the line in which
1964 /* In multiline mode, we may have already printed the complete line
1990 /* For a match in multiline inverted mode (which of course did not cause
2009 offset to the current line is maintained in filepos. */
2021 int add = read_one_line(ptr, bufsize - (int)(ptr - main_buffer), in);
2027 the current point is in the top 1/3 of the buffer, slide the buffer down by
2062 read_one_line(main_buffer + 2*bufthird, bufthird, in) :
2063 fread(main_buffer + 2*bufthird, 1, bufthird, in));
2134 FILE *in = NULL; /* Ensure initialized */
2188 /* Handle a PDS in separate code */
2195 /* Deal with regular files in the normal way below. These types are:
2311 in = fopen(pathname, "rb");
2312 handle = (void *)in;
2331 /* Close in an appropriate manner. */
2340 read failed. If the error indicates that the file isn't in fact bzipped, try
2367 fclose(in);
2517 fprintf(stderr, "pcregrep: Error in regex in line %d of %s "
2523 fprintf(stderr, "pcregrep: Error in %s regex at offset %d: %s\n",
2526 fprintf(stderr, "pcregrep: Error in %s %s regex at offset %d: %s\n",
2596 on additional literal patterns if the original contains a newline. In the
2641 /* Set the default line ending value from the default in the PCRE library;
2644 codes, are the same in EBCDIC environments, so we must use the actual values
2693 Some options have variations in the long name spelling: specifically, we
2695 with Jeffrey Friedl and Larry Wall in preferring "regex" without the "p".
2696 These options are entered in the table as "regex(p)". Options can be in
2770 are not in the right form for putting in the option table because they use
2792 /* One-char options; many that have no data may be in a single argument; we
2808 fprintf(stderr, "pcregrep: Unknown option letter '%c' in \"%s\"\n",
2815 /* Break out if this is the last character in the string; it's handled
2823 with other single-character options in the same string. */
2835 next character in the string. */
2843 something in the PCRE options. */
2852 either has a value or defaults to something. It cannot have data in a
2979 However, all three set show_only_matching because they display, each in their
3149 /* Read and compile the regular expressions that are provided in files. */
3278 /* After handling file-list, work through remaining arguments. Pass in the fact