cvs: php4 /scripts/ext_skel_ng extension_parser.php
| From: | Hartmut Holzgraefe | Date: | Wed, 23 Apr 2003 16:39:50 +0000 |
| Subject: | cvs: php4 /scripts/ext_skel_ng extension_parser.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20453@lists.php.net to get a copy of this message | ||
hholzgra Wed Apr 23 12:39:50 2003 EDT
Modified files:
/php4/scripts/ext_skel_ng extension_parser.php
Log:
parse <deps> content
Index: php4/scripts/ext_skel_ng/extension_parser.php
diff -u php4/scripts/ext_skel_ng/extension_parser.php:1.17
php4/scripts/ext_skel_ng/extension_parser.php:1.18
--- php4/scripts/ext_skel_ng/extension_parser.php:1.17 Wed Apr 23 12:38:22 2003
+++ php4/scripts/ext_skel_ng/extension_parser.php Wed Apr 23 12:39:50 2003
@@ -37,7 +37,10 @@
$this->phpini = array();
$this->users = array();
$this->dependson = array();
- $this->language = "c";
+ $this->code = array();
+ $this->libs = array();
+ $this->headers = array();
+ $this->language = "c";
$this->files = array("c"=>array(), "h"=>array());
@@ -116,6 +119,18 @@
if (isset($attr["language"])) $this->language = $attr["language"];
}
+ function handle_deps_lib($attr) {
+ $this->libs[$attr['name']] = $attr;
+ }
+
+ function handle_deps_header($attr) {
+ $this->headers[$attr['name']] = $attr;
+ }
+
+ function handle_deps_with($attr) {
+ $this->with = $attr;
+ }
+
// }}}
// {{{ constants
@@ -192,6 +207,10 @@
function handle_functions_function_code($attr) {
$this->func_code = $this->cdata;
+ }
+
+ function handle_code($attr) {
+ $this->code[$attr["role"]][] = $this->cdata;
}
function handle_functions_function($attr) {