cvs: pecl /PECL_Gen ExtensionParser.php
| From: | Hartmut Holzgraefe | Date: | Tue, 09 Nov 2004 18:51:49 +0000 |
| Subject: | cvs: pecl /PECL_Gen ExtensionParser.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-2003@lists.php.net to get a copy of this message | ||
hholzgra Tue Nov 9 13:51:49 2004 EDT
Modified files:
/pecl/PECL_Gen ExtensionParser.php
Log:
container tags like <functions>, <constants> are now optional
http://cvs.php.net/diff.php/pecl/PECL_Gen/ExtensionParser.php?r1=1.3&r2=1.4&ty=u
Index: pecl/PECL_Gen/ExtensionParser.php
diff -u pecl/PECL_Gen/ExtensionParser.php:1.3 pecl/PECL_Gen/ExtensionParser.php:1.4
--- pecl/PECL_Gen/ExtensionParser.php:1.3 Fri Apr 30 20:03:44 2004
+++ pecl/PECL_Gen/ExtensionParser.php Tue Nov 9 13:51:48 2004
@@ -16,7 +16,7 @@
// | Authors: Hartmut Holzgraefe <hholzgra@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: ExtensionParser.php,v 1.3 2004/05/01 00:03:44 hholzgra Exp $
+// $Id: ExtensionParser.php,v 1.4 2004/11/09 18:51:48 hholzgra Exp $
//
require_once "PECL/Gen/XmlParser.php";
@@ -155,6 +155,10 @@
+ function tagstart_extension_function($attr) {
+ return $this->tagstart_functions_function($attr);
+ }
+
function tagstart_functions_function($attr)
{
$this->push_helper(new PECL_Gen_Element_Function);
@@ -214,6 +218,11 @@
}
}
+ function tagend_extension_function($attr, $data)
+ {
+ return $this->tagend_functions_function($attr, $data);
+ }
+
function tagend_functions_function($attr, $data)
{
$err = $this->extension->add_function($this->helper);
@@ -221,11 +230,17 @@
return $err;
}
+
function tagend_functions($attr, $data) {
return true;
}
+ function tagstart_extension_resource($attr)
+ {
+ return $this->tagstart_resources_resource($attr);
+ }
+
function tagstart_resources_resource($attr)
{
$this->push_helper(new PECL_Gen_Element_Resource);
@@ -268,6 +283,10 @@
return $this->helper->set_description(PECL_Gen_Tools_Indent::linetrim($data));
}
+ function tagend_extension_resource($attr, $data) {
+ return $this->tagend_resources_resource($attr, $data);
+ }
+
function tagend_resources_resource($attr, $data)
{
$err = $this->extension->add_resource($this->helper);
@@ -291,6 +310,11 @@
+ function tagend_extension_constant($attr, $data)
+ {
+ return $this->tagend_constants_constant($attr, $data);
+ }
+
function tagend_constants_constant($attr, $data)
{
$const = new PECL_Gen_Element_Constant;
@@ -334,6 +358,11 @@
+ function tagend_extension_global($attr, $data)
+ {
+ return $this->tagend_globals_global($attr, $data);
+ }
+
function tagend_globals_global($attr, $data)
{
@@ -369,6 +398,10 @@
+ function tagend_extension_phpini($attr, $data)
+ {
+ return $this->tagend_globals_phpini($attr, $data);
+ }
function tagend_globals_phpini($attr, $data)
{
@@ -575,7 +608,8 @@
}
function tagend_extension_deps_configm4($attr, $data) {
- return
$this->extension->add_configfragment(PECL_Gen_Tools_Indent::linetrim($data));
+ return
$this->extension->add_configfragment(PECL_Gen_Tools_Indent::linetrim($data),
+ isset($attr['position']) ?
$attr['position'] : "top");
}