diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2020-01-17 15:36:38 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2020-01-17 18:09:26 +0200 |
commit | 7ead7f677303da8583529265f3b2121fba40d66c (patch) | |
tree | 6d5c82e7d1f80978381cf197f148dc3ce5934095 /lib/Apache/Config/Preproc/ifdefine.pm | |
parent | 9b0297d1894fadf0c4260c284e6e6b1dcfb61c29 (diff) | |
download | acpp-7ead7f677303da8583529265f3b2121fba40d66c.tar.gz acpp-7ead7f677303da8583529265f3b2121fba40d66c.tar.bz2 |
Provide a base class for preprocessor modules.
* lib/Apache/Config/Preproc.pm (_preproc_section_default)
(_preproc_section_optimized): Use begin_section and
end_section instead of start and finish.
* lib/Apache/Config/Preproc/Expand.pm: New file.
* lib/Apache/Config/Preproc/compact.pm: Use the base class.
* lib/Apache/Config/Preproc/ifdefine.pm: Likewise.
* lib/Apache/Config/Preproc/ifmodule.pm: Likewise.
* lib/Apache/Config/Preproc/include.pm: Likewise.
* lib/Apache/Config/Preproc/locus.pm: Likewise.
* lib/Apache/Config/Preproc/macro.pm: Likewise.
Diffstat (limited to 'lib/Apache/Config/Preproc/ifdefine.pm')
-rw-r--r-- | lib/Apache/Config/Preproc/ifdefine.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Apache/Config/Preproc/ifdefine.pm b/lib/Apache/Config/Preproc/ifdefine.pm index 06e6445..ddfae3d 100644 --- a/lib/Apache/Config/Preproc/ifdefine.pm +++ b/lib/Apache/Config/Preproc/ifdefine.pm @@ -1,14 +1,14 @@ package Apache::Config::Preproc::ifdefine; +use parent 'Apache::Config::Preproc::Expand'; use strict; use warnings; use Carp; -our $VERSION = '1.02'; +our $VERSION = '1.03'; sub new { - my $class = shift; - my $conf = shift; - my $self = bless {}, $class; + my ($class, $conf) = @_; + my $self = bless $class->SUPER::new($conf), $class; @{$self->{D}}{@_} = (1) x @_; return $self; } |