Commit Graph

5 Commits

Author SHA1 Message Date
Geert Janssens
365237aec4 Move gnc_guile_strip_comments to core-utils and normalize its name to
gnc_scm_strip_comments

Also make it a true convenience functions by doing the conversion from
an scm string to a c string internally. This saves the caller a manual
conversion step.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22687 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-22 18:21:03 +00:00
Geert Janssens
feb2eac9e4 Normalize naming convention for guile convenience functions
Let them all start with gnc_scm_*
Copy the guile naming convention as close as possible for the remainder

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22686 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-22 18:20:53 +00:00
Geert Janssens
06eb020f7f Readd gnc_scm_to_locale_string function and use it where appropriate
This function is a wrapper around scm_to_locale_string which returns
a gchar * to be freed with g_free. The return value of the original
function has to be freed with free. This is confusing since most of
the gnucash code relies on g_malloc/g_free.

While at it, clean up a lot of memory handling issues around (gnc_)scm_to_locale_string

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22684 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-22 18:20:29 +00:00
Geert Janssens
6fb7a4f7a2 Move some guile convenience routines to core utils
They don't depend on any gui or engine code and are
used throughout the source

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22682 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-22 18:20:05 +00:00
Geert Janssens
37b65abff1 Guile 2: replace deprecated SCM_SYMBOL_CHARS function
The replacements require guile 1.8 or above

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22651 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-15 17:58:40 +00:00