diff options
| author | Xin LI <delphij@FreeBSD.org> | 2012-06-26 20:38:53 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2012-06-26 20:38:53 +0000 |
| commit | ae8c2162b0f1c1823dae013469f900b9882b77a2 (patch) | |
| tree | 9492f724d6c5c2081c7f6b978b27d62af6523d31 /optfunc.c | |
| parent | 5b2db585ea1bc974ea3553d32447fba4e9ec0c2a (diff) | |
Diffstat (limited to 'optfunc.c')
| -rw-r--r-- | optfunc.c | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/optfunc.c b/optfunc.c index a0aa10a81cd3..b4288d78bb5b 100644 --- a/optfunc.c +++ b/optfunc.c @@ -1,12 +1,11 @@ -/* - * Copyright (C) 1984-2011 Mark Nudelman - * - * You may distribute under the terms of either the GNU General Public - * License or the Less License, as specified in the README file. - * - * For more information about less, or for information on how to - * contact the author, see the README file. - */ +/*
+ * Copyright (C) 1984-2012 Mark Nudelman
+ *
+ * You may distribute under the terms of either the GNU General Public
+ * License or the Less License, as specified in the README file.
+ *
+ * For more information, see the README file.
+ */
/* @@ -481,7 +480,30 @@ opt__V(type, s) any_display = 1; putstr("less "); putstr(version); - putstr("\nCopyright (C) 1984-2009 Mark Nudelman\n\n"); + putstr(" ("); +#if HAVE_GNU_REGEX + putstr("GNU "); +#endif +#if HAVE_POSIX_REGCOMP + putstr("POSIX "); +#endif +#if HAVE_PCRE + putstr("PCRE "); +#endif +#if HAVE_RE_COMP + putstr("BSD "); +#endif +#if HAVE_REGCMP + putstr("V8 "); +#endif +#if HAVE_V8_REGCOMP + putstr("Spencer V8 "); +#endif +#if !HAVE_GNU_REGEX && !HAVE_POSIX_REGCOMP && !HAVE_PCRE && !HAVE_RE_COMP && !HAVE_REGCMP && !HAVE_V8_REGCOMP + putstr("no "); +#endif + putstr("regular expressions)\n"); + putstr("Copyright (C) 1984-2012 Mark Nudelman\n\n"); putstr("less comes with NO WARRANTY, to the extent permitted by law.\n"); putstr("For information about the terms of redistribution,\n"); putstr("see the file named README in the less distribution.\n"); |
