hholzgra Sun Jan 22 20:27:34 2006 UTC
Modified files:
/phpdoc/scripts zendapi_protos.php
Log:
- sorted header file list
- added feedback output for written files
- made proto parser less strict
http://cvs.php.net/viewcvs.cgi/phpdoc/scripts/zendapi_protos.php?r1=1.26&r2=1.27&diff_format=u
Index: phpdoc/scripts/zendapi_protos.php
diff -u phpdoc/scripts/zendapi_protos.php:1.26
phpdoc/scripts/zendapi_protos.php:1.27
--- phpdoc/scripts/zendapi_protos.php:1.26 Sun Jan 22 19:41:28 2006
+++ phpdoc/scripts/zendapi_protos.php Sun Jan 22 20:27:34 2006
@@ -3,18 +3,20 @@
$zend_include_dir = "../../php-src/Zend";
-$zend_include_files = array("zend.h",
+$zend_include_files = array(
+ "zend.h",
"zend_API.h",
- "zend_objects_API.h",
- "zend_object_handlers.h",
- "zend_interfaces.h",
"zend_hash.h",
+ "zend_interfaces.h",
"zend_list.h",
- "zend_variables.h",
- "zend_unicode.h",
"zend_modules.h",
+ "zend_object_handlers.h",
+ "zend_objects_API.h",
+ "zend_unicode.h",
+ "zend_variables.h",
"../TSRM/TSRM.h",
- "../TSRM/tsrm_virtual_cwd.h");
+ "../TSRM/tsrm_virtual_cwd.h",
+ );
$functions_dir = array("ZEND"=>"../en/internals/zendapi/functions",
"TSRM"=>"../en/internals/tsrm/functions",
@@ -42,7 +44,7 @@
}
// first we look for prototypes marked with ZEND_API
- if (preg_match('/^\s*(ZEND|TSRM|CWD)_API\s+(\S+)\s+(\S+)\((.*)\);$/U',
$line, $matches)) {
+ if (preg_match('/^\s*(ZEND|TSRM|CWD)_API\s+(\S+)\s+(\S+)\((.*)\)/U',
$line, $matches)) {
// parse prototypes, step #1
// extract return type and function name
@@ -158,6 +160,7 @@
// and do not expose functions staring with '_'
if (($function[0] != '_') && ($overwrite || !file_exists($filename))) {
// now write the template file to phpdoc/en/internals/zendapi/functions
+ echo "writing $filename\n";
ob_start();
echo '<?xml version="1.0" encoding="iso-8859-1"?>'."\n";