diff options
Diffstat (limited to 'src/regex.c')
| -rw-r--r-- | src/regex.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/regex.c b/src/regex.c index 1473551e6cc..648f2529649 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 0.12. (Implements POSIX draft P1003.2/D11.2, except for some of the | 2 | 0.12. (Implements POSIX draft P1003.2/D11.2, except for some of the |
| 3 | internationalization features.) | 3 | internationalization features.) |
| 4 | 4 | ||
| 5 | Copyright (C) 1993-2012 Free Software Foundation, Inc. | 5 | Copyright (C) 1993-2013 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | This program is free software; you can redistribute it and/or modify | 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
| @@ -15,9 +15,7 @@ | |||
| 15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. |
| 16 | 16 | ||
| 17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, | ||
| 20 | USA. */ | ||
| 21 | 19 | ||
| 22 | /* TODO: | 20 | /* TODO: |
| 23 | - structure the opcode space into opcode+flag. | 21 | - structure the opcode space into opcode+flag. |
| @@ -35,7 +33,7 @@ | |||
| 35 | 33 | ||
| 36 | /* Ignore some GCC warnings for now. This section should go away | 34 | /* Ignore some GCC warnings for now. This section should go away |
| 37 | once the Emacs and Gnulib regex code is merged. */ | 35 | once the Emacs and Gnulib regex code is merged. */ |
| 38 | #if (__GNUC__ == 4 && 5 <= __GNUC_MINOR__) || 4 < __GNUC__ | 36 | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) |
| 39 | # pragma GCC diagnostic ignored "-Wstrict-overflow" | 37 | # pragma GCC diagnostic ignored "-Wstrict-overflow" |
| 40 | # ifndef emacs | 38 | # ifndef emacs |
| 41 | # pragma GCC diagnostic ignored "-Wunused-but-set-variable" | 39 | # pragma GCC diagnostic ignored "-Wunused-but-set-variable" |
| @@ -6406,8 +6404,8 @@ weak_function | |||
| 6406 | re_exec (const char *s) | 6404 | re_exec (const char *s) |
| 6407 | { | 6405 | { |
| 6408 | const size_t len = strlen (s); | 6406 | const size_t len = strlen (s); |
| 6409 | return | 6407 | return (re_search (&re_comp_buf, s, len, 0, len, (struct re_registers *) 0) |
| 6410 | 0 <= re_search (&re_comp_buf, s, len, 0, len, (struct re_registers *) 0); | 6408 | >= 0); |
| 6411 | } | 6409 | } |
| 6412 | #endif /* _REGEX_RE_COMP */ | 6410 | #endif /* _REGEX_RE_COMP */ |
| 6413 | 6411 | ||