Skip to content

Commit

Permalink
Fix missing-declaration errors in swig-gnc-optiondb-guile.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Jul 11, 2021
1 parent 7ccba53 commit c5294ed
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions libgnucash/app-utils/gnc-optiondb.i
Expand Up @@ -326,26 +326,29 @@ wrap_unique_ptr(GncOptionDBPtr, GncOptionDB);
};

%inline %{
SCM gnc_option_value(const GncOptionDBPtr& optiondb, const char* section,
const char* name)
static SCM
gnc_option_value(const GncOptionDBPtr& optiondb, const char* section,
const char* name)
{
auto db_opt = optiondb->find_option(section, name);
if (!db_opt)
return SCM_BOOL_F;
return GncOption_get_scm_value(&(db_opt->get()));
}

SCM gnc_option_default_value(const GncOptionDBPtr& optiondb,
const char* section, const char* name)
static SCM
gnc_option_default_value(const GncOptionDBPtr& optiondb,
const char* section, const char* name)
{
auto db_opt = optiondb->find_option(section, name);
if (!db_opt)
return SCM_BOOL_F;
return GncOption_get_scm_default_value(&(db_opt->get()));
}

void gnc_set_option(const GncOptionDBPtr& optiondb, const char* section,
const char* name, SCM new_value)
static void
gnc_set_option(const GncOptionDBPtr& optiondb, const char* section,
const char* name, SCM new_value)
{
auto db_opt = optiondb->find_option(section, name);
if (!db_opt)
Expand Down

0 comments on commit c5294ed

Please sign in to comment.