svn: /phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/ docgen.php

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn: /phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/ docgen.php

Justin Martin-5
frozenfire                               Wed, 17 Nov 2010 05:41:57 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=305436

Log:
Slight modification of docgen.php to read in all defs files, rather than a limited subset.

Changed paths:
    U   phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php

Modified: phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php
===================================================================
--- phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php 2010-11-17 04:35:51 UTC (rev 305435)
+++ phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php 2010-11-17 05:41:57 UTC (rev 305436)
@@ -836,17 +836,9 @@
  if($OPTION['gtk']) {
  $classes = array();
  $dirsep = DIRECTORY_SEPARATOR;
- $data = array_merge(
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}gtk+{$dirsep}atk.defs"),
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}gtk+{$dirsep}gdk.defs"),
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}gtk+{$dirsep}gtk.defs"),
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}extra{$dirsep}gtkextra.defs"),
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}html{$dirsep}html.defs"),
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}libglade{$dirsep}libglade.defs"),
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}libsexy{$dirsep}sexy.defs"),
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}mozembed{$dirsep}mozembed.defs"),
- file("{$OPTION['gtk']}{$dirsep}ext{$dirsep}sourceview{$dirsep}sourceview.defs")
- );
+ $defs = glob("{$OPTION['gtk']}{$dirsep}ext{$dirsep}*{$dirsep}*.defs");
+ foreach($defs as &$defsfile) $defsfile = file($defsfile);
+ $data = call_user_func_array("array_merge", $defs);
  foreach ($data as $line) {
  preg_match("/(?:of-object \")(\w*)(?:\")/", $line, $matches);
  if($matches) $classes[] =  $matches[1];


--
PHP-GTK Documentation Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php