summaryrefslogtreecommitdiff
path: root/mcon/U/d_regcmp.U
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@golden-gryphon.com>2014-04-27 17:54:01 -0700
committerManoj Srivastava <srivasta@golden-gryphon.com>2014-04-27 17:54:01 -0700
commit8f5e5726134ce5b4bd436b16f367796d851df553 (patch)
tree0ce2ad130721dcf917d7f81fb8495bf0a189d266 /mcon/U/d_regcmp.U
parent02bf7be6fc0f798790ef5b2160bc89a77b909428 (diff)
Imported Upstream version 3.5-36
Diffstat (limited to 'mcon/U/d_regcmp.U')
-rw-r--r--mcon/U/d_regcmp.U44
1 files changed, 14 insertions, 30 deletions
diff --git a/mcon/U/d_regcmp.U b/mcon/U/d_regcmp.U
index 86ff230..edc8c4a 100644
--- a/mcon/U/d_regcmp.U
+++ b/mcon/U/d_regcmp.U
@@ -1,11 +1,11 @@
-?RCS: $Id: d_regcmp.U 1 2006-08-24 12:32:52Z rmanfredi $
+?RCS: $Id: d_regcmp.U 167 2013-05-08 17:58:00Z rmanfredi $
?RCS:
?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
-?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: You may redistribute only under the terms of the Artistic License,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
-?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: that same Artistic License; a copy of which may be found at the root
?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: d_regcmp.U,v $
@@ -15,66 +15,50 @@
?RCS: Revision 3.0 1993/08/18 12:06:53 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
-?MAKE:d_regcmp d_re_comp d_regcomp: Csym cat
+?MAKE:d_regcmp d_re_comp: Csym cat
?MAKE: -pick add $@ %<
-?S:d_regcomp:
-?S: This variable conditionally defines the HAS_REGCOMP symbol, which
-?S: indicates to the C program that the regcomp() routine is available
-?S: for regular patern matching (usally on POSIX.2 conforming systems).
-?S:.
+?X:
+?X: Modern code should use POSIX's regcomp().
+?X:
?S:d_regcmp:
?S: This variable conditionally defines the HAS_REGCMP symbol, which
?S: indicates to the C program that the regcmp() routine is available
-?S: for regular patern matching (usally on System V).
+?S: for regular pattern matching (usually on System V).
?S:.
?S:d_re_comp:
?S: This variable conditionally defines the HAS_RECOMP symbol, which
?S: indicates to the C program that the re_comp() routine is available
-?S: for regular patern matching (usally on BSD). If so, it is likely that
+?S: for regular pattern matching (usually on BSD). If so, it is likely that
?S: re_exec() exists.
?S:.
-?C:HAS_REGCOMP (REGCOMP):
-?C: This symbol, if defined, indicates that the regcomp() routine is
-?C: available to do some regular patern matching (usually on POSIX.2
-?C: conforming systems).
-?C:.
?C:HAS_REGCMP (REGCMP):
?C: This symbol, if defined, indicates that the regcmp() routine is
-?C: available to do some regular patern matching (usually on System V).
+?C: available to do some regular pattern matching (usually on System V).
?C:.
?C:HAS_RECOMP (RECOMP):
?C: This symbol, if defined, indicates that the re_comp() routine is
-?C: available to do some regular patern matching (usually on BSD). If so,
+?C: available to do some regular pattern matching (usually on BSD). If so,
?C: it is likely that re_exec() be available.
?C:.
-?H:#$d_regcomp HAS_REGCOMP /* POSIX.2 */
?H:#$d_regcmp HAS_REGCMP /* sysV */
?H:#$d_re_comp HAS_RECOMP /* BSD */
?H:.
?T:val
-: see if regcomp, regcmp, or re_comp exist, for regular pattern matching
+: see if regcmp or re_comp exist, for regular pattern matching
echo " "
-if set regcomp val -f d_regcomp; eval $csym; $val; then
- echo 'regcomp() found.' >&4
- d_regcomp="$define"
- d_regcmp="$undef"
- d_re_comp="$undef"
-elif set regcmp val -f d_regcmp; eval $csym; $val; then
+if set regcmp val -f d_regcmp; eval $csym; $val; then
echo 'regcmp() found.' >&4
d_regcmp="$define"
- d_regcomp="$undef"
d_re_comp="$undef"
elif set re_comp val -f d_re_comp; eval $csym; $val; then
echo 're_comp() found, assuming re_exec() also exists.' >&4
d_re_comp="$define"
- d_regcomp="$undef"
d_regcmp="$undef"
else
$cat >&4 <<EOM
-No regcomp(), regcmp() nor re_comp() found !! No regular pattern matching.
+No regcmp() nor re_comp() found.
EOM
d_regcmp="$undef"
d_re_comp="$undef"
- d_regcomp="$undef"
fi