gtk-doc r671 - in trunk: . tests tests/gobject/src



Author: stefkost
Date: Thu Jan 29 12:07:03 2009
New Revision: 671
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=671&view=rev

Log:
	* gtkdoc-mkdb.in:
	  Automatically creating ulinks for urls.
	* tests/gobject/src/gobject.c:
	  Add a link for testing.



Modified:
   trunk/ChangeLog
   trunk/gtkdoc-mkdb.in
   trunk/tests/fail.sh
   trunk/tests/gobject/src/gobject.c
   trunk/tests/tools.sh
   trunk/tests/tools.sh.in

Modified: trunk/gtkdoc-mkdb.in
==============================================================================
--- trunk/gtkdoc-mkdb.in	(original)
+++ trunk/gtkdoc-mkdb.in	Thu Jan 29 12:07:03 2009
@@ -2359,6 +2359,10 @@
     #$text =~ s/#([\w\-:]+)/&MakeHashXRef($1, "type");/eg;
     $text =~ s/(\A|[^\\])#([\w\-:]+)/$1.&MakeHashXRef($2, "type");/eg;
     $text =~ s/\\#/#/g;
+    
+    # Expand urls
+    # FIXME: should we skip urls that are already tagged? (e.g. <literal>http://...</literal>)
+    $text =~ s%(http|https|ftp)://(.*?)((?:\s|,|\)|\]|\<|\.\s))%<ulink url="$1://$2">$2</ulink>$3%g;
   }
 
   return $text;

Modified: trunk/tests/fail.sh
==============================================================================
--- trunk/tests/fail.sh	(original)
+++ trunk/tests/fail.sh	Thu Jan 29 12:07:03 2009
@@ -28,7 +28,6 @@
 tested=$(($tested + 1))
 
 # summary
-echo "tested : $tested, failed : $failed"
 rate=$((100*($tested - $failed)/$tested));
 echo "$rate %: Checks $tested, Failures: $failed"
 

Modified: trunk/tests/gobject/src/gobject.c
==============================================================================
--- trunk/tests/gobject/src/gobject.c	(original)
+++ trunk/tests/gobject/src/gobject.c	Thu Jan 29 12:07:03 2009
@@ -69,7 +69,8 @@
  * @self: the object
  * @n: number of iterations
  *
- * Frobnicate the content of @self @n times.
+ * Frobnicate the content of @self @n times. This implements a
+ * complex algorithm (http://en.wikipedia.org/wiki/Algorithm).
  * <footnote>
  *  <para>
  *    Negative frobnication can lead to unexpected behaviour.

Modified: trunk/tests/tools.sh
==============================================================================
--- trunk/tests/tools.sh	(original)
+++ trunk/tests/tools.sh	Thu Jan 29 12:07:03 2009
@@ -46,7 +46,6 @@
 tested=$(($tested + 1))
 
 # summary
-echo "tested : $tested, failed : $failed"
 rate=$((100*($tested - $failed)/$tested));
 echo "$rate %: Checks $tested, Failures: $failed"
 exit `test $failed = 0`;

Modified: trunk/tests/tools.sh.in
==============================================================================
--- trunk/tests/tools.sh.in	(original)
+++ trunk/tests/tools.sh.in	Thu Jan 29 12:07:03 2009
@@ -40,7 +40,6 @@
 tested=$(($tested + 1))
 
 # summary
-echo "tested : $tested, failed : $failed"
 rate=$((100*($tested - $failed)/$tested));
 echo "$rate %: Checks $tested, Failures: $failed"
 exit `test $failed = 0`;



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