diff options
author | Nicolas R <atoomic@cpan.org> | 2017-09-13 16:52:16 -0600 |
---|---|---|
committer | Todd Rinaldo <toddr@cpan.org> | 2017-11-11 01:07:18 -0600 |
commit | e64a0c479a78e9bc54dcc90ad1f86337aad2c797 (patch) | |
tree | 3d989a1ce2e4c63ee87c34b7f24e98f10337d29b | |
parent | 83461ff88314343113a71164e691909448c35442 (diff) | |
download | perl-e64a0c479a78e9bc54dcc90ad1f86337aad2c797.tar.gz |
Replace multiple 'use vars' by 'our' in regen.
then run ./regen_perly.pl to update perly files
-rw-r--r-- | perly.act | 4 | ||||
-rw-r--r-- | perly.h | 12 | ||||
-rw-r--r-- | perly.tab | 4 | ||||
-rw-r--r-- | regen/lib_cleanup.pl | 2 | ||||
-rw-r--r-- | regen/regen_lib.pl | 6 | ||||
-rw-r--r-- | regen_perly.pl | 1 |
6 files changed, 16 insertions, 13 deletions
@@ -1,6 +1,6 @@ /* -*- buffer-read-only: t -*- !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - This file is built by regen_perly.pl from perly.y. + This file is built by ./regen_perly.pl from perly.y. Any changes made here will be lost! */ @@ -1984,5 +1984,5 @@ case 2: /* Generated from: * 4667736d3c31a5169bab73c89d70a27dbce5ea4fe7e3c332a236f8a210aafdc2 perly.y - * 153cba5d215c1a083a0459c43f4d55c45fd0a7093c197d7247a456dcde21ea53 regen_perly.pl + * b6fae5748f9bef6db4740aa5e122b84ac5181852d42474d0ecad621fa4253306 regen_perly.pl * ex: set ro: */ @@ -1,17 +1,17 @@ /* -*- buffer-read-only: t -*- !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - This file is built by regen_perly.pl from perly.y. + This file is built by ./regen_perly.pl from perly.y. Any changes made here will be lost! */ #define PERL_BISON_VERSION 30000 #ifdef PERL_CORE -/* A Bison parser, made by GNU Bison 3.0.2. */ +/* A Bison parser, made by GNU Bison 3.0.4. */ /* Bison interface for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -160,7 +160,7 @@ S_is_opval_token(int type) { #endif /* PERL_IN_TOKE_C */ #endif /* PERL_CORE */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED -typedef union YYSTYPE YYSTYPE; + union YYSTYPE { @@ -171,6 +171,8 @@ union YYSTYPE GV *gvval; }; + +typedef union YYSTYPE YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_DECLARED 1 #endif @@ -182,5 +184,5 @@ int yyparse (void); /* Generated from: * 4667736d3c31a5169bab73c89d70a27dbce5ea4fe7e3c332a236f8a210aafdc2 perly.y - * 153cba5d215c1a083a0459c43f4d55c45fd0a7093c197d7247a456dcde21ea53 regen_perly.pl + * b6fae5748f9bef6db4740aa5e122b84ac5181852d42474d0ecad621fa4253306 regen_perly.pl * ex: set ro: */ @@ -1,6 +1,6 @@ /* -*- buffer-read-only: t -*- !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - This file is built by regen_perly.pl from perly.y. + This file is built by ./regen_perly.pl from perly.y. Any changes made here will be lost! */ @@ -1112,5 +1112,5 @@ static const toketypes yy_type_tab[] = /* Generated from: * 4667736d3c31a5169bab73c89d70a27dbce5ea4fe7e3c332a236f8a210aafdc2 perly.y - * 153cba5d215c1a083a0459c43f4d55c45fd0a7093c197d7247a456dcde21ea53 regen_perly.pl + * b6fae5748f9bef6db4740aa5e122b84ac5181852d42474d0ecad621fa4253306 regen_perly.pl * ex: set ro: */ diff --git a/regen/lib_cleanup.pl b/regen/lib_cleanup.pl index 6caf74a563..d381269b7a 100644 --- a/regen/lib_cleanup.pl +++ b/regen/lib_cleanup.pl @@ -2,7 +2,7 @@ use strict; require './regen/regen_lib.pl'; require './Porting/pod_lib.pl'; -use vars qw($TAP $Verbose); +our ($TAP, $Verbose); # For processing later my @ext; diff --git a/regen/regen_lib.pl b/regen/regen_lib.pl index 571f5195af..cbe51eda71 100644 --- a/regen/regen_lib.pl +++ b/regen/regen_lib.pl @@ -1,15 +1,15 @@ #!/usr/bin/perl -w use strict; -use vars qw($Needs_Write $Verbose @Changed $TAP); +our (@Changed, $TAP); use File::Compare; use Symbol; use Text::Wrap(); # Common functions needed by the regen scripts -$Needs_Write = $^O eq 'cygwin' || $^O eq 'os2' || $^O eq 'MSWin32'; +our $Needs_Write = $^O eq 'cygwin' || $^O eq 'os2' || $^O eq 'MSWin32'; -$Verbose = 0; +our $Verbose = 0; @ARGV = grep { not($_ eq '-q' and $Verbose = -1) } grep { not($_ eq '--tap' and $TAP = 1) } grep { not($_ eq '-v' and $Verbose = 1) } @ARGV; diff --git a/regen_perly.pl b/regen_perly.pl index b8fb5d7004..2abe8e74ea 100644 --- a/regen_perly.pl +++ b/regen_perly.pl @@ -35,6 +35,7 @@ sub usage { die "usage: $0 [ -b bison_executable ] [ file.y ]\n" } use warnings; use strict; +our $Verbose; BEGIN { require './regen/regen_lib.pl'; } my $bison = 'bison'; |