/* Generated by G-Wrap: an experimental C->Guile wrapper engine */

#define _GNU_SOURCE
#include <guile/gh.h>
#include <libguile.h>
#include <string.h>
#include <g-wrap-compatibility.h>

#include "gw-app-utils.h"
#include <glib.h>
#include <guid.h>
#include <Query.h>
#include <Backend.h>
#include <Group.h>
#include <gnc-book.h>
#include <gnc-session.h>
#include <gnc-session-scm.h>
#include <gnc-engine-util.h>
#include <gnc-event.h>
#include <gnc-lot.h>
#include <date.h>
#include <engine-helpers.h>
#include <gnc-engine.h>
#include <gnc-commodity.h>
#include <gnc-numeric.h>
#include <g-wrap-wct.h>
#include <glib.h>
#include <g-wrap-glib.h>
#include <g-wrap-wct.h>
#include <limits.h>
#include <global-options.h>
#include <option-util.h>
#include <global-options.h>
#include <option-util.h>
#include <gnc-euro.h>
#include <gnc-exp-parser.h>
#include <gnc-ui-util.h>
#include <gnc-gettext-util.h>
#include <gnc-helpers.h>
#include <gnc-component-manager.h>
#include <g-wrap-wct.h>
static SCM gw__enum__gnc_event_type__val_to_int_scm_func;
static SCM gw__enum__gnc_event_type__val_to_sym_scm_func;
static SCM gw__tmp25_wct_info_for__gnc_commodity__ = SCM_BOOL_F;
static SCM gw__tmp23_wct_info_for__gnc_Split__ = SCM_BOOL_F;
static SCM gw__tmp22_wct_info_for__gnc_Session__ = SCM_BOOL_F;
static SCM gw__tmp20_wct_info_for__gnc_Book__ = SCM_BOOL_F;
static SCM gw__tmp19_wct_info_for__gnc_AccountGroup__ = SCM_BOOL_F;
static SCM gw__tmp17_wct_info_for__gnc_Account__ = SCM_BOOL_F;
static SCM gw__tmp6_wct_info_for__gw_void__ = SCM_BOOL_F;
static SCM gw__tmp0_range_minval_gw_int_;
static SCM gw__tmp1_range_maxval_gw_int_;
static SCM gw__tmp557_wct_info_for__gnc_OptionDB__ = SCM_BOOL_F;
static SCM gw__tmp556_wct_info_for__gnc_OptionChangeCallback_ = SCM_BOOL_F;
enum GW__ErrorStatus
{
  GW__ERR_NONE,
  GW__ERR_MISC,
  GW__ERR_MEMORY,
  GW__ERR_RANGE,
  GW__ERR_TYPE,
  GW__ERR_ARGC,
  GW__ERR_ARG_RANGE,
  GW__ERR_ARG_TYPE
};
 
static void
gw__handle_wrapper_error(enum GW__ErrorStatus status,
                         const char *func_name,
                         unsigned int arg_pos,
                         const char *misc_msg,
                         SCM scm_data) __attribute__ ((noreturn));

