C++ and gtk-doc



Hi,

gtk-doc doesn't seem to scan C++ files.  I don't know what C++ will do
to gtk-doc, but it seems to at least try the files with this patch.

Thanks,
-Jonathan


--- gtkdoc-mkdb	2005-12-04 03:09:23.000000000 -0500
+++ /usr/bin/gtkdoc-mkdb	2005-07-06 00:18:17.000000000 -0400
@@ -2402,7 +2402,7 @@
 	    next;
 	} elsif (-d "$source_dir/$file") {
 	    push (@subdirs, $file);
-	} elsif ($file =~ m/\.(c|h|cc)$/) {
+	} elsif ($file =~ m/\.[ch]$/) {
 	    &ScanSourceFile ("$source_dir/$file");
 	}
     }
@@ -2431,7 +2431,7 @@
     my ($file) = @_;
     my $basename;
 
-    if ($file =~ m/^.*[\/\\]([^\/\\]*\.(c|h|cc))$/) {
+    if ($file =~ m/^.*[\/\\]([^\/\\]*\.[hc])$/) {
 	$basename = $1;
     } else {
 	print "WARNING: Can't find basename of file $file\n";

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]