From: Craig A. Berry Date: Sat, 28 May 2005 23:18:46 +0000 (-0500) Subject: VMS build update for blead X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=94a11853edc681701a5fe80474ba2a421f2a4aef;p=p5sagit%2Fp5-mst-13.2.git VMS build update for blead From: "Craig A. Berry" Message-Id: <429942A6.10601@mac.com> p4raw-id: //depot/perl@24613 --- diff --git a/doio.c b/doio.c index f5f149b..e018964 100644 --- a/doio.c +++ b/doio.c @@ -2357,8 +2357,8 @@ Perl_start_glob (pTHX_ SV *tmpglob, IO *io) if ((tmpfp = PerlIO_tmpfile()) != NULL) { Stat_t st; if (!PerlLIO_stat(SvPVX_const(tmpglob),&st) && S_ISDIR(st.st_mode)) - ok = ((wilddsc.dsc$a_pointer = tovmspath(SvPVX_const(tmpglob),vmsspec)) != NULL); - else ok = ((wilddsc.dsc$a_pointer = tovmsspec(SvPVX_const(tmpglob),vmsspec)) != NULL); + ok = ((wilddsc.dsc$a_pointer = tovmspath(SvPVX(tmpglob),vmsspec)) != NULL); + else ok = ((wilddsc.dsc$a_pointer = tovmsspec(SvPVX(tmpglob),vmsspec)) != NULL); if (ok) wilddsc.dsc$w_length = (unsigned short int) strlen(wilddsc.dsc$a_pointer); for (cp=wilddsc.dsc$a_pointer; ok && cp && *cp; cp++) if (*cp == '?') *cp = '%'; /* VMS style single-char wildcard */ diff --git a/perly.c b/perly.c index 91f3bb9..6b9e376 100644 --- a/perly.c +++ b/perly.c @@ -322,7 +322,7 @@ Perl_yyparse (pTHX) #ifdef DEBUGGING yyns_sv = NEWSV(73, YYINITDEPTH * sizeof(char *)); SAVEFREESV(yyns_sv); - yyns = SvPVX_const(yyns_sv); + yyns = (const char **) SvPVX(yyns_sv); yynsp = yyns; #endif @@ -366,7 +366,7 @@ Perl_yyparse (pTHX) yyvs = (YYSTYPE *) SvPVX(yyvs_sv); #ifdef DEBUGGING SvGROW(yyns_sv, yystacksize * sizeof(char *)); - yyns = SvPVX_const(yyns_sv); + yyns = (const char **) SvPVX(yyns_sv); if (! yyns) goto yyoverflowlab; yynsp = yyns + yysize - 1; diff --git a/vms/descrip_mms.template b/vms/descrip_mms.template index cfd929a..1801f1c 100644 --- a/vms/descrip_mms.template +++ b/vms/descrip_mms.template @@ -497,7 +497,7 @@ unidatafiles.ts : $(MINIPERL_EXE) [.lib]Config.pm [.lib.unicore]mktables @ If F$Search("$(MMS$TARGET)").nes."" Then Delete/NoLog/NoConfirm $(MMS$TARGET);* @ Copy/NoConfirm _NLA0: $(MMS$TARGET) -[.ext.dynaloader]dl_vms.c : [.ext.dynaloader]dl_vms.xs $(ARCHDIR)Config.pm [.lib.ExtUtils]XSSymSet.pm $(MINIPERL_EXE) +[.ext.dynaloader]dl_vms.c : [.ext.dynaloader]dl_vms.xs $(ARCHDIR)Config.pm [.lib.ExtUtils]XSSymSet.pm $(MINIPERL_EXE) [.lib.VMS]Filespec.pm $(XSUBPP) $(MMS$SOURCE) >$(MMS$TARGET) [.ext.dynaloader]dl_vms$(O) : [.ext.dynaloader]dl_vms.c @@ -1575,7 +1575,7 @@ run$(O) : run.c $(h) $(CC) $(CORECFLAGS) $(MMS$SOURCE) scope$(O) : scope.c $(h) $(CC) $(CORECFLAGS) $(MMS$SOURCE) -sv$(O) : sv.c +sv$(O) : sv.c $(h) $(CC) $(CORECFLAGS) $(MMS$SOURCE) taint$(O) : taint.c $(h) $(CC) $(CORECFLAGS) $(MMS$SOURCE) diff --git a/vms/gen_shrfls.pl b/vms/gen_shrfls.pl index f8bf6b1..50ae3e3 100644 --- a/vms/gen_shrfls.pl +++ b/vms/gen_shrfls.pl @@ -152,7 +152,7 @@ sub scan_func { $line =~ s/\b(IV|Off_t|Size_t|SSize_t|void)\b//i; if ( $line =~ /(\w+)\s*\(/ ) { print "\troutine name is \\$1\\\n" if $debug > 1; - if ($1 eq 'main' || $1 eq 'perl_init_ext') { + if ($1 eq 'main' || $1 eq 'perl_init_ext' || $1 eq '__attribute__format__') { print "\tskipped\n" if $debug > 1; } else { $fcns{$1}++ } diff --git a/vms/vms.c b/vms/vms.c index db1596f..e7687ac 100644 --- a/vms/vms.c +++ b/vms/vms.c @@ -6465,8 +6465,8 @@ Perl_my_localtime(pTHX_ const time_t *timep) */ static const long int utime_baseadjust[2] = { 0x4beb4000, 0x7c9567 }; -/*{{{int my_utime(char *path, struct utimbuf *utimes)*/ -int Perl_my_utime(pTHX_ char *file, struct utimbuf *utimes) +/*{{{int my_utime(const char *path, const struct utimbuf *utimes)*/ +int Perl_my_utime(pTHX_ const char *file, const struct utimbuf *utimes) { register int i; long int bintime[2], len = 2, lowbit, unixtime, @@ -6499,7 +6499,7 @@ int Perl_my_utime(pTHX_ char *file, struct utimbuf *utimes) set_vaxc_errno(LIB$_INVARG); return -1; } - if (do_tovmsspec(file,vmsspec,0) == NULL) return -1; + if (do_tovmsspec((char *)file,vmsspec,0) == NULL) return -1; if (utimes != NULL) { /* Convert Unix time (seconds since 01-JAN-1970 00:00:00.00) @@ -6721,7 +6721,7 @@ is_null_device(name) * subset of the applicable information. */ bool -Perl_cando(pTHX_ Mode_t bit, Uid_t effective, Stat_t *statbufp) +Perl_cando(pTHX_ Mode_t bit, Uid_t effective, const Stat_t *statbufp) { char fname_phdev[NAM$C_MAXRSS+1]; if (statbufp == &PL_statcache) return cando_by_name(bit,effective,namecache); diff --git a/vms/vmsish.h b/vms/vmsish.h index 319be92..dea963f 100644 --- a/vms/vmsish.h +++ b/vms/vmsish.h @@ -828,7 +828,7 @@ unsigned int Perl_sig_to_vmscondition (int); int Perl_my_kill (int, int); void Perl_csighandler_init (void); #endif -int Perl_my_utime (pTHX_ char *, struct utimbuf *); +int Perl_my_utime (pTHX_ const char *, const struct utimbuf *); void Perl_vms_image_init (int *, char ***); struct dirent * Perl_readdir (pTHX_ DIR *); int Perl_readdir_r(pTHX_ DIR *, struct dirent *, struct dirent **);