File Coverage

File:/usr/local/share/autoconf/Autom4te/Channels.pm
Coverage:63.7%

linestmtbrancondsubpodtimecode
1# Copyright (C) 2002, 2004, 2006, 2008, 2010 Free Software Foundation,
2# Inc.
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2, or (at your option)
7# any later version.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13
14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17###############################################################
18# The main copy of this file is in Automake's CVS repository. #
19# Updates should be sent to automake-patches@gnu.org. #
20###############################################################
21
22package Autom4te::Channels;
23
24 - 68
=head1 NAME

Autom4te::Channels - support functions for error and warning management

=head1 SYNOPSIS

  use Autom4te::Channels;

  # Register a channel to output warnings about unused variables.
  register_channel 'unused', type => 'warning';

  # Register a channel for system errors.
  register_channel 'system', type => 'error', exit_code => 4;

  # Output a message on channel 'unused'.
  msg 'unused', "$file:$line", "unused variable `$var'";

  # Make the 'unused' channel silent.
  setup_channel 'unused', silent => 1;

  # Turn on all channels of type 'warning'.
  setup_channel_type 'warning', silent => 0;

  # Redirect all channels to push messages on a Thread::Queue using
  # the specified serialization key.
  setup_channel_queue $queue, $key;

  # Output a message pending in a Thread::Queue.
  pop_channel_queue $queue;

  # Treat all warnings as errors.
  $warnings_are_errors = 1;

  # Exit with the greatest exit code encountered so far.
  exit $exit_code;

=head1 DESCRIPTION

This perl module provides support functions for handling diagnostic
channels in programs.  Channels can be registered to convey fatal,
error, warning, or debug messages.  Each channel has various options
(e.g. is the channel silent, should duplicate messages be removed,
etc.) that can also be overridden on a per-message basis.

=cut
69
70
2774
2774
2774
50477
6699
3352
use 5.005;
71
2774
2774
2774
8787
2591
7333
use strict;
72
2774
2774
2774
9786
2880
11581
use Exporter;
73
2774
2774
2774
9962
4361
9879
use Carp;
74
2774
2774
2774
11112
2528
21235
use File::Basename;
75
76
2774
2774
2774
10204
2509
7612
use vars qw (@ISA @EXPORT %channels $me);
77
78@ISA = qw (Exporter);
79@EXPORT = qw ($exit_code $warnings_are_errors
80              &reset_local_duplicates &reset_global_duplicates
81              &register_channel &msg &exists_channel &channel_type
82              &setup_channel &setup_channel_type
83              &dup_channel_setup &drop_channel_setup
84              &buffer_messages &flush_messages
85              &setup_channel_queue &pop_channel_queue
86              US_GLOBAL US_LOCAL
87              UP_NONE UP_TEXT UP_LOC_TEXT);
88
89$me = basename $0;
90
91 - 100
=head2 Global Variables

=over 4

=item C<$exit_code>

The greatest exit code seen so far. C<$exit_code> is updated from
the C<exit_code> options of C<fatal> and C<error> channels.

=cut
101
102
2774
2774
2774
15870
5736
6965
use vars qw ($exit_code);
103$exit_code = 0;
104
105 - 110
=item C<$warnings_are_errors>

Set this variable to 1 if warning messages should be treated as
errors (i.e. if they should update C<$exit_code>).

=cut
111
112
2774
2774
2774
11182
4359
9033
use vars qw ($warnings_are_errors);
113$warnings_are_errors = 0;
114
115=back
116
117 - 131
=head2 Constants

=over 4

=item C<UP_NONE>, C<UP_TEXT>, C<UP_LOC_TEXT>

Possible values for the C<uniq_part> options.  This selects the part
of the message that should be considered when filtering out duplicates.
If C<UP_LOC_TEXT> is used, the location and the explanation message
are used for filtering.  If C<UP_TEXT> is used, only the explanation
message is used (so the same message will be filtered out if it appears
at different locations).  C<UP_NONE> means that duplicate messages
should be output.

=cut
132
133
2774
2774
2774
10401
2480
16430
use constant UP_NONE => 0;
134
2774
2774
2774
10635
2940
6521
use constant UP_TEXT => 1;
135
2774
2774
2774
10572
6373
6920
use constant UP_LOC_TEXT => 2;
136
137 - 146
=item C<US_LOCAL>, C<US_GLOBAL>

