hholzgra Sat Mar 15 17:34:33 2003 EDT Modified files: /php4/scripts/ext_skel_ng php_function.php Log: make sure the function name in the proto matches the function Index: php4/scripts/ext_skel_ng/php_function.php diff -u php4/scripts/ext_skel_ng/php_function.php:1.5 php4/scripts/ext_skel_ng/php_function.php:1.6 --- php4/scripts/ext_skel_ng/php_function.php:1.5 Fri Feb 28 01:37:05 2003 +++ php4/scripts/ext_skel_ng/php_function.php Sat Mar 15 17:34:32 2003 @@ -34,6 +34,11 @@ $return_type = ($this->is_type($tokens[$n])) ? $tokens[$n++] : "void"; if(! $this->is_name($tokens[$n])) return("$tokens[$n] is not a valid function name"); $function_name = $tokens[$n++]; + + if($function_name != $this->name) { + return "proto function name is '$function_name' instead of '{$this->name}'"; + } + if($tokens[$n]!='(') return("'(' expected instead of '$tokens[$n]'"); if($tokens[++$n]!=')') { for($param=0;$tokens[$n];$n++,$param++) { @@ -192,7 +197,7 @@ function docbook_xml() { $xml = '<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.'.strtolower(str_replace("_","-",$this->name)).'"> <refnamediv> <refname>'.$this->name.'</refname>
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php