static void
gw__handle_wrapper_error(enum GW__ErrorStatus status,
                         const char *func_name,
                         unsigned int arg_pos,
                         const char *misc_msg,
                         SCM scm_data)
{
  static SCM out_of_range_key = SCM_BOOL_F;
  static SCM wrong_type_key = SCM_BOOL_F;

  if(SCM_FALSEP(out_of_range_key))
    out_of_range_key = scm_permanent_object(scm_c_make_keyword("out-of-range"));
  if(SCM_FALSEP(wrong_type_key))
    wrong_type_key = scm_permanent_object(scm_c_make_keyword("wrong-type"));

  switch(status) {
  case GW__ERR_NONE:
    scm_misc_error(func_name,
                   "asked to handle error when there wasn't one",
                   SCM_EOL);
    break;
  case GW__ERR_MISC:
    /* scm_data is a list of format args for misc_msg */
    scm_misc_error(func_name, misc_msg, scm_data); break;
  case GW__ERR_MEMORY:
    scm_memory_error(func_name); break;
  case GW__ERR_RANGE:
    scm_error (out_of_range_key,
	       func_name,
	       "Out of range: ~S",
               scm_cons (scm_data, SCM_EOL),
	       SCM_BOOL_F);
    break;
  case GW__ERR_TYPE:
    scm_error(wrong_type_key,
              func_name,
              "Wrong type: ",
              scm_cons (scm_data, SCM_EOL),
              SCM_BOOL_F);
    break;
  case GW__ERR_ARGC:
    scm_wrong_num_args(scm_makfrom0str(func_name)); break;
  case GW__ERR_ARG_RANGE:
    /* scm_data is the bad arg */
    scm_out_of_range(func_name, scm_data); break;
  case GW__ERR_ARG_TYPE:
    /* scm_data is the bad arg */
    scm_wrong_type_arg(func_name, arg_pos, scm_data); break;
  default:
    scm_misc_error(func_name,
                   "asked to handle nonexistent gw:error type: ~S",
                   scm_cons(scm_long2num(status), SCM_EOL));    
    break;
  };
  exit(1);
}
static char * gw__tmp559_gnc_get_current_group_namestr = "gnc:get-current-group";
static SCM gw__tmp558_gnc_get_current_group_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
AccountGroup* gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_get_current_group ();
SCM_ALLOW_INTS;
{
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gw_wcp_assimilate_ptr((void *) gw__c_result, gw__tmp19_wct_info_for__gnc_AccountGroup__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp559_gnc_get_current_group_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp561_gnc_get_current_book_namestr = "gnc:get-current-book";
static SCM gw__tmp560_gnc_get_current_book_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCBook* gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_get_current_book ();
SCM_ALLOW_INTS;
{
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gw_wcp_assimilate_ptr((void *) gw__c_result, gw__tmp20_wct_info_for__gnc_Book__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp561_gnc_get_current_book_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp563_gnc_get_current_session_namestr = "gnc:get-current-session";
static SCM gw__tmp562_gnc_get_current_session_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCSession* gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_get_current_session ();
SCM_ALLOW_INTS;
{
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gw_wcp_assimilate_ptr((void *) gw__c_result, gw__tmp22_wct_info_for__gnc_Session__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp563_gnc_get_current_session_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp565_gnc_exp_parser_init_namestr = "gnc:exp-parser-init";
static SCM gw__tmp564_gnc_exp_parser_init_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gnc_exp_parser_init ();
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp565_gnc_exp_parser_init_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp567_gnc_exp_parser_shutdown_namestr = "gnc:exp-parser-shutdown";
static SCM gw__tmp566_gnc_exp_parser_shutdown_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gnc_exp_parser_shutdown ();
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp567_gnc_exp_parser_shutdown_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp569_gnc_parse_amount_helper_namestr = "gnc:parse-amount";
static SCM gw__tmp568_gnc_parse_amount_helper_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
SCM gw__c_result;

const char * gw__c_arg0;
int gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
gw__c_arg0 = NULL;

if(SCM_FALSEP(gw__scm_arg0))
  gw__c_arg0 = NULL;
else if(SCM_STRINGP(gw__scm_arg0))
  gw__c_arg0 = gh_scm2newstr(gw__scm_arg0, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= SCM_NFALSEP(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gw__c_result = gnc_parse_amount_helper (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = gw__c_result;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
{
if(gw__c_arg0) free((void *) gw__c_arg0);
}
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp569_gnc_parse_amount_helper_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp571_gnc_setup_gettext_namestr = "gnc:setup-gettext";
static SCM gw__tmp570_gnc_setup_gettext_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gnc_setup_gettext ();
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp571_gnc_setup_gettext_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp573_gnc_gettext_helper_namestr = "gnc:gettext-helper";
static SCM gw__tmp572_gnc_gettext_helper_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
const char * gw__c_result;

const char * gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
gw__c_arg0 = NULL;

if(SCM_FALSEP(gw__scm_arg0))
  gw__c_arg0 = NULL;
else if(SCM_STRINGP(gw__scm_arg0))
  gw__c_arg0 = gh_scm2newstr(gw__scm_arg0, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_gettext_helper (gw__c_arg0);
SCM_ALLOW_INTS;
{
  /* we coerce to (char *) here b/c broken guile 1.3.4 prototype */
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gh_str02scm((char *) gw__c_result);
if(gw__c_result) free((void *) gw__c_result);
}
}
  gw__post_call_arg_0:
{
if(gw__c_arg0) free((void *) gw__c_arg0);
}
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp573_gnc_gettext_helper_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp575_gnc_option_db_new_namestr = "gnc:option-db-new";
static SCM gw__tmp574_gnc_option_db_new_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCOptionDB* gw__c_result;

SCM gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0 = gw__scm_arg0;
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_option_db_new (gw__c_arg0);
SCM_ALLOW_INTS;
{
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gw_wcp_assimilate_ptr((void *) gw__c_result, gw__tmp557_wct_info_for__gnc_OptionDB__);
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp575_gnc_option_db_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp577_gnc_option_db_destroy_namestr = "gnc:option-db-destroy";
static SCM gw__tmp576_gnc_option_db_destroy_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GNCOptionDB* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp557_wct_info_for__gnc_OptionDB__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_option_db_destroy (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp577_gnc_option_db_destroy_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp579_gnc_options_init_namestr = "gnc:c-options-init";
static SCM gw__tmp578_gnc_options_init_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gnc_options_init ();
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp579_gnc_options_init_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp581_gnc_options_shutdown_namestr = "gnc:c-options-shutdown";
static SCM gw__tmp580_gnc_options_shutdown_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gnc_options_shutdown ();
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp581_gnc_options_shutdown_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp583_gnc_set_option_selectable_by_name_namestr = "gnc:set-option-selectable-by-name";
static SCM gw__tmp582_gnc_set_option_selectable_by_name_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

const char * gw__c_arg0;
const char * gw__c_arg1;
int gw__c_arg2;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
gw__c_arg0 = NULL;

if(SCM_FALSEP(gw__scm_arg0))
  gw__c_arg0 = NULL;
else if(SCM_STRINGP(gw__scm_arg0))
  gw__c_arg0 = gh_scm2newstr(gw__scm_arg0, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
gw__c_arg1 = NULL;

if(SCM_FALSEP(gw__scm_arg1))
  gw__c_arg1 = NULL;
else if(SCM_STRINGP(gw__scm_arg1))
  gw__c_arg1 = gh_scm2newstr(gw__scm_arg1, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {gw__c_arg2= SCM_NFALSEP(gw__scm_arg2);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;
SCM_DEFER_INTS;
gnc_set_option_selectable_by_name (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_2:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
{
if(gw__c_arg1) free((void *) gw__c_arg1);
}
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
{
if(gw__c_arg0) free((void *) gw__c_arg0);
}
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp583_gnc_set_option_selectable_by_name_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp585_gnc_option_db_set_option_selectable_by_name_namestr = "gnc:option-db-set-option-selectable-by-name";
static SCM gw__tmp584_gnc_option_db_set_option_selectable_by_name_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

SCM gw__c_arg0;
const char * gw__c_arg1;
const char * gw__c_arg2;
int gw__c_arg3;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0 = gw__scm_arg0;
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
gw__c_arg1 = NULL;

if(SCM_FALSEP(gw__scm_arg1))
  gw__c_arg1 = NULL;
else if(SCM_STRINGP(gw__scm_arg1))
  gw__c_arg1 = gh_scm2newstr(gw__scm_arg1, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
gw__c_arg2 = NULL;

if(SCM_FALSEP(gw__scm_arg2))
  gw__c_arg2 = NULL;
else if(SCM_STRINGP(gw__scm_arg2))
  gw__c_arg2 = gh_scm2newstr(gw__scm_arg2, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= SCM_NFALSEP(gw__scm_arg3);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;
SCM_DEFER_INTS;
gnc_option_db_set_option_selectable_by_name (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_3:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_2:
{
if(gw__c_arg2) free((void *) gw__c_arg2);
}
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
{
if(gw__c_arg1) free((void *) gw__c_arg1);
}
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp585_gnc_option_db_set_option_selectable_by_name_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp587_gnc_default_currency_namestr = "gnc:default-currency";
static SCM gw__tmp586_gnc_default_currency_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
const gnc_commodity* gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_default_currency ();
SCM_ALLOW_INTS;
{
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gw_wcp_assimilate_ptr((void *) gw__c_result, gw__tmp25_wct_info_for__gnc_commodity__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp587_gnc_default_currency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp589_gnc_default_report_currency_namestr = "gnc:default-report-currency";
static SCM gw__tmp588_gnc_default_report_currency_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
const gnc_commodity* gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_default_report_currency ();
SCM_ALLOW_INTS;
{
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gw_wcp_assimilate_ptr((void *) gw__c_result, gw__tmp25_wct_info_for__gnc_commodity__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp589_gnc_default_report_currency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp591_xaccPrintAmount_namestr = "gnc:amount->string";
static SCM gw__tmp590_xaccPrintAmount_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
const char * gw__c_result;

gnc_numeric gw__c_arg0;
GNCPrintAmountInfo gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if (!(gnc_numeric_p(gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0 = gnc_scm_to_numeric(gw__scm_arg0);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(gnc_printinfo_p(gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1 = gnc_scm2printinfo(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gw__c_result = xaccPrintAmount (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
  /* we coerce to (char *) here b/c broken guile 1.3.4 prototype */
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gh_str02scm((char *) gw__c_result);
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp591_xaccPrintAmount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp593_gncp_option_refresh_ui_namestr = "gnc:option-refresh-ui";
static SCM gw__tmp592_gncp_option_refresh_ui_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

SCM gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0 = gw__scm_arg0;
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gncp_option_refresh_ui (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp593_gncp_option_refresh_ui_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp595_gncp_option_invoke_callback_namestr = "gnc:option-invoke-callback";
static SCM gw__tmp594_gncp_option_invoke_callback_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GNCOptionChangeCallback gw__c_arg0;
void * gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp556_wct_info_for__gnc_OptionChangeCallback_, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp6_wct_info_for__gw_void__, gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__scm_arg1)) gw__c_arg1 = NULL;
else gw__c_arg1 = gw_wcp_get_ptr(gw__scm_arg1);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gncp_option_invoke_callback (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp595_gncp_option_invoke_callback_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp597_gncp_option_db_register_option_namestr = "gnc:option-db-register-option";
static SCM gw__tmp596_gncp_option_db_register_option_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

int gw__c_arg0;
SCM gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg0, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg0, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0= gh_scm2long(gw__scm_arg0);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1 = gw__scm_arg1;
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gncp_option_db_register_option (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp597_gncp_option_db_register_option_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp599_gnc_locale_decimal_places_namestr = "gnc:locale-decimal-places";
static SCM gw__tmp598_gnc_locale_decimal_places_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
int gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_locale_decimal_places ();
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(gw__c_result);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp599_gnc_locale_decimal_places_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp601_gnc_locale_default_currency_namestr = "gnc:locale-default-currency";
static SCM gw__tmp600_gnc_locale_default_currency_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
const gnc_commodity* gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_locale_default_currency ();
SCM_ALLOW_INTS;
{
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gw_wcp_assimilate_ptr((void *) gw__c_result, gw__tmp25_wct_info_for__gnc_commodity__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp601_gnc_locale_default_currency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp603_gnc_locale_default_iso_currency_code_namestr = "gnc:locale-default-iso-currency-code";
static SCM gw__tmp602_gnc_locale_default_iso_currency_code_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
const char * gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_locale_default_iso_currency_code ();
SCM_ALLOW_INTS;
{
  /* we coerce to (char *) here b/c broken guile 1.3.4 prototype */
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gh_str02scm((char *) gw__c_result);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp603_gnc_locale_default_iso_currency_code_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp605_gnc_register_gui_component_scm_namestr = "gnc:register-gui-component";
static SCM gw__tmp604_gnc_register_gui_component_scm_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
int gw__c_result;

const char * gw__c_arg0;
SCM gw__c_arg1;
SCM gw__c_arg2;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
gw__c_arg0 = NULL;

if(SCM_FALSEP(gw__scm_arg0))
  gw__c_arg0 = NULL;
else if(SCM_STRINGP(gw__scm_arg0))
  gw__c_arg0 = gh_scm2newstr(gw__scm_arg0, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1 = gw__scm_arg1;
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {gw__c_arg2 = gw__scm_arg2;
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;
SCM_DEFER_INTS;
gw__c_result = gnc_register_gui_component_scm (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(gw__c_result);
}
}
  gw__post_call_arg_2:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
{
if(gw__c_arg0) free((void *) gw__c_arg0);
}
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp605_gnc_register_gui_component_scm_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp607_gnc_gui_component_watch_entity_direct_namestr = "gnc:gui-component-watch-entity";
static SCM gw__tmp606_gnc_gui_component_watch_entity_direct_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

int gw__c_arg0;
GUID gw__c_arg1;
GNCEngineEventType gw__c_arg2;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg0, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg0, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0= gh_scm2long(gw__scm_arg0);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(gnc_guid_p(gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1 = gnc_scm2guid(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
gw__scm_arg2 = gh_call1(gw__enum__gnc_event_type__val_to_int_scm_func, gw__scm_arg2);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else gw__c_arg2 = gh_scm2long(gw__scm_arg2);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;
SCM_DEFER_INTS;
gnc_gui_component_watch_entity_direct (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_2:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp607_gnc_gui_component_watch_entity_direct_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp609_gnc_gui_component_watch_entity_type_namestr = "gnc:gui-component-watch-entity-type";
static SCM gw__tmp608_gnc_gui_component_watch_entity_type_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

int gw__c_arg0;
const char * gw__c_arg1;
GNCEngineEventType gw__c_arg2;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg0, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg0, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0= gh_scm2long(gw__scm_arg0);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
gw__c_arg1 = NULL;

if(SCM_FALSEP(gw__scm_arg1))
  gw__c_arg1 = NULL;
else if(SCM_STRINGP(gw__scm_arg1))
  gw__c_arg1 = gh_scm2newstr(gw__scm_arg1, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
gw__scm_arg2 = gh_call1(gw__enum__gnc_event_type__val_to_int_scm_func, gw__scm_arg2);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else gw__c_arg2 = gh_scm2long(gw__scm_arg2);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;
SCM_DEFER_INTS;
gnc_gui_component_watch_entity_type (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_2:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
{
if(gw__c_arg1) free((void *) gw__c_arg1);
}
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp609_gnc_gui_component_watch_entity_type_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp611_gnc_unregister_gui_component_namestr = "gnc:unregister-gui-component";
static SCM gw__tmp610_gnc_unregister_gui_component_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

int gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg0, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg0, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0= gh_scm2long(gw__scm_arg0);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_unregister_gui_component (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp611_gnc_unregister_gui_component_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp613_gnc_suspend_gui_refresh_namestr = "gnc:suspend-gui-refresh";
static SCM gw__tmp612_gnc_suspend_gui_refresh_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gnc_suspend_gui_refresh ();
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp613_gnc_suspend_gui_refresh_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp615_gnc_resume_gui_refresh_namestr = "gnc:resume-gui-refresh";
static SCM gw__tmp614_gnc_resume_gui_refresh_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gnc_resume_gui_refresh ();
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp615_gnc_resume_gui_refresh_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp617_gnc_gui_refresh_all_namestr = "gnc:gui-refresh-all";
static SCM gw__tmp616_gnc_gui_refresh_all_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gnc_gui_refresh_all ();
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp617_gnc_gui_refresh_all_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp619_gnc_gui_refresh_suspended_namestr = "gnc:gui-refresh-suspended";
static SCM gw__tmp618_gnc_gui_refresh_suspended_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
int gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_gui_refresh_suspended ();
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp619_gnc_gui_refresh_suspended_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp621_gnc_close_gui_component_namestr = "gnc:close-gui-component";
static SCM gw__tmp620_gnc_close_gui_component_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

int gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg0, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg0, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0= gh_scm2long(gw__scm_arg0);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_close_gui_component (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp621_gnc_close_gui_component_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp623_gnc_account_get_full_name_namestr = "gnc:account-get-full-name";
static SCM gw__tmp622_gnc_account_get_full_name_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
char * gw__c_result;

Account* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp17_wct_info_for__gnc_Account__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_account_get_full_name (gw__c_arg0);
SCM_ALLOW_INTS;
{
  /* we coerce to (char *) here b/c broken guile 1.3.4 prototype */
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gh_str02scm((char *) gw__c_result);
if(gw__c_result) free((void *) gw__c_result);
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp623_gnc_account_get_full_name_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp625_gnc_default_print_info_namestr = "gnc:default-print-info";
static SCM gw__tmp624_gnc_default_print_info_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCPrintAmountInfo gw__c_result;

int gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0= SCM_NFALSEP(gw__scm_arg0);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_default_print_info (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_printinfo2scm(gw__c_result);
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp625_gnc_default_print_info_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp627_gnc_commodity_print_info_namestr = "gnc:commodity-print-info";
static SCM gw__tmp626_gnc_commodity_print_info_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCPrintAmountInfo gw__c_result;

gnc_commodity* gw__c_arg0;
int gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_commodity__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= SCM_NFALSEP(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gw__c_result = gnc_commodity_print_info (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_printinfo2scm(gw__c_result);
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp627_gnc_commodity_print_info_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp629_gnc_account_print_info_namestr = "gnc:account-print-info";
static SCM gw__tmp628_gnc_account_print_info_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCPrintAmountInfo gw__c_result;

Account* gw__c_arg0;
int gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp17_wct_info_for__gnc_Account__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= SCM_NFALSEP(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gw__c_result = gnc_account_print_info (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_printinfo2scm(gw__c_result);
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp629_gnc_account_print_info_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp631_gnc_split_amount_print_info_namestr = "gnc:split-amount-print-info";
static SCM gw__tmp630_gnc_split_amount_print_info_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCPrintAmountInfo gw__c_result;

Split* gw__c_arg0;
int gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp23_wct_info_for__gnc_Split__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= SCM_NFALSEP(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gw__c_result = gnc_split_amount_print_info (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_printinfo2scm(gw__c_result);
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp631_gnc_split_amount_print_info_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp633_gnc_split_value_print_info_namestr = "gnc:split-value-print-info";
static SCM gw__tmp632_gnc_split_value_print_info_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCPrintAmountInfo gw__c_result;

Split* gw__c_arg0;
int gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp23_wct_info_for__gnc_Split__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= SCM_NFALSEP(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gw__c_result = gnc_split_value_print_info (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_printinfo2scm(gw__c_result);
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp633_gnc_split_value_print_info_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp635_gnc_share_print_info_places_namestr = "gnc:share-print-info-places";
static SCM gw__tmp634_gnc_share_print_info_places_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCPrintAmountInfo gw__c_result;

int gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg0, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg0, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {gw__c_arg0= gh_scm2long(gw__scm_arg0);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_share_print_info_places (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_printinfo2scm(gw__c_result);
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp635_gnc_share_print_info_places_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp637_gnc_default_share_print_info_namestr = "gnc:default-share-print-info";
static SCM gw__tmp636_gnc_default_share_print_info_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCPrintAmountInfo gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_default_share_print_info ();
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_printinfo2scm(gw__c_result);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp637_gnc_default_share_print_info_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp639_gnc_default_price_print_info_namestr = "gnc:default-price-print-info";
static SCM gw__tmp638_gnc_default_price_print_info_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
GNCPrintAmountInfo gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_default_price_print_info ();
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_printinfo2scm(gw__c_result);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp639_gnc_default_price_print_info_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp641_gnc_reverse_balance_namestr = "gnc:account-reverse-balance?";
static SCM gw__tmp640_gnc_reverse_balance_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
int gw__c_result;

Account* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp17_wct_info_for__gnc_Account__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_reverse_balance (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp641_gnc_reverse_balance_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp643_gnc_is_euro_currency_namestr = "gnc:is-euro-currency";
static SCM gw__tmp642_gnc_is_euro_currency_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
int gw__c_result;

gnc_commodity* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_commodity__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_is_euro_currency (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp643_gnc_is_euro_currency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp645_gnc_is_euro_currency_code_namestr = "gnc:is-euro-currency-code";
static SCM gw__tmp644_gnc_is_euro_currency_code_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
int gw__c_result;

const char * gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
gw__c_arg0 = NULL;

if(SCM_FALSEP(gw__scm_arg0))
  gw__c_arg0 = NULL;
else if(SCM_STRINGP(gw__scm_arg0))
  gw__c_arg0 = gh_scm2newstr(gw__scm_arg0, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_is_euro_currency_code (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  gw__post_call_arg_0:
{
if(gw__c_arg0) free((void *) gw__c_arg0);
}
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp645_gnc_is_euro_currency_code_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp647_gnc_convert_to_euro_namestr = "gnc:convert-to-euro";
static SCM gw__tmp646_gnc_convert_to_euro_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
gnc_numeric gw__c_result;

gnc_commodity* gw__c_arg0;
gnc_numeric gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_commodity__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(gnc_numeric_p(gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1 = gnc_scm_to_numeric(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gw__c_result = gnc_convert_to_euro (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp647_gnc_convert_to_euro_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp649_gnc_convert_from_euro_namestr = "gnc:convert-from-euro";
static SCM gw__tmp648_gnc_convert_from_euro_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
gnc_numeric gw__c_result;

gnc_commodity* gw__c_arg0;
gnc_numeric gw__c_arg1;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_commodity__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
/* ARG 1 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;

{
if (!(gnc_numeric_p(gw__scm_arg1))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1 = gnc_scm_to_numeric(gw__scm_arg1);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;
SCM_DEFER_INTS;
gw__c_result = gnc_convert_from_euro (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  gw__post_call_arg_1:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp649_gnc_convert_from_euro_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp651_gnc_euro_currency_get_rate_namestr = "gnc:euro-currency-get-rate";
static SCM gw__tmp650_gnc_euro_currency_get_rate_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
gnc_numeric gw__c_result;

gnc_commodity* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
if(!(SCM_FALSEP(gw__scm_arg0) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_commodity__, gw__scm_arg0))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__scm_arg0)) gw__c_arg0 = NULL;
else gw__c_arg0 = gw_wcp_get_ptr(gw__scm_arg0);
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_euro_currency_get_rate (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  gw__post_call_arg_0:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp651_gnc_euro_currency_get_rate_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp653_gnc_get_euro_namestr = "gnc:get-euro";
static SCM gw__tmp652_gnc_get_euro_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
gnc_commodity* gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_get_euro ();
SCM_ALLOW_INTS;
{
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gw_wcp_assimilate_ptr((void *) gw__c_result, gw__tmp25_wct_info_for__gnc_commodity__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp653_gnc_get_euro_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp655_gnc_price_source_internal2fq_namestr = "gnc:price-source-internal2fq";
static SCM gw__tmp654_gnc_price_source_internal2fq_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
const char * gw__c_result;

const char * gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
gw__c_arg0 = NULL;

if(SCM_FALSEP(gw__scm_arg0))
  gw__c_arg0 = NULL;
else if(SCM_STRINGP(gw__scm_arg0))
  gw__c_arg0 = gh_scm2newstr(gw__scm_arg0, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gw__c_result = gnc_price_source_internal2fq (gw__c_arg0);
SCM_ALLOW_INTS;
{
  /* we coerce to (char *) here b/c broken guile 1.3.4 prototype */
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gh_str02scm((char *) gw__c_result);
}
}
  gw__post_call_arg_0:
{
if(gw__c_arg0) free((void *) gw__c_arg0);
}
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp655_gnc_price_source_internal2fq_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp657_gnc_price_source_set_fq_installed_namestr = "gnc:price-source-set-fq-installed";
static SCM gw__tmp656_gnc_price_source_set_fq_installed_wrapper  (SCM gw__scm_arg0 ) {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;

GList* gw__c_arg0;
/* ARG 0 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;

{
{
  SCM gw__tmp660_scm_rest = gw__scm_arg0;
  gw__c_arg0= NULL;
  while(!SCM_NULLP(gw__tmp660_scm_rest)
        && (! (gw__error_status != GW__ERR_NONE)))
  {
    char * gw__tmp661_c_item;
    SCM gw__tmp662_scm_item = SCM_CAR(gw__tmp660_scm_rest);

gw__tmp661_c_item = NULL;

if(SCM_FALSEP(gw__tmp662_scm_item))
  gw__tmp661_c_item = NULL;
else if(SCM_STRINGP(gw__tmp662_scm_item))
  gw__tmp661_c_item = gh_scm2newstr(gw__tmp662_scm_item, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__tmp662_scm_item;
   goto gw__post_call_arg_0;
}

    if(! (gw__error_status != GW__ERR_NONE) )
    {
       gw__c_arg0 = g_list_prepend (gw__c_arg0, (gpointer)gw__tmp661_c_item);
    }
    gw__tmp660_scm_rest = SCM_CDR (gw__tmp660_scm_rest);
  }
  if(!(gw__error_status != GW__ERR_NONE))
  {
    gw__c_arg0 = g_list_reverse(gw__c_arg0);
  }
  else
  {
    GList * gw__tmp663_cursor = gw__c_arg0;
    while(gw__tmp663_cursor)
    {
      char * gw__tmp661_c_item;
      gw__tmp661_c_item = ( char *) gw__tmp663_cursor->data;
if(gw__tmp661_c_item) free((void *) gw__tmp661_c_item);
gw__tmp663_cursor = gw__tmp663_cursor->next;
    }
    g_list_free(gw__c_arg0);
    gw__c_arg0 = NULL;
  }
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg0;
   goto gw__post_call_arg_0;
}
if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_0;
SCM_DEFER_INTS;
gnc_price_source_set_fq_installed (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
{
{
  GList * gw__tmp665_cursor = gw__c_arg0;
  while(gw__tmp665_cursor)
  {
    char * gw__tmp664_c_item;
    gw__tmp664_c_item = ( char *) gw__tmp665_cursor->data;
gw__tmp665_cursor = gw__tmp665_cursor->next;
  }
}
}
  { /* shut up warnings if no code */ int x = x; }
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp657_gnc_price_source_set_fq_installed_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp659_gnc_get_account_separator_string_namestr = "gnc:account-separator-char";
static SCM gw__tmp658_gnc_get_account_separator_string_wrapper  () {
  SCM gw__scm_result = SCM_UNSPECIFIED;
  enum GW__ErrorStatus gw__error_status = GW__ERR_NONE;
  SCM gw__error_data = SCM_UNSPECIFIED;
  unsigned int gw__arg_pos = 0;
  const char *gw__error_misc_msg = NULL;
const char * gw__c_result;

if (gw__error_status == GW__ERR_NONE)
{
  /* no pre-call result code requested! */
if (gw__error_status != GW__ERR_NONE) goto gw__wrapper_exit;
SCM_DEFER_INTS;
gw__c_result = gnc_get_account_separator_string ();
SCM_ALLOW_INTS;
{
  /* we coerce to (char *) here b/c broken guile 1.3.4 prototype */
if(gw__c_result == NULL) gw__scm_result = SCM_BOOL_F;
else gw__scm_result = gh_str02scm((char *) gw__c_result);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp659_gnc_get_account_separator_string_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
void
gw_init_wrapset_gw_app_utils() {
  static int gw_wrapset_initialized = 0;

  if(!gw_wrapset_initialized)
  {
    gh_eval_str("(use-modules (g-wrap runtime))");
    gh_eval_str("(gw:wrapset-register-runtime \"gw-app-utils\")");

gh_eval_str("(use-modules (g-wrapped gw-engine))");
gh_eval_str("(use-modules (g-wrap gw-glib))");
gh_eval_str("(use-modules (g-wrap gw-wct))");
gh_eval_str("(use-modules (g-wrap gw-standard))");
{
   enum GW__ErrorStatus gw__tmp666_status_var = GW__ERR_NONE;
   SCM gw__tmp668_err_data = SCM_UNSPECIFIED;
   char *gw__tmp667_err_misc_msg = NULL;
   (void) gw__tmp666_status_var;
   (void) gw__tmp668_err_data;
   (void) gw__tmp667_err_misc_msg;
}
{
   enum GW__ErrorStatus gw__tmp669_err_status = GW__ERR_NONE;
   SCM gw__tmp671_err_data = SCM_UNSPECIFIED;
   char *gw__tmp670_err_misc_msg = NULL;
   (void) gw__tmp669_err_status;
   (void) gw__tmp671_err_data;
   (void) gw__tmp670_err_misc_msg;
gw__enum__gnc_event_type__val_to_int_scm_func = gh_lookup("gw:enum-<gnc:event-type>-val->int");
gw__enum__gnc_event_type__val_to_sym_scm_func = gh_lookup("gw:enum-<gnc:event-type>-val->sym");
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp25_wct_info_for__gnc_commodity__ = gh_eval_str("<gnc:commodity*>");
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp23_wct_info_for__gnc_Split__ = gh_eval_str("<gnc:Split*>");
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp22_wct_info_for__gnc_Session__ = gh_eval_str("<gnc:Session*>");
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp20_wct_info_for__gnc_Book__ = gh_eval_str("<gnc:Book*>");
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp19_wct_info_for__gnc_AccountGroup__ = gh_eval_str("<gnc:AccountGroup*>");
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp17_wct_info_for__gnc_Account__ = gh_eval_str("<gnc:Account*>");
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp6_wct_info_for__gw_void__ = gh_eval_str("<gw:void*>");
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
gw__tmp0_range_minval_gw_int_ = scm_long2num(INT_MIN);
scm_protect_object(gw__tmp0_range_minval_gw_int_);
gw__tmp1_range_maxval_gw_int_ = scm_long2num(INT_MAX);
scm_protect_object(gw__tmp1_range_maxval_gw_int_);
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp557_wct_info_for__gnc_OptionDB__ = gw_wct_create("<gnc:OptionDB*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:OptionDB*>", gw__tmp557_wct_info_for__gnc_OptionDB__);
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
    gw__tmp556_wct_info_for__gnc_OptionChangeCallback_ = gw_wct_create("<gnc:OptionChangeCallback>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:OptionChangeCallback>", gw__tmp556_wct_info_for__gnc_OptionChangeCallback_);
if (gw__tmp669_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp669_err_status,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp670_err_misc_msg,
                            gw__tmp671_err_data);
}
{
   enum GW__ErrorStatus gw__tmp672_status_var = GW__ERR_NONE;
   SCM gw__tmp674_err_data = SCM_UNSPECIFIED;
   char *gw__tmp673_err_misc_msg = NULL;
   (void) gw__tmp672_status_var;
   (void) gw__tmp674_err_data;
   (void) gw__tmp673_err_misc_msg;
    gh_new_procedure(gw__tmp559_gnc_get_current_group_namestr,
                     (SCM (*) ()) gw__tmp558_gnc_get_current_group_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp561_gnc_get_current_book_namestr,
                     (SCM (*) ()) gw__tmp560_gnc_get_current_book_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp563_gnc_get_current_session_namestr,
                     (SCM (*) ()) gw__tmp562_gnc_get_current_session_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp565_gnc_exp_parser_init_namestr,
                     (SCM (*) ()) gw__tmp564_gnc_exp_parser_init_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp567_gnc_exp_parser_shutdown_namestr,
                     (SCM (*) ()) gw__tmp566_gnc_exp_parser_shutdown_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp569_gnc_parse_amount_helper_namestr,
                     (SCM (*) ()) gw__tmp568_gnc_parse_amount_helper_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp571_gnc_setup_gettext_namestr,
                     (SCM (*) ()) gw__tmp570_gnc_setup_gettext_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp573_gnc_gettext_helper_namestr,
                     (SCM (*) ()) gw__tmp572_gnc_gettext_helper_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp575_gnc_option_db_new_namestr,
                     (SCM (*) ()) gw__tmp574_gnc_option_db_new_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp577_gnc_option_db_destroy_namestr,
                     (SCM (*) ()) gw__tmp576_gnc_option_db_destroy_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp579_gnc_options_init_namestr,
                     (SCM (*) ()) gw__tmp578_gnc_options_init_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp581_gnc_options_shutdown_namestr,
                     (SCM (*) ()) gw__tmp580_gnc_options_shutdown_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp583_gnc_set_option_selectable_by_name_namestr,
                     (SCM (*) ()) gw__tmp582_gnc_set_option_selectable_by_name_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp585_gnc_option_db_set_option_selectable_by_name_namestr,
                     (SCM (*) ()) gw__tmp584_gnc_option_db_set_option_selectable_by_name_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp587_gnc_default_currency_namestr,
                     (SCM (*) ()) gw__tmp586_gnc_default_currency_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp589_gnc_default_report_currency_namestr,
                     (SCM (*) ()) gw__tmp588_gnc_default_report_currency_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp591_xaccPrintAmount_namestr,
                     (SCM (*) ()) gw__tmp590_xaccPrintAmount_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp593_gncp_option_refresh_ui_namestr,
                     (SCM (*) ()) gw__tmp592_gncp_option_refresh_ui_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp595_gncp_option_invoke_callback_namestr,
                     (SCM (*) ()) gw__tmp594_gncp_option_invoke_callback_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp597_gncp_option_db_register_option_namestr,
                     (SCM (*) ()) gw__tmp596_gncp_option_db_register_option_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp599_gnc_locale_decimal_places_namestr,
                     (SCM (*) ()) gw__tmp598_gnc_locale_decimal_places_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp601_gnc_locale_default_currency_namestr,
                     (SCM (*) ()) gw__tmp600_gnc_locale_default_currency_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp603_gnc_locale_default_iso_currency_code_namestr,
                     (SCM (*) ()) gw__tmp602_gnc_locale_default_iso_currency_code_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp605_gnc_register_gui_component_scm_namestr,
                     (SCM (*) ()) gw__tmp604_gnc_register_gui_component_scm_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp607_gnc_gui_component_watch_entity_direct_namestr,
                     (SCM (*) ()) gw__tmp606_gnc_gui_component_watch_entity_direct_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp609_gnc_gui_component_watch_entity_type_namestr,
                     (SCM (*) ()) gw__tmp608_gnc_gui_component_watch_entity_type_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp611_gnc_unregister_gui_component_namestr,
                     (SCM (*) ()) gw__tmp610_gnc_unregister_gui_component_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp613_gnc_suspend_gui_refresh_namestr,
                     (SCM (*) ()) gw__tmp612_gnc_suspend_gui_refresh_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp615_gnc_resume_gui_refresh_namestr,
                     (SCM (*) ()) gw__tmp614_gnc_resume_gui_refresh_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp617_gnc_gui_refresh_all_namestr,
                     (SCM (*) ()) gw__tmp616_gnc_gui_refresh_all_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp619_gnc_gui_refresh_suspended_namestr,
                     (SCM (*) ()) gw__tmp618_gnc_gui_refresh_suspended_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp621_gnc_close_gui_component_namestr,
                     (SCM (*) ()) gw__tmp620_gnc_close_gui_component_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp623_gnc_account_get_full_name_namestr,
                     (SCM (*) ()) gw__tmp622_gnc_account_get_full_name_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp625_gnc_default_print_info_namestr,
                     (SCM (*) ()) gw__tmp624_gnc_default_print_info_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp627_gnc_commodity_print_info_namestr,
                     (SCM (*) ()) gw__tmp626_gnc_commodity_print_info_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp629_gnc_account_print_info_namestr,
                     (SCM (*) ()) gw__tmp628_gnc_account_print_info_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp631_gnc_split_amount_print_info_namestr,
                     (SCM (*) ()) gw__tmp630_gnc_split_amount_print_info_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp633_gnc_split_value_print_info_namestr,
                     (SCM (*) ()) gw__tmp632_gnc_split_value_print_info_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp635_gnc_share_print_info_places_namestr,
                     (SCM (*) ()) gw__tmp634_gnc_share_print_info_places_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp637_gnc_default_share_print_info_namestr,
                     (SCM (*) ()) gw__tmp636_gnc_default_share_print_info_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp639_gnc_default_price_print_info_namestr,
                     (SCM (*) ()) gw__tmp638_gnc_default_price_print_info_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp641_gnc_reverse_balance_namestr,
                     (SCM (*) ()) gw__tmp640_gnc_reverse_balance_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp643_gnc_is_euro_currency_namestr,
                     (SCM (*) ()) gw__tmp642_gnc_is_euro_currency_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp645_gnc_is_euro_currency_code_namestr,
                     (SCM (*) ()) gw__tmp644_gnc_is_euro_currency_code_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp647_gnc_convert_to_euro_namestr,
                     (SCM (*) ()) gw__tmp646_gnc_convert_to_euro_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp649_gnc_convert_from_euro_namestr,
                     (SCM (*) ()) gw__tmp648_gnc_convert_from_euro_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp651_gnc_euro_currency_get_rate_namestr,
                     (SCM (*) ()) gw__tmp650_gnc_euro_currency_get_rate_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp653_gnc_get_euro_namestr,
                     (SCM (*) ()) gw__tmp652_gnc_get_euro_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp655_gnc_price_source_internal2fq_namestr,
                     (SCM (*) ()) gw__tmp654_gnc_price_source_internal2fq_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp657_gnc_price_source_set_fq_installed_namestr,
                     (SCM (*) ()) gw__tmp656_gnc_price_source_set_fq_installed_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
    gh_new_procedure(gw__tmp659_gnc_get_account_separator_string_namestr,
                     (SCM (*) ()) gw__tmp658_gnc_get_account_separator_string_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp672_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp672_status_var,
                            "gw_init_wrapset_gw_app_utils",
                            0,
                            gw__tmp673_err_misc_msg,
                            gw__tmp674_err_data);
}
    gw_wrapset_initialized = 1;
    (void) gw__handle_wrapper_error;
  }
}
