aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.h
diff options
context:
space:
mode:
authorPaul Eggert1994-10-26 22:43:45 +0000
committerPaul Eggert1994-10-26 22:43:45 +0000
commit273c0c509d72da33ba08af0fded4b1952c033cea (patch)
tree5cbc3ae8c9990e061178c94652b09f22d4114676 /src/regex.h
parent83d8b97d936755588b8fb00134baea8b301c9500 (diff)
downloademacs-273c0c509d72da33ba08af0fded4b1952c033cea.tar.gz
emacs-273c0c509d72da33ba08af0fded4b1952c033cea.zip
(re_comp, re_exec): Define this obsolete 4.2bsd
interface only if the new feature test macro _REGEX_RE_COMP is defined. This avoids a clash with Cray YMP include files.
Diffstat (limited to 'src/regex.h')
-rw-r--r--src/regex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regex.h b/src/regex.h
index 40f684cb8e5..55927f627c9 100644
--- a/src/regex.h
+++ b/src/regex.h
@@ -460,9 +460,11 @@ extern void re_set_registers
460 _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs, 460 _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs,
461 unsigned num_regs, regoff_t *starts, regoff_t *ends)); 461 unsigned num_regs, regoff_t *starts, regoff_t *ends));
462 462
463#ifdef _REGEX_RE_COMP
463/* 4.2 bsd compatibility. */ 464/* 4.2 bsd compatibility. */
464extern char *re_comp _RE_ARGS ((const char *)); 465extern char *re_comp _RE_ARGS ((const char *));
465extern int re_exec _RE_ARGS ((const char *)); 466extern int re_exec _RE_ARGS ((const char *));
467#endif
466 468
467/* POSIX compatibility. */ 469/* POSIX compatibility. */
468extern int regcomp _RE_ARGS ((regex_t *preg, const char *pattern, int cflags)); 470extern int regcomp _RE_ARGS ((regex_t *preg, const char *pattern, int cflags));