aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2011-07-30 15:20:04 +0200
committerAndreas Schwab2011-07-30 15:20:04 +0200
commit31011111a14e0e16ef8ace01d60efd0afc70494a (patch)
tree2b66acb4a51380b67392ef56f55aa896c502fc2a /src
parent294e60d3a0573b4443663049edf3ab6b7c232c6f (diff)
downloademacs-31011111a14e0e16ef8ace01d60efd0afc70494a.tar.gz
emacs-31011111a14e0e16ef8ace01d60efd0afc70494a.zip
* src/regex.c (re_comp): Protoize.
(re_exec): Fix return type. (regexec): Fix type of `ret'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/regex.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6039a54c559..623ccc6f4be 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12011-07-30 Andreas Schwab <schwab@linux-m68k.org>
2
3 * regex.c (re_comp): Protoize.
4 (re_exec): Fix return type.
5 (regexec): Fix type of `ret'. (Bug#9203)
6
12011-07-29 Paul Eggert <eggert@cs.ucla.edu> 72011-07-29 Paul Eggert <eggert@cs.ucla.edu>
2 8
3 * image.c (check_image_size): Use 1024x1024 if unknown frame (Bug#9189). 9 * image.c (check_image_size): Use 1024x1024 if unknown frame (Bug#9189).
diff --git a/src/regex.c b/src/regex.c
index 862f848976c..545a198acd7 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -6381,8 +6381,7 @@ char *
6381 regcomp/regexec below without link errors. */ 6381 regcomp/regexec below without link errors. */
6382weak_function 6382weak_function
6383# endif 6383# endif
6384re_comp (s) 6384re_comp (const char *s)
6385 const char *s;
6386{ 6385{
6387 reg_errcode_t ret; 6386 reg_errcode_t ret;
6388 6387
@@ -6421,7 +6420,7 @@ re_comp (s)
6421} 6420}
6422 6421
6423 6422
6424regoff_t 6423int
6425# ifdef _LIBC 6424# ifdef _LIBC
6426weak_function 6425weak_function
6427# endif 6426# endif
@@ -6558,7 +6557,7 @@ reg_errcode_t
6558regexec (const regex_t *__restrict preg, const char *__restrict string, 6557regexec (const regex_t *__restrict preg, const char *__restrict string,
6559 size_t nmatch, regmatch_t pmatch[__restrict_arr], int eflags) 6558 size_t nmatch, regmatch_t pmatch[__restrict_arr], int eflags)
6560{ 6559{
6561 reg_errcode_t ret; 6560 regoff_t ret;
6562 struct re_registers regs; 6561 struct re_registers regs;
6563 regex_t private_preg; 6562 regex_t private_preg;
6564 size_t len = strlen (string); 6563 size_t len = strlen (string);