From: Gurusamy Sarathy Date: Sun, 5 Dec 1999 07:49:28 +0000 (+0000) Subject: make File::Glob::glob() the default for CORE::glob() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=52bb0670c0d245e31203752693ee9e8bb24422b0;p=p5sagit%2Fp5-mst-13.2.git make File::Glob::glob() the default for CORE::glob() (old csh glob can still be had with -DPERL_EXTERNAL_GLOB) p4raw-id: //depot/perl@4649 --- diff --git a/Makefile.SH b/Makefile.SH index c17719e..7c00b5b 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -337,7 +337,7 @@ $(LIBPERL_NONSHR): perl$(OBJ_EXT) $(obj) $(AR) rcu $(LIBPERL_NONSHR) perl$(OBJ_EXT) $(obj) $(MINIPERL_NONSHR): $(LIBPERL_NONSHR) miniperlmain$(OBJ_EXT) - $(CCCMD) $(PLDLFLAGS) -DMINIPERL_BUILD -o opmini$(OBJ_EXT) op.c + $(CCCMD) $(PLDLFLAGS) -DPERL_EXTERNAL_GLOB -o opmini$(OBJ_EXT) op.c $(CC) $(LDFLAGS) -o $(MINIPERL_NONSHR) miniperlmain$(OBJ_EXT) \ opmini$(OBJ_EXT) $(LIBPERL_NONSHR) $(LIBS) diff --git a/op.c b/op.c index 155c001..4f8ab08 100644 --- a/op.c +++ b/op.c @@ -5370,7 +5370,7 @@ Perl_ck_glob(pTHX_ OP *o) if (!((gv = gv_fetchpv("glob", FALSE, SVt_PVCV)) && GvIMPORTED_CV(gv))) gv = gv_fetchpv("CORE::GLOBAL::glob", FALSE, SVt_PVCV); -#if defined(PERL_INTERNAL_GLOB) && !defined(MINIPERL_BUILD) +#if !defined(PERL_EXTERNAL_GLOB) /* XXX this can be tightened up and made more failsafe. */ if (!gv) { OP *modname = newSVOP(OP_CONST, 0, newSVpvn("File::Glob", 10)); @@ -5381,7 +5381,7 @@ Perl_ck_glob(pTHX_ OP *o) gv = gv_fetchpv("CORE::GLOBAL::glob", FALSE, SVt_PVCV); LEAVE; } -#endif /* PERL_INTERNAL_GLOB && !MINIPERL_BUILD */ +#endif /* PERL_EXTERNAL_GLOB */ if (gv && GvIMPORTED_CV(gv)) { append_elem(OP_GLOB, o, diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 47a9eb1..74bb7e7 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -333,9 +333,9 @@ change#3385, also need perlguts documentation WARNING: This is currently an experimental feature. Interfaces and implementation are likely to change. -Perl can be compiled with -DPERL_INTERNAL_GLOB to use the File::Glob -implementation of the glob() operator. This avoids using an external -csh process and the problems associated with it. +Perl now uses the File::Glob implementation of the glob() operator +automatically. This avoids using an external csh process and the +problems associated with it. =head2 Binary numbers supported @@ -1149,9 +1149,9 @@ when pruning top-level directories has been fixed. =item File::Glob -This extension implements BSD-style file globbing. It will also be -used for the internal implementation of the glob() operator if -Perl was compiled with -DPERL_INTERNAL_GLOB. See L. +This extension implements BSD-style file globbing. By default, +it will also be used for the internal implementation of the glob() +operator. See L. =item File::Spec diff --git a/win32/Makefile b/win32/Makefile index 3be8bee..90244e2 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -157,9 +157,9 @@ CCLIBDIR = $(CCHOME)\lib #BUILDOPT = $(BUILDOPT) -DPERL_POLLUTE # -# enable this to test the File::Glob implementation of CORE::glob +# enable this to disable the File::Glob implementation of CORE::glob # -#BUILDOPT = $(BUILDOPT) -DPERL_INTERNAL_GLOB +#BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB # Enabling this runs a cloned toplevel interpreter (fails tests) #BUILDOPT = $(BUILDOPT) -DTOP_CLONE diff --git a/win32/makefile.mk b/win32/makefile.mk index 206796f..a048203 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -176,9 +176,9 @@ CCLIBDIR *= $(CCHOME)\lib #BUILDOPT += -DPERL_POLLUTE # -# enable this to test the File::Glob implementation of CORE::glob +# enable this to disable the File::Glob implementation of CORE::glob # -#BUILDOPT += -DPERL_INTERNAL_GLOB +#BUILDOPT += -DPERL_EXTERNAL_GLOB # Enabling this runs a cloned toplevel interpreter (fails tests) #BUILDOPT += -DTOP_CLONE