hholzgra Sun Jan 15 12:08:54 2006 UTC
Modified files:
/phpdoc/scripts zendapi_macros.php
Log:
WS
http://cvs.php.net/viewcvs.cgi/phpdoc/scripts/zendapi_macros.php?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/scripts/zendapi_macros.php
diff -u phpdoc/scripts/zendapi_macros.php:1.8
phpdoc/scripts/zendapi_macros.php:1.9
--- phpdoc/scripts/zendapi_macros.php:1.8 Sun Jan 15 12:02:54 2006
+++ phpdoc/scripts/zendapi_macros.php Sun Jan 15 12:08:54 2006
@@ -14,10 +14,10 @@
"zend_execute.h",
"zend_modules.h",
"../TSRM/TSRM.h",
-
"../TSRM/tsrm_virtual_cwd.h");
+ "../TSRM/tsrm_virtual_cwd.h");
$output_dirs = array("../en/internals/zendapi/macros" => array("ZEND_", "Z_",
"RETURN_"),
- "../en/internals/tsrm/macros" =>
array("VCWD_"));
+ "../en/internals/tsrm/macros" => array("VCWD_"));
foreach ($zend_include_files as $infile) {
echo "processing $zend_include_dir/$infile\n";
@@ -34,112 +34,112 @@
// now check for all known macro prefixes
foreach ($output_dirs as $output_dir => $macro_prefixes) {
- foreach ($macro_prefixes as $prefix) {
- // does this line match a macro definition?
- if (preg_match("|#define\\s*($prefix\\w+)\\((.*)\\)|U", $line,
$matches)) {
- // get macro name and parameter list from the matches
- $macro = $matches[1];
- $params = preg_split('|,\s+|', $matches[2]);
-
- // path to output file
- $outfile = $output_dir."/".$macro.".xml";
-
- // do not overwrite existing files unless specified
- if ($overwrite || !file_exists($outfile)) {
- // now write the template file to
phpdoc/en/internals/zendapi/macros
- ob_start();
+ foreach ($macro_prefixes as $prefix) {
+ // does this line match a macro definition?
+ if (preg_match("|#define\\s*($prefix\\w+)\\((.*)\\)|U", $line,
$matches)) {
+ // get macro name and parameter list from the matches
+ $macro = $matches[1];
+ $params = preg_split('|,\s+|', $matches[2]);
+
+ // path to output file
+ $outfile = $output_dir."/".$macro.".xml";
+
+ // do not overwrite existing files unless specified
+ if ($overwrite || !file_exists($outfile)) {
+ // now write the template file to
phpdoc/en/internals/zendapi/macros
+ ob_start();
- echo '<?xml version="1.0" encoding="iso-8859-1"?>'."\n";
+ echo '<?xml version="1.0" encoding="iso-8859-1"?>'."\n";
- // take revision from existing file if any, else it is
1.1
- if (!$overwrite || !file_exists($outfile)) {
- echo "<!-- $"."Revision: 1.1 $ -->\n";
- } else {
- foreach (file($outfile) as $line) {
- if (strstr($line, 'Revision: ')) {
- echo $line;
- break;
- }
- }
- }
- ?>
- <refentry id="zend-macro.<?php echo
strtolower(str_replace("_", "-", $macro)); ?>">
- <refnamediv>
- <refname><?php echo $macro; ?></refname>
-
<refpurpose>...</refpurpose>
-
</refnamediv>
-
-
<refsect1 role="description">
-
&reftitle.description;
- <methodsynopsis>
- <type>???</type><methodname><?php echo $macro;
?></methodname>
-
<?php
-
foreach($params as
$param) {
- echo "
<methodparam><type>???</type><parameter>$param</parameter></methodparam>\n";
- }
- ?>
-
</methodsynopsis>
-
<para>
-
...
-
</para>
-
</refsect1>
-
-
<refsect1
role="parameters">
-
&reftitle.parameters;
- <para>
- <variablelist>
- <?php
- foreach($params as $param) {
- ?>
- <varlistentry>
- <term><parameter><?php echo $param;
?></parameter></term>
-
<listitem>
-
<para>
-
...
-
</para>
-
</listitem>
-
</varlistentry>
-
<?php
-
}
- ?>
- </variablelist>
- </para>
- </refsect1>
-
- <refsect1 role="returnvalues">
- &reftitle.returnvalues;
- <para>
- ...
- </para>
- </refsect1>
-
- </refentry>
-
- <!-- Keep this comment at the end of the file
- Local variables:
- mode: sgml
- sgml-omittag:t
- sgml-shorttag:t
- sgml-minimize-attributes:nil
- sgml-always-quote-attributes:t
- sgml-indent-step:1
- sgml-indent-data:t
- indent-tabs-mode:nil
- sgml-parent-document:nil
- sgml-default-dtd-file:"../../../../manual.ced"
- sgml-exposed-tags:nil
- sgml-local-catalogs:nil
- sgml-local-ecat-files:nil
- End:
- vim600: syn=xml fen fdm=syntax fdl=2 si
- vim: et tw=78 syn=sgml
- vi: ts=1 sw=1
- -->
- <?php
+ // take revision from existing file if any, else it is 1.1
+ if (!$overwrite || !file_exists($outfile)) {
+ echo "<!-- $"."Revision: 1.1 $ -->\n";
+ } else {
+ foreach (file($outfile) as $line) {
+ if (strstr($line, 'Revision: ')) {
+ echo $line;
+ break;
+ }
+ }
+ }
+?>
+<refentry id="zend-macro.<?php echo strtolower(str_replace("_", "-", $macro));
?>">
+ <refnamediv>
+ <refname><?php echo $macro; ?></refname>
+ <refpurpose>...</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>???</type><methodname><?php echo $macro; ?></methodname>
+<?php
+ foreach($params as $param) {
+ echo "
<methodparam><type>???</type><parameter>$param</parameter></methodparam>\n";
+ }
+?>
+ </methodsynopsis>
+ <para>
+ ...
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+<?php
+ foreach($params as $param) {
+?>
+ <varlistentry>
+ <term><parameter><?php echo $param; ?></parameter></term>
+ <listitem>
+ <para>
+ ...
+ </para>
+ </listitem>
+ </varlistentry>
+<?php
+ }
+?>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ ...
+ </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"../../../../manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
+<?php
- file_put_contents($outfile, ob_get_clean());
- }
- }
+ file_put_contents($outfile, ob_get_clean());
+ }
+ }
}
}
}