-# Copyright 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002 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
use Carp;
use File::Basename;
-our @ISA = qw (Exporter);
-our @EXPORT = qw ($exit_code $warnings_are_errors
- &reset_local_duplicates &reset_global_duplicates
- ®ister_channel &msg &exists_channel &channel_type
- &setup_channel &setup_channel_type
- &dup_channel_setup &drop_channel_setup
- &buffer_messages &flush_messages
- US_GLOBAL US_LOCAL
- UP_NONE UP_TEXT UP_LOC_TEXT);
+use vars qw (@ISA @EXPORT %channels $me);
-our %channels;
-our $me = basename $0;
+@ISA = qw (Exporter);
+@EXPORT = qw ($exit_code $warnings_are_errors
+ &reset_local_duplicates &reset_global_duplicates
+ ®ister_channel &msg &exists_channel &channel_type
+ &setup_channel &setup_channel_type
+ &dup_channel_setup &drop_channel_setup
+ &buffer_messages &flush_messages
+ US_GLOBAL US_LOCAL
+ UP_NONE UP_TEXT UP_LOC_TEXT);
+
+$me = basename $0;
=head2 Global Variables
=cut
-our $exit_code = 0;
+use vars qw ($exit_code);
+$exit_code = 0;
=item C<$warnings_are_errors>
=cut
-our $warnings_are_errors = 0;
+use vars qw ($warnings_are_errors);
+$warnings_are_errors = 0;
=back
=cut
+use vars qw (%_default_options %_global_duplicate_messages
+ %_local_duplicate_messages);
+
# Default options for a channel.
-our %_default_options =
+%_default_options =
(
type => 'warning',
exit_code => 1,
# Filled with output messages as keys, to detect duplicates.
# The value associated to each keys is the number of occurences
# filtered out.
-our %_local_duplicate_messages = ();
-our %_global_duplicate_messages = ();
+%_local_duplicate_messages = ();
+%_global_duplicate_messages = ();
sub _reset_duplicates (\%)
{
=cut
+
+use vars qw (@backlog %buffering);
+
# See buffer_messages() and flush_messages() below.
-our %buffering = (); # The map of channel types to buffer.
-our @backlog = (); # The buffer of messages.
+%buffering = (); # The map of channel types to buffer.
+@backlog = (); # The buffer of messages.
sub msg ($$;$%)
{
=cut
-our @_saved_channels = ();
+use vars qw (@_saved_channels);
+@_saved_channels = ();
sub dup_channel_setup ()
{