r12946 - gnucash/trunk/src - Process the --add-price-quotes command-line option from C.

Chris Shoemaker chris at cvs.gnucash.org
Sun Jan 22 22:26:02 EST 2006


Author: chris
Date: 2006-01-22 22:26:01 -0500 (Sun, 22 Jan 2006)
New Revision: 12946
Trac: http://svn.gnucash.org/trac/changeset/12946

Modified:
   gnucash/trunk/src/bin/gnucash-bin.c
   gnucash/trunk/src/scm/main.scm
   gnucash/trunk/src/scm/price-quotes.scm
Log:
  Process the --add-price-quotes command-line option from C.
  This is done by booting guile with a custom inner_main.
  Much of the work is still handled by price-quotes.scm, which
  is now a true stand-alone guile module without the circular dependency
  on the (gnucash main) module.

  One caveat:  Since the initialization of guile-side debugging variables 
  is in main.scm, and since main.scm is no longer executed when running
  --add-price-quotes, the guile code that runs during --add-price-quote
  isn't affected by the --debug option.  A work-around is to use the 
  GNC_DEBUG environment variable: 
    $ GNC_DEBUG=yes gnucash --add-price-quote myfile

  In the longer term, we'll either move the debugging aids to a common place
  where it can be used by both main.scm and price-quotes.scm, or we'll get
  the debugging state from the C-side via gwrap.
 




More information about the gnucash-patches mailing list