Possible values for the C<uniq_scope> options.
Use C<US_GLOBAL> for error messages that should be printed only
once during the execution of the program, C<US_LOCAL> for message that
should be printed only once per file.  (Actually, C<Channels> does not
do this now when files are changed, it relies on you calling
C<reset_local_duplicates> when this happens.)

=cut
147
148# possible values for uniq_scope
149
2774
2774
2774
10041
2543
9104
use constant US_LOCAL => 0;
150
2774
2774
2774
13204
3625
9889
use constant US_GLOBAL => 1;
151
152=back
153
154 - 261
=head2 Options

Channels accept the options described below.  These options can be
passed as a hash to the C<register_channel>, C<setup_channel>, and C<msg>
functions.  The possible keys, with their default value are:

=over

=item C<type =E<gt> 'warning'>

The type of the channel.  One of C<'debug'>, C<'warning'>, C<'error'>, or
C<'fatal'>.  Fatal messages abort the program when they are output.
Error messages update the exit status.  Debug and warning messages are
harmless, except that warnings are treated as errors if
C<$warnings_are_errors> is set.

=item C<exit_code =E<gt> 1>

The value to update C<$exit_code> with when a fatal or error message
is emitted.  C<$exit_code> is also updated for warnings output
when C<$warnings_are_errors> is set.

=item C<file =E<gt> \*STDERR>

The file where the error should be output.

=item C<silent =E<gt> 0>

Whether the channel should be silent.  Use this do disable a
category of warning, for instance.

=item C<ordered =E<gt> 1>

Whether, with multi-threaded execution, the message should be queued
for ordered output.

=item C<uniq_part =E<gt> UP_LOC_TEXT>

The part of the message subject to duplicate filtering.  See the
documentation for the C<UP_NONE>, C<UP_TEXT>, and C<UP_LOC_TEXT>
constants above.

C<uniq_part> can also be set to an arbitrary string that will be used
instead of the message when considering duplicates.

=item C<uniq_scope =E<gt> US_LOCAL>

The scope of duplicate filtering.  See the documentation for the
C<US_LOCAL>, and C<US_GLOBAL> constants above.

=item C<header =E<gt> ''>

A string to prepend to each message emitted through this channel.
With partial messages, only the first part will have C<header>
prepended.

=item C<footer =E<gt> ''>

A string to append to each message emitted through this channel.
With partial messages, only the final part will have C<footer>
appended.

=item C<backtrace =E<gt> 0>

Die with a stack backtrace after displaying the message.

=item C<partial =E<gt> 0>

When set, indicates a partial message that should
be output along with the next message with C<partial> unset.
Several partial messages can be stacked this way.

Duplicate filtering will apply to the I<global> message resulting from
all I<partial> messages, using the options from the last (non-partial)
message.  Linking associated messages is the main reason to use this
option.

For instance the following messages

  msg 'channel', 'foo:2', 'redefinition of A ...';
  msg 'channel', 'foo:1', '... A previously defined here';
  msg 'channel', 'foo:3', 'redefinition of A ...';
  msg 'channel', 'foo:1', '... A previously defined here';

will result in

 foo:2: redefinition of A ...
 foo:1: ... A previously defined here
 foo:3: redefinition of A ...

where the duplicate "I<... A previously defined here>" has been
filtered out.

Linking these messages using C<partial> as follows will prevent the
fourth message to disappear.

  msg 'channel', 'foo:2', 'redefinition of A ...', partial => 1;
  msg 'channel', 'foo:1', '... A previously defined here';
  msg 'channel', 'foo:3', 'redefinition of A ...', partial => 1;
  msg 'channel', 'foo:1', '... A previously defined here';

Note that because the stack of C<partial> messages is printed with the
first non-C<partial> message, most options of C<partial> messages will
be ignored.

=back

=cut
262
263
2774
7402
use vars qw (%_default_options %_global_duplicate_messages
264
2774
2774
9707
2563
             %_local_duplicate_messages);
