VirtualBox

source: kBuild/vendor/grep/2.12/src/grep.c@ 2595

Last change on this file since 2595 was 2595, checked in by bird, 12 years ago

gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)

  • Property svn:eol-style set to native
File size: 913 bytes
Line 
1#include <config.h>
2#include "search.h"
3
4static void
5Gcompile (char const *pattern, size_t size)
6{
7 GEAcompile (pattern, size, RE_SYNTAX_GREP | RE_NO_EMPTY_RANGES);
8}
9
10static void
11Ecompile (char const *pattern, size_t size)
12{
13 GEAcompile (pattern, size, RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
14}
15
16static void
17Acompile (char const *pattern, size_t size)
18{
19 GEAcompile (pattern, size, RE_SYNTAX_AWK);
20}
21
22struct matcher const matchers[] = {
23 { "grep", Gcompile, EGexecute },
24 { "egrep", Ecompile, EGexecute },
25 { "awk", Acompile, EGexecute },
26 { "fgrep", Fcompile, Fexecute },
27 { "perl", Pcompile, Pexecute },
28 { NULL, NULL, NULL },
29};
30
31const char before_options[] =
32N_("PATTERN is, by default, a basic regular expression (BRE).\n");
33const char after_options[] =
34N_("'egrep' means 'grep -E'. 'fgrep' means 'grep -F'.\n\
35Direct invocation as either 'egrep' or 'fgrep' is deprecated.\n");
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette