dbs Mon May 9 10:30:41 2005 EDT
Modified files:
/phpdoc/scripts xml_proto.php
Log:
Correct common parameter return type problem (s/long/int/).
http://cvs.php.net/diff.php/phpdoc/scripts/xml_proto.php?r1=1.25&r2=1.26&ty=u
Index: phpdoc/scripts/xml_proto.php
diff -u phpdoc/scripts/xml_proto.php:1.25 phpdoc/scripts/xml_proto.php:1.26
--- phpdoc/scripts/xml_proto.php:1.25 Mon May 9 09:54:03 2005
+++ phpdoc/scripts/xml_proto.php Mon May 9 10:30:39 2005
@@ -16,7 +16,7 @@
| Authors: Brad House <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: xml_proto.php,v 1.25 2005/05/09 13:54:03 dbs Exp $
+ $Id: xml_proto.php,v 1.26 2005/05/09 14:30:39 dbs Exp $
*/
/*
@@ -118,6 +118,10 @@
{
global $funclist, $num_funcs;
+ /* Avoid common mistake in parameter return types */
+ if ($type == 'long') {
+ $type = 'int';
+ }
$num_args=$funclist[$num]["num_args"];
$funclist[$num]["args"][$num_args]["type"]=$type;
$funclist[$num]["args"][$num_args]["variable"]=$argname;
@@ -140,7 +144,7 @@
}
fwrite($fp, '<?xml version="1.0" encoding="iso-8859-1"?>'."\n" .
- '<!-- $Revision: 1.25 $ -->'."\n" .
+ '<!-- $Revision: 1.26 $ -->'."\n" .
"<!-- Generated by xml_proto.php v" . $version . ". Found in /scripts
directory of phpdoc. -->\n" .
"<reference id=\"ref." . $extension_name . "\">\n" .
" <title>$extension_name Functions</title>\n" .
@@ -225,7 +229,7 @@
$functype = trim($funclist[$i]["function_type"]);
fwrite($fp, '<?xml version="1.0" encoding="iso-8859-1"?>'."\n" .
- '<!-- $Revision: 1.25 $ -->'."\n" .
+ '<!-- $Revision: 1.26 $ -->'."\n" .
"<!-- Generated by xml_proto.php v" . $version . ". Found in
/scripts directory of phpdoc. -->\n" .
"<refentry id=\"function." . $fixname . "\">\n" .
" <refnamediv>\n" .