diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2003-04-23 16:39:50 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2003-04-23 16:39:50 +0000 |
commit | 7c220887fac87bce5ba5bc20ceac73b2acb0340a (patch) | |
tree | f5ca4e6b0af4b1f2e031e56d127c740091624f05 | |
parent | da57d295263ae5a7beb024a05c30bcd22925a17e (diff) | |
download | php-git-7c220887fac87bce5ba5bc20ceac73b2acb0340a.tar.gz |
parse <deps> content
-rw-r--r-- | scripts/ext_skel_ng/extension_parser.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/scripts/ext_skel_ng/extension_parser.php b/scripts/ext_skel_ng/extension_parser.php index 023169a261..ba0177b02a 100644 --- a/scripts/ext_skel_ng/extension_parser.php +++ b/scripts/ext_skel_ng/extension_parser.php @@ -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 @@ -194,6 +209,10 @@ $this->func_code = $this->cdata; } + function handle_code($attr) { + $this->code[$attr["role"]][] = $this->cdata; + } + function handle_functions_function($attr) { $this->_check_c_name($attr['name'], "function name"); |