[svn:mod_parrot] r414 - in mod_parrot/trunk: build/lib lib/ModParrot

[email protected] Sat, 30 Aug 2008 09:36:30 -0700 (PDT)
Newsgroups perl.cvs.mod_parrot
Message-ID <[email protected]>
Author: jhorwitz
Date: Sat Aug 30 09:36:22 2008
New Revision: 414

Added:
   mod_parrot/trunk/lib/ModParrot/Constants.pir
Modified:
   mod_parrot/trunk/build/lib/generate_source.pl

Log:
add ModParrot;Constants for mod_parrot-specific constants


Modified: mod_parrot/trunk/build/lib/generate_source.pl
==============================================================================
--- mod_parrot/trunk/build/lib/generate_source.pl	(original)
+++ mod_parrot/trunk/build/lib/generate_source.pl	Sat Aug 30 09:36:22 2008
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# Copyright (c) 2005, 2007 Ian Joyce, Jeff Horwitz
+# Copyright (c) 2005, 2007, 2008 Ian Joyce, Jeff Horwitz
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@
 
 use Generator::ApacheConstants;
 use Generator::ApacheRequestRec;
+use Generator::ModParrotConstants;
 
 my $apache_include_dir = '/usr/local/apache2/include/';
 
@@ -48,3 +49,4 @@
 
 ModParrot::Config::Generator::ApacheConstants->new(%args)->run();
 ModParrot::Config::Generator::ApacheRequestRec->new(%args)->run();
+ModParrot::Config::Generator::ModParrotConstants->new(%args)->run();

Added: mod_parrot/trunk/lib/ModParrot/Constants.pir
==============================================================================
--- (empty file)
+++ mod_parrot/trunk/lib/ModParrot/Constants.pir	Sat Aug 30 09:36:22 2008
@@ -0,0 +1,38 @@
+# $Id$
+
+# Copyright (c) 2008 Jeff Horwitz
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+=head1 NAME
+
+Apache/Constants.pir
+
+=head1 DESCRIPTION
+
+Defines an ordered hash called C<mp_constants> in the C<ModParrot::Constants>
+namespace containing various useful mod_parrot constants.
+
+=head1 AUTHOR
+
+Jeff Horwitz
+
+=cut
+
+.namespace [ 'ModParrot'; 'Constants' ]
+
+.include 'build/src/pir/mp_constants.pir'
+
+.sub _initialize :load
+    _init_const_table( )
+.end