265
266# Default options for a channel.
267%_default_options =
268  (
269   type => 'warning',
270   exit_code => 1,
271   file => \*STDERR,
272   silent => 0,
273   ordered => 1,
274   queue => 0,
275   queue_key => undef,
276   uniq_scope => US_LOCAL,
277   uniq_part => UP_LOC_TEXT,
278   header => '',
279   footer => '',
280   backtrace => 0,
281   partial => 0,
282   );
283
284# Filled with output messages as keys, to detect duplicates.
285# The value associated with each key is the number of occurrences
286# filtered out.
287%_local_duplicate_messages = ();
288%_global_duplicate_messages = ();
289
290sub _reset_duplicates (\%)
291{
292
0
0
  my ($ref) = @_;
293
0
0
  my $dup = 0;
294
0
0
  foreach my $k (keys %$ref)
295    {
296
0
0
      $dup += $ref->{$k};
297    }
298
0
0
  %$ref = ();
299
0
0
  return $dup;
300}
301
302
303 - 312
=head2 Functions

=over 4

=item C<reset_local_duplicates ()>

Reset local duplicate messages (see C<US_LOCAL>), and
return the number of messages that have been filtered out.

=cut
313
314sub reset_local_duplicates ()
315{
316
0
1
0
  return _reset_duplicates %_local_duplicate_messages;
317}
318
319 - 324
=item C<reset_global_duplicates ()>

Reset local duplicate messages (see C<US_GLOBAL>), and
return the number of messages that have been filtered out.

=cut
325
326sub reset_global_duplicates ()
327{
328
0
1
0
  return _reset_duplicates %_global_duplicate_messages;
329}
330
331sub _merge_options (\%%)
332{
333
68617
166239
  my ($hash, %options) = @_;
334
68617
83001
  local $_;
335
336
68617
154654
  foreach (keys %options)
337    {
338
87605
155891
      if (exists $hash->{$_})
339        {
340
87605
199651
          $hash->{$_} = $options{$_}
341        }
342      else
343        {
344
0
0
          confess "unknown option `$_'";
345        }
346    }
347
68617
228648
  if ($hash->{'ordered'})
348    {
349
40448
94398
      confess "fatal messages cannot be ordered"
350        if $hash->{'type'} eq 'fatal';
351
40448
118728
      confess "backtrace cannot be output on ordered messages"
352        if $hash->{'backtrace'};
353    }
354}
355
356 - 361
=item C<register_channel ($name, [%options])>

Declare channel C<$name>, and override the default options
with those listed in C<%options>.

=cut
362
363sub register_channel ($;%)
364{
365
41610
1
96273
  my ($name, %options) = @_;
366
41610
215865
  my %channel_opts = %_default_options;
367
41610
120937
  _merge_options %channel_opts, %options;
368
41610
175828
  $channels{$name} = \%channel_opts;
369}
370
371 - 375
=item C<exists_channel ($name)>

Returns true iff channel C<$name> has been registered.

=cut
376
377sub exists_channel ($)
378{
379
2774
1
7070
  my ($name) = @_;
380
2774
31320
  return exists $channels{$name};
381}
382
383 - 388
=item C<channel_type ($name)>

Returns the type of channel C<$name> if it has been registered.
Returns the empty string otherwise.

