nlopess         Sun Jul 23 18:25:40 2006 UTC

  Modified files:              
    /phpdoc/scripts     xml_proto.php 
  Log:
  remove the changelog, the version var and the advertising tag. they have no 
useful use..
  
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/xml_proto.php?r1=1.40&r2=1.41&diff_format=u
Index: phpdoc/scripts/xml_proto.php
diff -u phpdoc/scripts/xml_proto.php:1.40 phpdoc/scripts/xml_proto.php:1.41
--- phpdoc/scripts/xml_proto.php:1.40   Tue Jan 31 16:14:01 2006
+++ phpdoc/scripts/xml_proto.php        Sun Jul 23 18:25:40 2006
@@ -16,7 +16,7 @@
   | Authors:   Brad House <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
  
-  $Id: xml_proto.php,v 1.40 2006/01/31 16:14:01 sean Exp $
+  $Id: xml_proto.php,v 1.41 2006/07/23 18:25:40 nlopess Exp $
 */
 
 /*
@@ -40,25 +40,6 @@
          function xml reference files will be generated in
 */
 
-/* CHANGELOG:
-   10/??/02 v1.0 - Original Release
-   10/??/02 v1.1 - replace & with &amp;
-   10/??/02 v1.2 - the Revision would be changed in static text meant for
-                   insert into generated XML files (CVS did it)
-   10/26/02 v2.0 - Additional scanning for constants, and generation of 
constants.xml
-                 - Generation of references.xml template
-                 - functions with optional arguments would not parse properly, 
now it does
-                 - Wildcard scanning is now allowed
-                 - Requires PHP 4.3.0-pre1 or higher now
-                 - Usage is totally different
-   05/06/04 v2.1 - Corrected filenames for OO functions
-   01/03/05 v2.2 - Implemented the new doc style
-   08/08/05 v2.3 - Refpurpose is on one line
-   01/31/06 v2.4 - Fix reference.xml (comment configure/ini entities; fix 
&no.resource; (para))
-*/
-
-$version="2.4";
-
 $funclist=array();
 $num_funcs=0;
 
@@ -149,7 +130,7 @@
 
 function write_reference_xml()
 {
-  global $extension_name, $constant_dir, $version;
+  global $extension_name, $constant_dir;
   global $num_const;
 
   $filename= $constant_dir. "reference.xml";
@@ -163,7 +144,6 @@
        '<!-- $'.'Revision: 1.1 $ -->'."\n" .
        "<!-- Purpose:  -->\n" .
        "<!-- Membership:  -->\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" .
        " <titleabbrev>$extension_name</titleabbrev>\n" .
@@ -228,8 +208,7 @@
 
 function write_functions_xml()
 {
-  global $funclist, $num_funcs;
-  global $function_dir, $version;
+  global $funclist, $num_funcs, $function_dir;
 
   $filename="";
   $fp=0;
@@ -248,7 +227,6 @@
 
     fwrite($fp, '<?xml version="1.0" encoding="iso-8859-1"?>'."\n" .
                '<!-- $'.'Revision: 1.1 $ -->'."\n" .
-               "<!-- Generated by xml_proto.php v" . $version . ". Found in 
/scripts directory of phpdoc. -->\n" .
                "<refentry id=\"function." . $fixname . "\">\n" .
                " <refnamediv>\n" .
                "  <refname>$funcname</refname>\n" .
@@ -695,7 +673,6 @@
   global $constlist;
   global $num_const;
   global $extension_name;
-  global $version;
 
   if ($num_const == 0) {
     echo "No constants found, aborting write of constants.xml\n";
@@ -711,7 +688,6 @@
 
   fwrite($fp, "<?xml version='1.0' encoding='iso-8859-1'?>\n" .
               "<!-- $" . "Revision: 1.1 $ -->\n" .
-               "<!-- Generated by xml_proto.php v" . $version . ". Found in 
/scripts directory of phpdoc. -->\n" .
                "<section id=\"" . $extension_name . ".constants\">\n" .
                " &reftitle.constants;\n" .
                " &extension.constants;\n" .
@@ -818,8 +794,7 @@
 
 function usage($progname)
 {
-  global $version;
-  echo "XML_PROTO v$version : Generate PHP documentation from proto defs (req 
PHP 4.3.0-pre1+)\n";
+  echo "XML_PROTO : Generate PHP documentation from proto defs (req PHP 
4.3.0-pre1+)\n";
   echo "Usage: " . $progname . " [opts] <extension name> <files to parse>\n";
   echo "   Ex: " . $progname . " mcve /php4/ext/mcve/*.c\n\n";
   echo "Options:\n";

Reply via email to