diff options
author | Clint Adams <clint@users.sourceforge.net> | 2001-07-06 18:04:39 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2001-07-06 18:04:39 +0000 |
commit | 3dc88e102e48395a7b96ec006eafae96c08db6b0 (patch) | |
tree | c01c62ca4b489da4c23e487b3b32068c8fee08a3 /Src/Modules/pcre.c | |
parent | fe06b7a73db3af0a4ba6988c5c467a90d36a2a76 (diff) | |
download | zsh-3dc88e102e48395a7b96ec006eafae96c08db6b0.tar.gz zsh-3dc88e102e48395a7b96ec006eafae96c08db6b0.tar.xz zsh-3dc88e102e48395a7b96ec006eafae96c08db6b0.zip |
15250: still run setup even if pcre functions are unavailable
Diffstat (limited to 'Src/Modules/pcre.c')
-rw-r--r-- | Src/Modules/pcre.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c index 334522130..b6304ff01 100644 --- a/Src/Modules/pcre.c +++ b/Src/Modules/pcre.c @@ -83,7 +83,12 @@ bin_pcre_study(char *nam, char **args, char *ops, int func) } /**/ -#endif /* HAVE_PCRE_STUDY */ +#else /* !HAVE_PCRE_STUDY */ + +# define bin_pcre_study bin_notavail + +/**/ +#endif /* !HAVE_PCRE_STUDY */ /**/ static int @@ -134,11 +139,19 @@ bin_pcre_match(char *nam, char **args, char *ops, int func) return 1; } +/**/ +#else /* !(HAVE_PCRE_COMPILE && HAVE_PCRE_EXEC) */ + +# define bin_pcre_compile bin_notavail +# define bin_pcre_study bin_notavail +# define bin_pcre_match bin_notavail + +/**/ +#endif /* !(HAVE_PCRE_COMPILE && HAVE_PCRE_EXEC) */ + static struct builtin bintab[] = { BUILTIN("pcre_compile", 0, bin_pcre_compile, 1, 1, 0, "aimx", NULL), -#ifdef HAVE_PCRE_STUDY BUILTIN("pcre_study", 0, bin_pcre_study, 0, 0, 0, NULL, NULL), -#endif BUILTIN("pcre_match", 0, bin_pcre_match, 1, 2, 0, "a", NULL) }; @@ -170,6 +183,3 @@ finish_(Module m) { return 0; } - -/**/ -#endif /* HAVE_PCRE_COMPILE && HAVE_PCRE_EXEC */ |