=cut
389
390sub channel_type ($)
391{
392
2774
1
14723
  my ($name) = @_;
393
2774
9291
  return $channels{$name}{'type'} if exists_channel $name;
394
0
0
  return '';
395}
396
397# _format_sub_message ($LEADER, $MESSAGE)
398# ---------------------------------------
399# Split $MESSAGE at new lines and add $LEADER to each line.
400sub _format_sub_message ($$)
401{
402
350
587
  my ($leader, $message) = @_;
403
350
1407
  return $leader . join ("\n" . $leader, split ("\n", $message)) . "\n";
404}
405
406# Store partial messages here. (See the 'partial' option.)
407
2774
2774
2774
12291
2808
45886
use vars qw ($partial);
408$partial = '';
409
410# _format_message ($LOCATION, $MESSAGE, %OPTIONS)
411# -----------------------------------------------
412# Format the message. Return a string ready to print.
413sub _format_message ($$%)
414{
415
350
1283
  my ($location, $message, %opts) = @_;
416
350
1327
  my $msg = ($partial eq '' ? $opts{'header'} : '') . $message
417            . ($opts{'partial'} ? '' : $opts{'footer'});
418
350
572
  if (ref $location)
419    {
420      # If $LOCATION is a reference, assume it's an instance of the
421      # Autom4te::Location class and display contexts.
422
0
0
      my $loc = $location->get || $me;
423
0
0
      $msg = _format_sub_message ("$loc: ", $msg);
424
0
0
      for my $pair ($location->get_contexts)
425        {
426
0
0
          $msg .= _format_sub_message ($pair->[0] . ": ", $pair->[1]);
427        }
428    }
429  else
430    {
431
350
646
      $location ||= $me;
432
350
773
      $msg = _format_sub_message ("$location: ", $msg);
433    }
434
350
925
  return $msg;
435}
436
437# _enqueue ($QUEUE, $KEY, $UNIQ_SCOPE, $TO_FILTER, $MSG, $FILE)
438# -------------------------------------------------------------
439# Push message on a queue, to be processed by another thread.
440sub _enqueue ($$$$$$)
441{
442
0
0
  my ($queue, $key, $uniq_scope, $to_filter, $msg, $file) = @_;
443
0
0
  $queue->enqueue ($key, $msg, $to_filter, $uniq_scope);
444
0
0
  confess "message queuing works only for STDERR"
445    if $file ne \*STDERR;
446}
447
448# _dequeue ($QUEUE)
449# -----------------
450# Pop a message from a queue, and print, similarly to how
451# _print_message would do it. Return 0 if the queue is
452# empty. Note that the key has already been dequeued.
453sub _dequeue ($)
454{
455
0
0
  my ($queue) = @_;
456
0
0
  my $msg = $queue->dequeue || return 0;
457
0
0
  my $to_filter = $queue->dequeue;
458
0
0
  my $uniq_scope = $queue->dequeue;
459
0
0
  my $file = \*STDERR;
460
461
0
0
  if ($to_filter ne '')
462    {
463      # Do we want local or global uniqueness?
464
0
0
      my $dups;
465
0
0
      if ($uniq_scope == US_LOCAL)
466        {
467
0
0
          $dups = \%_local_duplicate_messages;
468        }
469      elsif ($uniq_scope == US_GLOBAL)
470        {
471
0
0
          $dups = \%_global_duplicate_messages;
472        }
473      else
474        {
475
0
0
          confess "unknown value for uniq_scope: " . $uniq_scope;
476        }
477
478      # Update the hash of messages.
479
0
0
      if (exists $dups->{$to_filter})
480        {
481
0
0
          ++$dups->{$to_filter};
482
0
0
          return 1;
483        }
484      else
485        {
486
0
0
          $dups->{$to_filter} = 0;
487        }
488    }
489
0
0
  print $file $msg;
490
0
0
  return 1;
491}
492
493
494# _print_message ($LOCATION, $MESSAGE, %OPTIONS)
495# ----------------------------------------------
496# Format the message, check duplicates, and print it.
497sub _print_message ($$%)
498{
499
18687
112981
  my ($location, $message, %opts) = @_;
500
501
18687
129387
  return 0 if ($opts{'silent'});
502
503
350
1087
  my $msg = _format_message ($location, $message, %opts);
504
350
828
  if ($opts{'partial'})
505    {
506      # Incomplete message. Store, don't print.
507
284
376
      $partial .= $msg;
508
284
1489
      return;
509    }
510  else
511    {
512      # Prefix with any partial message send so far.
513
66
143
      $msg = $partial . $msg;
514
66
133
      $partial = '';
515    }
516
517
66
494
  msg ('note', '', 'warnings are treated as errors', uniq_scope => US_GLOBAL)
518    if ($opts{'type'} eq 'warning' && $warnings_are_errors);
519
520  # Check for duplicate message if requested.
521
66
87
  my $to_filter;
522
66
270
  if ($opts{'uniq_part'} ne UP_NONE)
523    {
524      # Which part of the error should we match?
525
66
344
      if ($opts{'uniq_part'} eq UP_TEXT)
526        {
527
0
0
          $to_filter = $message;
528        }
529      elsif ($opts{'uniq_part'} eq UP_LOC_TEXT)
530        {
531
66
116
          $to_filter = $msg;
532        }
533      else
534        {
535
0
0
          $to_filter = $opts{'uniq_part'};
536        }
537
538      # Do we want local or global uniqueness?
539
66
74
      my $dups;
540
66
180
      if ($opts{'uniq_scope'} == US_LOCAL)
541        {
542
66
155
          $dups = \%_local_duplicate_messages;
543        }
544      elsif ($opts{'uniq_scope'} == US_GLOBAL)
545        {
546
0
0
          $dups = \%_global_duplicate_messages;
547        }
548      else
549        {
550
0
0
          confess "unknown value for uniq_scope: " . $opts{'uniq_scope'};
551        }
552
553      # Update the hash of messages.
554
66
213
      if (exists $dups->{$to_filter})
555        {
556
0
0
          ++$dups->{$to_filter};
557
0
0
          return 0;
558        }
559      else
560        {
561
66
317
          $dups->{$to_filter} = 0;
562        }
563    }
564
66
117
  my $file = $opts{'file'};
565
66
406
  if ($opts{'ordered'} && $opts{'queue'})
566    {
567
0
0
      _enqueue ($opts{'queue'}, $opts{'queue_key'}, $opts{'uniq_scope'},
568                $to_filter, $msg, $file);
569    }
570  else
571    {
572
66
7856
      print $file $msg;
573    }
574
66
347
  return 1;
575}
576
577 - 620
=item C<msg ($channel, $location, $message, [%options])>

