r20267 - gnucash/trunk - Bug #640357: Adding very limited Perl-Support for doxygen

Christian Stimming cstim at code.gnucash.org
Thu Feb 10 14:40:38 EST 2011


Author: cstim
Date: 2011-02-10 14:40:38 -0500 (Thu, 10 Feb 2011)
New Revision: 20267
Trac: http://svn.gnucash.org/trac/changeset/20267

Modified:
   gnucash/trunk/doc/examples/create-bogus-data.pl
   gnucash/trunk/src/backend/xml/test/grab-types.pl
   gnucash/trunk/src/engine/xlate.pl
   gnucash/trunk/src/experimental/cbb/cbb-engine/CBBlib.pl
   gnucash/trunk/src/experimental/cbb/cbb-engine/common.pl
   gnucash/trunk/src/quotes/Quote_example.pl
Log:
Bug #640357: Adding very limited Perl-Support for doxygen

Adding Doxygen commands to the Perl-scripts in the sources

I searched for every *.pl file in the GnuCash source and added Doxygen commands
like @file, @brief, @author to better include them in doxygen.

Patch by Christoph Holtermann.

Modified: gnucash/trunk/doc/examples/create-bogus-data.pl
===================================================================
--- gnucash/trunk/doc/examples/create-bogus-data.pl	2011-02-10 19:40:22 UTC (rev 20266)
+++ gnucash/trunk/doc/examples/create-bogus-data.pl	2011-02-10 19:40:38 UTC (rev 20267)
@@ -1,12 +1,15 @@
 #! /usr/bin/env perl
 #
+## @file
+#
 # create-bogus-data.pl
 #
-# Create a lot of 'fake' transactions, handy for generating 
+# @brief Create a lot of 'fake' transactions, handy for generating 
 # large datasets for performance testing.
 # 
 # currently, very hacked up, uses hard-wired accounts
 # from the "txnreport.xac" test file
+#
 
 
 $ntrans = 3000;

Modified: gnucash/trunk/src/backend/xml/test/grab-types.pl
===================================================================
--- gnucash/trunk/src/backend/xml/test/grab-types.pl	2011-02-10 19:40:22 UTC (rev 20266)
+++ gnucash/trunk/src/backend/xml/test/grab-types.pl	2011-02-10 19:40:38 UTC (rev 20267)
@@ -1,5 +1,6 @@
 #!/usr/bin/perl -w
-
+##@file
+#@cond Perl
 use strict;
 
 my $tag = shift @ARGV;
@@ -49,3 +50,4 @@
 }
 
 print $files_written
+##@endcond Perl

Modified: gnucash/trunk/src/engine/xlate.pl
===================================================================
--- gnucash/trunk/src/engine/xlate.pl	2011-02-10 19:40:22 UTC (rev 20266)
+++ gnucash/trunk/src/engine/xlate.pl	2011-02-10 19:40:38 UTC (rev 20267)
@@ -1,11 +1,15 @@
 #! /usr/bin/perl
+##  @file
+#   @brief  
+#   FUNCTION: this utility script converts old code to the new
+#      	      QOF routine names, and does other related cleanup
 #
-# FUNCTION: this utility script converts old code to the new
-#           QOF routine names, and does other related cleanup
-#
 # USAGE: ls *.c *.h | ./xlate.pl ; make ; cvs commit
 #        
 # AUTHOR: Linas Vepstas <linas at linas.org> June 2003
+# @author Linas Vepstas <linas at linas.org>
+# @date June 2003
+# @cond Perl
 
 @files = <STDIN>;
 
@@ -265,3 +269,4 @@
 	$rn = "mv " . $afile . ".tmp " . $afile;
 	system ($rn);
 }
+## @endcond Perl

Modified: gnucash/trunk/src/experimental/cbb/cbb-engine/CBBlib.pl
===================================================================
--- gnucash/trunk/src/experimental/cbb/cbb-engine/CBBlib.pl	2011-02-10 19:40:22 UTC (rev 20266)
+++ gnucash/trunk/src/experimental/cbb/cbb-engine/CBBlib.pl	2011-02-10 19:40:38 UTC (rev 20267)
@@ -6,38 +6,41 @@
 use strict;
 use English;
 use IO;
-
+##  @file
+# @brief Belongs to package CBBlib
+#
 #### To do ######################
-
+#
 # Check remove transactions.
 # Move everything to Cbb package.
-
+#
 # put warnings into add_txns and remove_txns if attempted when inside
 # begin/end_txn_modifications
-
+#
 # Check to see that set_db is OK in the face of modifications...
-
+#
 # update_ledger has to return a sorted list of txn indices for modified txns
-
+#
 # ledger_add/modify/remove_txns?
-
+#
 # note_txn_modification
-
+#
 # Dirty should be set whenever a modification is made.
 # Dirty should be cleared whenever the client tells us we're clear...
-
+#
 # What about clones and begin/end_modify_txns and no db?
-
+#
 # check copy_obj, and automate?
-
+#
 # Need to clone account balances too?
-
+#
 # Should have list positions in txns?
-
+#
 # Need to create "Unitemized" category by default.
-
+#
 # Don't sort modifications by serial number.  Order is irrelevant.
 # Just use dates
+# @cond Perl
 
 STDOUT->autoflush(1);
 STDERR->autoflush(1);
@@ -1733,3 +1736,4 @@
 
 1;
 __END__
+## @endcond Perl

Modified: gnucash/trunk/src/experimental/cbb/cbb-engine/common.pl
===================================================================
--- gnucash/trunk/src/experimental/cbb/cbb-engine/common.pl	2011-02-10 19:40:22 UTC (rev 20266)
+++ gnucash/trunk/src/experimental/cbb/cbb-engine/common.pl	2011-02-10 19:40:38 UTC (rev 20267)
@@ -22,6 +22,13 @@
 # $Id$
 # (Log is kept at end of this file)
 
+## @file
+# @brief common routines shared by many CBB files 
+# @author Curtis Olson
+# @date Started August 22, 1994
+# @cond PERL
+# ignore the following for doxygen
+
 use strict;
 
 sub destructive_merge_mangle {
@@ -334,7 +341,7 @@
 1;        # need to return a true value
 __END__
 
-
+## @endcond
 # ----------------------------------------------------------------------------
 # $Log$
 # Revision 1.1  2000/06/02 09:00:14  peticolas

Modified: gnucash/trunk/src/quotes/Quote_example.pl
===================================================================
--- gnucash/trunk/src/quotes/Quote_example.pl	2011-02-10 19:40:22 UTC (rev 20266)
+++ gnucash/trunk/src/quotes/Quote_example.pl	2011-02-10 19:40:38 UTC (rev 20267)
@@ -1,8 +1,9 @@
 #!/usr/bin/perl -w
-#
+##@file
+# @brief
 # example script showing how to use the Quote perl module.
 # gets prices for some stocks, for some mutual funds
-
+#
 # Note that this example uses the meta-level "fetch" command.  We do
 # NOT used that in Gnucash because it's behavior is unpredictable If
 # the given method/exchange doesn't work, it'll fall back to other
@@ -11,6 +12,8 @@
 # directly, i.e. $quoter->fidelity_direct("IBM", "LNUX");, etc.  The
 # documentation page for each Finance::Quote sub-module describes how
 # to call it directly without fallbacks.
+#
+# @cond PERL
 
 use Finance::Quote;
 
@@ -84,3 +87,4 @@
 	      $quotes{$f,"date"}."\n";
 }
 print "\n\n";
+##@endcond Perl



More information about the gnucash-changes mailing list