diff options
author | Charles Bailey <bailey@newman.upenn.edu> | 1997-11-26 08:32:09 -0400 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-12-17 14:44:26 +0000 |
commit | 61bb59065bf1b12edab39b124e7373fb357e2d73 (patch) | |
tree | ebb609aa27a57d50ce9b7784a3b992673a9a6476 /perl.c | |
parent | 39e571d41067215a80f26089b260f1418caeb36b (diff) | |
download | perl-61bb59065bf1b12edab39b124e7373fb357e2d73.tar.gz |
Lots of VMS changes. vms/gen_shrfls.pl (which parses header files)
needs rewriting now that we use perlvars.h and foovar.h:
Subject: [PATCH] 5.004_54 under VMS (fwd)
p4raw-id: //depot/perl@374
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -913,6 +913,7 @@ print \" \\@INC:\\n @INC\\n\";"); /* now parse the script */ + SETERRNO(0,SS$_NORMAL); error_count = 0; if (yyparse() || error_count) { if (minus_c) @@ -1823,7 +1824,7 @@ SV *sv; * * Assuming SEARCH_EXTS is C<".foo",".bar",NULL>, PATH search * proceeds as follows: - * If DOSISH: + * If DOSISH or VMSISH: * + look for ./scriptname{,.foo,.bar} * + search the PATH for scriptname{,.foo,.bar} * @@ -1833,11 +1834,20 @@ SV *sv; */ #ifdef VMS +# ifdef ALWAYS_DEFTYPES + len = strlen(scriptname); + if (!(len == 1 && *scriptname == '-') && scriptname[len-1] != ':') { + int hasdir, idx = 0, deftypes = 1; + bool seen_dot = 1; + + hasdir = !dosearch || (strpbrk(scriptname,":[</") != Nullch) ; +# else if (dosearch) { int hasdir, idx = 0, deftypes = 1; bool seen_dot = 1; hasdir = (strpbrk(scriptname,":[</") != Nullch) ; +# endif /* The first time through, just add SEARCH_EXTS to whatever we * already have, so we can check for default file types. */ while (deftypes || |