diff options
| author | Andreas Schwab | 2011-07-30 15:20:04 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2011-07-30 15:20:04 +0200 |
| commit | 31011111a14e0e16ef8ace01d60efd0afc70494a (patch) | |
| tree | 2b66acb4a51380b67392ef56f55aa896c502fc2a /src/regex.c | |
| parent | 294e60d3a0573b4443663049edf3ab6b7c232c6f (diff) | |
| download | emacs-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/regex.c')
| -rw-r--r-- | src/regex.c | 7 |
1 files changed, 3 insertions, 4 deletions
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. */ |
| 6382 | weak_function | 6382 | weak_function |
| 6383 | # endif | 6383 | # endif |
| 6384 | re_comp (s) | 6384 | re_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 | ||
| 6424 | regoff_t | 6423 | int |
| 6425 | # ifdef _LIBC | 6424 | # ifdef _LIBC |
| 6426 | weak_function | 6425 | weak_function |
| 6427 | # endif | 6426 | # endif |
| @@ -6558,7 +6557,7 @@ reg_errcode_t | |||
| 6558 | regexec (const regex_t *__restrict preg, const char *__restrict string, | 6557 | regexec (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); |