]> granicus.if.org Git - php/commitdiff
parse <deps> content
authorHartmut Holzgraefe <hholzgra@php.net>
Wed, 23 Apr 2003 16:39:50 +0000 (16:39 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Wed, 23 Apr 2003 16:39:50 +0000 (16:39 +0000)
scripts/ext_skel_ng/extension_parser.php

index 023169a261742a5b0ff6f60dbac53a13ab7cf6b2..ba0177b02a579efad6e01ade20de862d44389695 100644 (file)
                $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());
                
     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
                        $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");