Emit a message on C<$channel>, overriding some options of the channel with
those specified in C<%options>.  Obviously C<$channel> must have been
registered with C<register_channel>.

C<$message> is the text of the message, and C<$location> is a location
associated to the message.

For instance to complain about some unused variable C<mumble>
declared at line 10 in F<foo.c>, one could do:

  msg 'unused', 'foo.c:10', "unused variable `mumble'";

If channel C<unused> is not silent (and if this message is not a duplicate),
the following would be output:

  foo.c:10: unused variable `mumble'

C<$location> can also be an instance of C<Autom4te::Location>.  In this
case, the stack of contexts will be displayed in addition.

If C<$message> contains newline characters, C<$location> is prepended
to each line.  For instance,

  msg 'error', 'somewhere', "1st line\n2nd line";

becomes

  somewhere: 1st line
  somewhere: 2nd line

If C<$location> is an empty string, it is replaced by the name of the
program.  Actually, if you don't use C<%options>, you can even
elide the empty C<$location>.  Thus

  msg 'fatal', '', 'fatal error';
  msg 'fatal', 'fatal error';

both print

  progname: fatal error

=cut
621
622
623
2774
2774
2774
27538
8885
11976
use vars qw (@backlog %buffering);
624
625# See buffer_messages() and flush_messages() below.
626%buffering = (); # The map of channel types to buffer.
627@backlog = (); # The buffer of messages.
628
629sub msg ($$;$%)
630{
631
18687
1
63484
  my ($channel, $location, $message, %options) = @_;
632
633
18687
52159
  if (! defined $message)
634    {
635
16
68
      $message = $location;
636
16
33
      $location = '';
637    }
638
639
18687
51347
  confess "unknown channel $channel" unless exists $channels{$channel};
640
641
18687
18687
23285
211109
  my %opts = %{$channels{$channel}};
642
18687
88341
  _merge_options (%opts, %options);
643
644
18687
51044
  if (exists $buffering{$opts{'type'}})
645    {
646
0
0
      push @backlog, [$channel, $location->clone, $message, %options];
647
0
0
      return;
648    }
649
650  # Print the message if needed.
651
18687
81876
  if (_print_message ($location, $message, %opts))
652    {
653      # Adjust exit status.
654
66
935
      if ($opts{'type'} eq 'error'
655          || $opts{'type'} eq 'fatal'
656          || ($opts{'type'} eq 'warning' && $warnings_are_errors))
657        {
658
20
44
          my $es = $opts{'exit_code'};
659
20
96
          $exit_code = $es if $es > $exit_code;
660        }
661
662      # Die on fatal messages.
663
66
166
      confess if $opts{'backtrace'};
664
66
407
      if ($opts{'type'} eq 'fatal')
665        {
666          # flush messages explicitly here, needed in worker threads.
667
16
245
          STDERR->flush;
668
16
36
          exit $exit_code;
669        }
670    }
671}
672
673
674 - 678
=item C<setup_channel ($channel, %options)>

Override the options of C<$channel> with those specified by C<%options>.

=cut
679
680sub setup_channel ($%)
681{
682
8320
1
31819
  my ($name, %opts) = @_;
683
8320
25626
  confess "unknown channel $name" unless exists $channels{$name};
684
8320
8320
10894
37812
  _merge_options %{$channels{$name}}, %opts;
685}
686
687 - 692
=item C<setup_channel_type ($type, %options)>

Override the options of any channel of type C<$type>
with those specified by C<%options>.

=cut
693
694sub setup_channel_type ($%)
695{
696
0
1
  my ($type, %opts) = @_;
697
0
  foreach my $channel (keys %channels)
698    {
699
0
      setup_channel $channel, %opts
700        if $channels{$channel}{'type'} eq $type;
701    }
702}
703
704 - 717
=item C<dup_channel_setup ()>, C<drop_channel_setup ()>

Sometimes it is necessary to make temporary modifications to channels.
For instance one may want to disable a warning while processing a
particular file, and then restore the initial setup.  These two
functions make it easy: C<dup_channel_setup ()> saves a copy of the
current configuration for later restoration by
C<drop_channel_setup ()>.

You can think of this as a stack of configurations whose first entry
is the active one.  C<dup_channel_setup ()> duplicates the first
entry, while C<drop_channel_setup ()> just deletes it.

=cut
718
719
2774
2774
2774
18210
6313
7398
use vars qw (@_saved_channels @_saved_werrors);
720@_saved_channels = ();
721@_saved_werrors = ();
722
723sub dup_channel_setup ()
724{
725
0
1
  my %channels_copy;
726
0
  foreach my $k1 (keys %channels)
727    {
728
0
0
      $channels_copy{$k1} = {%{$channels{$k1}}};
729    }
730
0
  push @_saved_channels, \%channels_copy;
731
0
  push @_saved_werrors, $warnings_are_errors;
732}
733
734sub drop_channel_setup ()
735{
736
0
1
  my $saved = pop @_saved_channels;
737
0
  %channels = %$saved;
738
0
  $warnings_are_errors = pop @_saved_werrors;
739}
740
741 - 761
=item C<buffer_messages (@types)>, C<flush_messages ()>

By default, when C<msg> is called, messages are processed immediately.

Sometimes it is necessary to delay the output of messages.
For instance you might want to make diagnostics before
channels have been completely configured.

After C<buffer_messages(@types)> has been called, messages sent with
C<msg> to a channel whose type is listed in C<@types> will be stored in a
list for later processing.

This backlog of messages is processed when C<flush_messages> is
called, with the current channel options (not the options in effect,
at the time of C<msg>).  So for instance, if some channel was silenced
in the meantime, messages to this channel will not be printed.

C<flush_messages> cancels the effect of C<buffer_messages>.  Following
calls to C<msg> are processed immediately as usual.

=cut
762
763sub buffer_messages (@)
764{
765
0
1
  foreach my $type (@_)
766    {
767
0
      $buffering{$type} = 1;
768    }
769}
770
771sub flush_messages ()
772{
773
0
1
  %buffering = ();
774
0
  foreach my $args (@backlog)
775    {
776
0
      &msg (@$args);
777    }
778
0
  @backlog = ();
779}
780
781 - 786
=item C<setup_channel_queue ($queue, $key)>

Set the queue to fill for each channel that is ordered,
and the key to use for serialization.

=cut
787sub setup_channel_queue ($$)
788{
789
0
1
  my ($queue, $key) = @_;
790
0
  foreach my $channel (keys %channels)
791    {
792
0
      setup_channel $channel, queue => $queue, queue_key => $key
793        if $channels{$channel}{'ordered'};
794    }
795}
796
797 - 801
=item C<pop_channel_queue ($queue)>

pop a message off the $queue; the key has already been popped.

=cut
802sub pop_channel_queue ($)
803{
804
0
1
  my ($queue) = @_;
805
0
  return _dequeue ($queue);
806}
807
808=back
809
810 - 818
=head1 SEE ALSO

L<Autom4te::Location>

=head1 HISTORY

Written by Alexandre Duret-Lutz E<lt>F<adl@gnu.org>E<gt>.

=cut
819
8201;
821
822### Setup "GNU" style for perl-mode and cperl-mode.
823## Local Variables:
824## perl-indent-level: 2
825## perl-continued-statement-offset: 2
826## perl-continued-brace-offset: 0
827## perl-brace-offset: 0
828## perl-brace-imaginary-offset: 0
829## perl-label-offset: -2
830## cperl-indent-level: 2
831## cperl-brace-offset: 0
832## cperl-continued-brace-offset: 0
833## cperl-label-offset: -2
834## cperl-extra-newline-before-brace: t
835## cperl-merge-trailing-else: nil
836## cperl-continued-statement-offset: 2
837## End: