]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
CondStack.pm: Move @cond_stack to this file
authorMatthias Paulmier <matthias.paulmier@etu.u-bordeaux.fr>
Mon, 11 Jun 2018 14:04:38 +0000 (16:04 +0200)
committerMatthias Paulmier <matthias.paulmier@etu.u-bordeaux.fr>
Fri, 22 Jun 2018 12:18:55 +0000 (14:18 +0200)
This global variable is better to be served from this module.

lib/Automake/CondStack.pm
lib/Automake/Global.pm

index 5d5260719abde776e54777d596a6a02dc1d44068..45cec9b9e118c6a54135468dc10a89239ad73016 100644 (file)
@@ -27,7 +27,12 @@ use Automake::ChannelDefs;
 use vars qw (@ISA @EXPORT);
 
 @ISA = qw (Exporter);
-@EXPORT = qw (cond_stack_if cond_stack_else cond_stack_endif);
+@EXPORT = qw (@cond_stack &cond_stack_if &cond_stack_else &cond_stack_endif);
+
+
+# This is the conditional stack, updated on if/else/endif, and
+# used to build Condition objects.
+our @cond_stack;
 
 my %_am_macro_for_cond =
   (
index 2288d655aea540006e310061deb809f7d465f928..73d0bbfac75d95a98ada0187ecf3892783c2381c 100644 (file)
@@ -43,17 +43,17 @@ use vars qw (@ISA @EXPORT);
     %sourceflags %required_targets $am_file $configure_ac $ac_gettext_location
     $seen_maint_mode $package_version_location $required_conf_file_queue
     $relative_dir $output_deps_greatest_timestamp $output_vars $output_all
-    $output_header $output_rules $output_trailer @cond_stack @include_stack
-    @all @check @check_tests %clean_files %compile_clean_files
-    %libtool_clean_directories @sources @dist_sources %object_map
-    %object_compilation_map %directory_map %dep_files @dist_targets @proglist
-    @liblist @ltliblist @dup_shortnames %known_programs %known_libraries
-    %extension_seen %language_scratch %lang_specific_files @dist_common
-    $handle_dist_run %linkers_used $need_link $must_handle_compiled_objects
-    %transformed_files %am_file_cache AC_CANONICAL_BUILD AC_CANONICAL_HOST
-    AC_CANONICAL_TARGET MOSTLY_CLEAN CLEAN DIST_CLEAN MAINTAINER_CLEAN
-    LANG_IGNORE LANG_PROCESS LANG_SUBDIR COMPILE_LIBTOOL COMPILE_ORDINARY
-    INTERNAL QUEUE_MESSAGE QUEUE_CONF_FILE QUEUE_LOCATION QUEUE_STRING);
+    $output_header $output_rules $output_trailer @include_stack @all @check
+    @check_tests %clean_files %compile_clean_files %libtool_clean_directories
+    @sources @dist_sources %object_map %object_compilation_map %directory_map
+    %dep_files @dist_targets @proglist @liblist @ltliblist @dup_shortnames
+    %known_programs %known_libraries %extension_seen %language_scratch
+    %lang_specific_files @dist_common $handle_dist_run %linkers_used
+    $need_link $must_handle_compiled_objects %transformed_files %am_file_cache
+    AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_CANONICAL_TARGET MOSTLY_CLEAN
+    CLEAN DIST_CLEAN MAINTAINER_CLEAN LANG_IGNORE LANG_PROCESS LANG_SUBDIR
+    COMPILE_LIBTOOL COMPILE_ORDINARY INTERNAL QUEUE_MESSAGE QUEUE_CONF_FILE
+    QUEUE_LOCATION QUEUE_STRING);
 
 ## ----------- ##
 ## Constants.  ##
@@ -375,10 +375,6 @@ our $output_header;
 our $output_rules;
 our $output_trailer;
 
-# This is the conditional stack, updated on if/else/endif, and
-# used to build Condition objects.
-our @cond_stack;
-
 # This holds the set of included files.
 our @include_stack;