r22637 - gnucash/trunk/src - Rewrite gncFindFile function in C and move it to file-utils.

Geert Janssens gjanssens at code.gnucash.org
Wed Dec 12 12:42:23 EST 2012


Author: gjanssens
Date: 2012-12-12 12:42:22 -0500 (Wed, 12 Dec 2012)
New Revision: 22637
Trac: http://svn.gnucash.org/trac/changeset/22637

Modified:
   gnucash/trunk/src/app-utils/file-utils.c
   gnucash/trunk/src/app-utils/file-utils.h
   gnucash/trunk/src/core-utils/gnc-filepath-utils.c
   gnucash/trunk/src/core-utils/gnc-filepath-utils.h
Log:
Rewrite gncFindFile function in C and move it to file-utils.

The code made a roundtrip into guile (for historical reasons I guess).
The guile code used to be able to provide custom paths to search for
based on some command line parameter set at startup. This parameter
is no longer accepted since a very long time back.

Also note that the gncFindFile function is not actively in use. It is
only called by gncReadFile, which in turn is only called when our html
code is asked to load a generic file or a help file to stream (protocol
file or help). Both protocols are used nowhere in the current GnuCash
code.

gncFindFile (now gnc_path_find_localized_html_file) is only kept for
a. custom reports that potentially use the file protocol
b. jqplot which uses the guile equivalent of this function
   (see a subsequent commit)



More information about the gnucash-patches mailing list