/* 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-engine.h"
#include <glib.h>
#include <g-wrap-glib.h>
#include <g-wrap-wct.h>
#include <limits.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>
static SCM gw__tmp2_range_maxval_gw_unsigned_int_;
static SCM gw__tmp0_range_minval_gw_int_;
static SCM gw__tmp1_range_maxval_gw_int_;
static SCM gw__tmp259_wct_info_for__gnc_Price__ = SCM_BOOL_F;
static SCM gw__tmp258_wct_info_for__gnc_PriceDB__ = SCM_BOOL_F;
static SCM gw__enum__gnc_BackendError__val_to_int_scm_func;
static SCM gw__enum__gnc_BackendError__val_to_sym_scm_func;
static SCM gw__enum__gnc_AccountType__val_to_int_scm_func;
static SCM gw__enum__gnc_AccountType__val_to_sym_scm_func;
static SCM gw__enum__gnc_kvp_value_t__val_to_int_scm_func;
static SCM gw__enum__gnc_kvp_value_t__val_to_sym_scm_func;
static SCM gw__enum__gnc_query_txn_match_t__val_to_int_scm_func;
static SCM gw__enum__gnc_query_txn_match_t__val_to_sym_scm_func;
static SCM gw__enum__gnc_char_match_how__val_to_int_scm_func;
static SCM gw__enum__gnc_char_match_how__val_to_sym_scm_func;
static SCM gw__enum__gnc_guid_match_how__val_to_int_scm_func;
static SCM gw__enum__gnc_guid_match_how__val_to_sym_scm_func;
static SCM gw__enum__gnc_cleared_match_how__val_to_int_scm_func;
static SCM gw__enum__gnc_cleared_match_how__val_to_sym_scm_func;
static SCM gw__enum__gnc_numeric_match_how__val_to_int_scm_func;
static SCM gw__enum__gnc_numeric_match_how__val_to_sym_scm_func;
static SCM gw__enum__gnc_date_match_how__val_to_int_scm_func;
static SCM gw__enum__gnc_date_match_how__val_to_sym_scm_func;
static SCM gw__enum__gnc_string_match_how__val_to_int_scm_func;
static SCM gw__enum__gnc_string_match_how__val_to_sym_scm_func;
static SCM gw__enum__gnc_query_compare_how__val_to_int_scm_func;
static SCM gw__enum__gnc_query_compare_how__val_to_sym_scm_func;
static SCM gw__enum__gnc_query_op__val_to_int_scm_func;
static SCM gw__enum__gnc_query_op__val_to_sym_scm_func;
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__tmp29_wct_info_for__gnc_Query__ = SCM_BOOL_F;
static SCM gw__tmp28_wct_info_for__gnc_commodity_table__ = SCM_BOOL_F;
static SCM gw__tmp27_wct_info_for__gnc_commodity__ = SCM_BOOL_F;
static SCM gw__tmp26_wct_info_for__gnc_Transaction__ = SCM_BOOL_F;
static SCM gw__tmp25_wct_info_for__gnc_Split__ = SCM_BOOL_F;
static SCM gw__tmp24_wct_info_for__gnc_Session__ = SCM_BOOL_F;
static SCM gw__tmp23_wct_info_for__gnc_Lot__ = SCM_BOOL_F;
static SCM gw__tmp22_wct_info_for__gnc_Book__ = SCM_BOOL_F;
static SCM gw__tmp21_wct_info_for__gnc_AccountGroup__ = SCM_BOOL_F;
static SCM gw__tmp20_wct_info_for__gnc_AccInfo__ = SCM_BOOL_F;
static SCM gw__tmp19_wct_info_for__gnc_InvAcct__ = SCM_BOOL_F;
static SCM gw__tmp18_wct_info_for__gnc_Account___ = SCM_BOOL_F;
static SCM gw__tmp17_wct_info_for__gnc_Account__ = SCM_BOOL_F;
static SCM gw__tmp16_wct_info_for__gnc_id_type_ = SCM_BOOL_F;
static SCM gw__tmp15_wct_info_for__gnc_GList__ = 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 SCM
gw__enum__gnc_BackendError__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  GNCBackendError gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_BackendError__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == ERR_BACKEND_MISC) {
    if(!gw__return_all_syms) return gh_symbol2scm("misc");
    gw__scm_result =
      gh_cons(gh_symbol2scm("misc"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_ALLOC) {
    if(!gw__return_all_syms) return gh_symbol2scm("alloc");
    gw__scm_result =
      gh_cons(gh_symbol2scm("alloc"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_SERVER_ERR) {
    if(!gw__return_all_syms) return gh_symbol2scm("server-error");
    gw__scm_result =
      gh_cons(gh_symbol2scm("server-error"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_DATA_CORRUPT) {
    if(!gw__return_all_syms) return gh_symbol2scm("data-corrupt");
    gw__scm_result =
      gh_cons(gh_symbol2scm("data-corrupt"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_LOCKED) {
    if(!gw__return_all_syms) return gh_symbol2scm("locked");
    gw__scm_result =
      gh_cons(gh_symbol2scm("locked"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_NO_SUCH_DB) {
    if(!gw__return_all_syms) return gh_symbol2scm("no-such-db");
    gw__scm_result =
      gh_cons(gh_symbol2scm("no-such-db"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_CONN_LOST) {
    if(!gw__return_all_syms) return gh_symbol2scm("connection-lost");
    gw__scm_result =
      gh_cons(gh_symbol2scm("connection-lost"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_CANT_CONNECT) {
    if(!gw__return_all_syms) return gh_symbol2scm("cant-connect");
    gw__scm_result =
      gh_cons(gh_symbol2scm("cant-connect"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_BAD_URL) {
    if(!gw__return_all_syms) return gh_symbol2scm("bad-url");
    gw__scm_result =
      gh_cons(gh_symbol2scm("bad-url"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_NO_BACKEND) {
    if(!gw__return_all_syms) return gh_symbol2scm("no-backend");
    gw__scm_result =
      gh_cons(gh_symbol2scm("no-backend"), gw__scm_result);
  }

  if(gw__enum_val == ERR_BACKEND_NO_ERR) {
    if(!gw__return_all_syms) return gh_symbol2scm("no-err");
    gw__scm_result =
      gh_cons(gh_symbol2scm("no-err"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_BackendError__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_BackendError__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "misc") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_MISC);
  }

  if(strcmp(gw__symstr, "alloc") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_ALLOC);
  }

  if(strcmp(gw__symstr, "server-error") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_SERVER_ERR);
  }

  if(strcmp(gw__symstr, "data-corrupt") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_DATA_CORRUPT);
  }

  if(strcmp(gw__symstr, "locked") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_LOCKED);
  }

  if(strcmp(gw__symstr, "no-such-db") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_NO_SUCH_DB);
  }

  if(strcmp(gw__symstr, "connection-lost") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_CONN_LOST);
  }

  if(strcmp(gw__symstr, "cant-connect") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_CANT_CONNECT);
  }

  if(strcmp(gw__symstr, "bad-url") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_BAD_URL);
  }

  if(strcmp(gw__symstr, "no-backend") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_NO_BACKEND);
  }

  if(strcmp(gw__symstr, "no-err") == 0) {
    free(gw__symstr);
    return gh_long2scm(ERR_BACKEND_NO_ERR);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_AccountType__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  GNCAccountType gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_AccountType__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == CREDITLINE) {
    if(!gw__return_all_syms) return gh_symbol2scm("credit-line");
    gw__scm_result =
      gh_cons(gh_symbol2scm("credit-line"), gw__scm_result);
  }

  if(gw__enum_val == MONEYMRKT) {
    if(!gw__return_all_syms) return gh_symbol2scm("money-market");
    gw__scm_result =
      gh_cons(gh_symbol2scm("money-market"), gw__scm_result);
  }

  if(gw__enum_val == SAVINGS) {
    if(!gw__return_all_syms) return gh_symbol2scm("savings");
    gw__scm_result =
      gh_cons(gh_symbol2scm("savings"), gw__scm_result);
  }

  if(gw__enum_val == CHECKING) {
    if(!gw__return_all_syms) return gh_symbol2scm("checking");
    gw__scm_result =
      gh_cons(gh_symbol2scm("checking"), gw__scm_result);
  }

  if(gw__enum_val == NUM_ACCOUNT_TYPES) {
    if(!gw__return_all_syms) return gh_symbol2scm("num-account-types");
    gw__scm_result =
      gh_cons(gh_symbol2scm("num-account-types"), gw__scm_result);
  }

  if(gw__enum_val == PAYABLE) {
    if(!gw__return_all_syms) return gh_symbol2scm("payable");
    gw__scm_result =
      gh_cons(gh_symbol2scm("payable"), gw__scm_result);
  }

  if(gw__enum_val == RECEIVABLE) {
    if(!gw__return_all_syms) return gh_symbol2scm("receivable");
    gw__scm_result =
      gh_cons(gh_symbol2scm("receivable"), gw__scm_result);
  }

  if(gw__enum_val == EQUITY) {
    if(!gw__return_all_syms) return gh_symbol2scm("equity");
    gw__scm_result =
      gh_cons(gh_symbol2scm("equity"), gw__scm_result);
  }

  if(gw__enum_val == EXPENSE) {
    if(!gw__return_all_syms) return gh_symbol2scm("expense");
    gw__scm_result =
      gh_cons(gh_symbol2scm("expense"), gw__scm_result);
  }

  if(gw__enum_val == INCOME) {
    if(!gw__return_all_syms) return gh_symbol2scm("income");
    gw__scm_result =
      gh_cons(gh_symbol2scm("income"), gw__scm_result);
  }

  if(gw__enum_val == CURRENCY) {
    if(!gw__return_all_syms) return gh_symbol2scm("currency");
    gw__scm_result =
      gh_cons(gh_symbol2scm("currency"), gw__scm_result);
  }

  if(gw__enum_val == MUTUAL) {
    if(!gw__return_all_syms) return gh_symbol2scm("mutual-fund");
    gw__scm_result =
      gh_cons(gh_symbol2scm("mutual-fund"), gw__scm_result);
  }

  if(gw__enum_val == STOCK) {
    if(!gw__return_all_syms) return gh_symbol2scm("stock");
    gw__scm_result =
      gh_cons(gh_symbol2scm("stock"), gw__scm_result);
  }

  if(gw__enum_val == LIABILITY) {
    if(!gw__return_all_syms) return gh_symbol2scm("liability");
    gw__scm_result =
      gh_cons(gh_symbol2scm("liability"), gw__scm_result);
  }

  if(gw__enum_val == ASSET) {
    if(!gw__return_all_syms) return gh_symbol2scm("asset");
    gw__scm_result =
      gh_cons(gh_symbol2scm("asset"), gw__scm_result);
  }

  if(gw__enum_val == CREDIT) {
    if(!gw__return_all_syms) return gh_symbol2scm("credit");
    gw__scm_result =
      gh_cons(gh_symbol2scm("credit"), gw__scm_result);
  }

  if(gw__enum_val == CASH) {
    if(!gw__return_all_syms) return gh_symbol2scm("cash");
    gw__scm_result =
      gh_cons(gh_symbol2scm("cash"), gw__scm_result);
  }

  if(gw__enum_val == BANK) {
    if(!gw__return_all_syms) return gh_symbol2scm("bank");
    gw__scm_result =
      gh_cons(gh_symbol2scm("bank"), gw__scm_result);
  }

  if(gw__enum_val == NO_TYPE) {
    if(!gw__return_all_syms) return gh_symbol2scm("no-type");
    gw__scm_result =
      gh_cons(gh_symbol2scm("no-type"), gw__scm_result);
  }

  if(gw__enum_val == BAD_TYPE) {
    if(!gw__return_all_syms) return gh_symbol2scm("bad-type");
    gw__scm_result =
      gh_cons(gh_symbol2scm("bad-type"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_AccountType__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_AccountType__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "credit-line") == 0) {
    free(gw__symstr);
    return gh_long2scm(CREDITLINE);
  }

  if(strcmp(gw__symstr, "money-market") == 0) {
    free(gw__symstr);
    return gh_long2scm(MONEYMRKT);
  }

  if(strcmp(gw__symstr, "savings") == 0) {
    free(gw__symstr);
    return gh_long2scm(SAVINGS);
  }

  if(strcmp(gw__symstr, "checking") == 0) {
    free(gw__symstr);
    return gh_long2scm(CHECKING);
  }

  if(strcmp(gw__symstr, "num-account-types") == 0) {
    free(gw__symstr);
    return gh_long2scm(NUM_ACCOUNT_TYPES);
  }

  if(strcmp(gw__symstr, "payable") == 0) {
    free(gw__symstr);
    return gh_long2scm(PAYABLE);
  }

  if(strcmp(gw__symstr, "receivable") == 0) {
    free(gw__symstr);
    return gh_long2scm(RECEIVABLE);
  }

  if(strcmp(gw__symstr, "equity") == 0) {
    free(gw__symstr);
    return gh_long2scm(EQUITY);
  }

  if(strcmp(gw__symstr, "expense") == 0) {
    free(gw__symstr);
    return gh_long2scm(EXPENSE);
  }

  if(strcmp(gw__symstr, "income") == 0) {
    free(gw__symstr);
    return gh_long2scm(INCOME);
  }

  if(strcmp(gw__symstr, "currency") == 0) {
    free(gw__symstr);
    return gh_long2scm(CURRENCY);
  }

  if(strcmp(gw__symstr, "mutual-fund") == 0) {
    free(gw__symstr);
    return gh_long2scm(MUTUAL);
  }

  if(strcmp(gw__symstr, "stock") == 0) {
    free(gw__symstr);
    return gh_long2scm(STOCK);
  }

  if(strcmp(gw__symstr, "liability") == 0) {
    free(gw__symstr);
    return gh_long2scm(LIABILITY);
  }

  if(strcmp(gw__symstr, "asset") == 0) {
    free(gw__symstr);
    return gh_long2scm(ASSET);
  }

  if(strcmp(gw__symstr, "credit") == 0) {
    free(gw__symstr);
    return gh_long2scm(CREDIT);
  }

  if(strcmp(gw__symstr, "cash") == 0) {
    free(gw__symstr);
    return gh_long2scm(CASH);
  }

  if(strcmp(gw__symstr, "bank") == 0) {
    free(gw__symstr);
    return gh_long2scm(BANK);
  }

  if(strcmp(gw__symstr, "no-type") == 0) {
    free(gw__symstr);
    return gh_long2scm(NO_TYPE);
  }

  if(strcmp(gw__symstr, "bad-type") == 0) {
    free(gw__symstr);
    return gh_long2scm(BAD_TYPE);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_kvp_value_t__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  kvp_value_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_kvp_value_t__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == KVP_TYPE_FRAME) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-frame");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-frame"), gw__scm_result);
  }

  if(gw__enum_val == KVP_TYPE_GLIST) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-glist");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-glist"), gw__scm_result);
  }

  if(gw__enum_val == KVP_TYPE_BINARY) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-binary");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-binary"), gw__scm_result);
  }

  if(gw__enum_val == KVP_TYPE_TIMESPEC) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-timespec");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-timespec"), gw__scm_result);
  }

  if(gw__enum_val == KVP_TYPE_GUID) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-guid");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-guid"), gw__scm_result);
  }

  if(gw__enum_val == KVP_TYPE_STRING) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-string");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-string"), gw__scm_result);
  }

  if(gw__enum_val == KVP_TYPE_NUMERIC) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-numeric");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-numeric"), gw__scm_result);
  }

  if(gw__enum_val == KVP_TYPE_DOUBLE) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-double");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-double"), gw__scm_result);
  }

  if(gw__enum_val == KVP_TYPE_GINT64) {
    if(!gw__return_all_syms) return gh_symbol2scm("kvp-type-gint64");
    gw__scm_result =
      gh_cons(gh_symbol2scm("kvp-type-gint64"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_kvp_value_t__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_kvp_value_t__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "kvp-type-frame") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_FRAME);
  }

  if(strcmp(gw__symstr, "kvp-type-glist") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_GLIST);
  }

  if(strcmp(gw__symstr, "kvp-type-binary") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_BINARY);
  }

  if(strcmp(gw__symstr, "kvp-type-timespec") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_TIMESPEC);
  }

  if(strcmp(gw__symstr, "kvp-type-guid") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_GUID);
  }

  if(strcmp(gw__symstr, "kvp-type-string") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_STRING);
  }

  if(strcmp(gw__symstr, "kvp-type-numeric") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_NUMERIC);
  }

  if(strcmp(gw__symstr, "kvp-type-double") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_DOUBLE);
  }

  if(strcmp(gw__symstr, "kvp-type-gint64") == 0) {
    free(gw__symstr);
    return gh_long2scm(KVP_TYPE_GINT64);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_query_txn_match_t__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  query_txn_match_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_query_txn_match_t__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == QUERY_TXN_MATCH_ANY) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-txn-match-any");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-txn-match-any"), gw__scm_result);
  }

  if(gw__enum_val == QUERY_TXN_MATCH_ALL) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-txn-match-all");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-txn-match-all"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_query_txn_match_t__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_query_txn_match_t__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "query-txn-match-any") == 0) {
    free(gw__symstr);
    return gh_long2scm(QUERY_TXN_MATCH_ANY);
  }

  if(strcmp(gw__symstr, "query-txn-match-all") == 0) {
    free(gw__symstr);
    return gh_long2scm(QUERY_TXN_MATCH_ALL);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_char_match_how__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  char_match_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_char_match_how__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == CHAR_MATCH_NONE) {
    if(!gw__return_all_syms) return gh_symbol2scm("char-match-none");
    gw__scm_result =
      gh_cons(gh_symbol2scm("char-match-none"), gw__scm_result);
  }

  if(gw__enum_val == CHAR_MATCH_ANY) {
    if(!gw__return_all_syms) return gh_symbol2scm("char-match-any");
    gw__scm_result =
      gh_cons(gh_symbol2scm("char-match-any"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_char_match_how__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_char_match_how__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "char-match-none") == 0) {
    free(gw__symstr);
    return gh_long2scm(CHAR_MATCH_NONE);
  }

  if(strcmp(gw__symstr, "char-match-any") == 0) {
    free(gw__symstr);
    return gh_long2scm(CHAR_MATCH_ANY);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_guid_match_how__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  guid_match_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_guid_match_how__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == GUID_MATCH_NONE) {
    if(!gw__return_all_syms) return gh_symbol2scm("guid-match-none");
    gw__scm_result =
      gh_cons(gh_symbol2scm("guid-match-none"), gw__scm_result);
  }

  if(gw__enum_val == GUID_MATCH_NULL) {
    if(!gw__return_all_syms) return gh_symbol2scm("guid-match-null");
    gw__scm_result =
      gh_cons(gh_symbol2scm("guid-match-null"), gw__scm_result);
  }

  if(gw__enum_val == GUID_MATCH_ANY) {
    if(!gw__return_all_syms) return gh_symbol2scm("guid-match-any");
    gw__scm_result =
      gh_cons(gh_symbol2scm("guid-match-any"), gw__scm_result);
  }

  if(gw__enum_val == GUID_MATCH_ALL) {
    if(!gw__return_all_syms) return gh_symbol2scm("guid-match-all");
    gw__scm_result =
      gh_cons(gh_symbol2scm("guid-match-all"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_guid_match_how__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_guid_match_how__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "guid-match-none") == 0) {
    free(gw__symstr);
    return gh_long2scm(GUID_MATCH_NONE);
  }

  if(strcmp(gw__symstr, "guid-match-null") == 0) {
    free(gw__symstr);
    return gh_long2scm(GUID_MATCH_NULL);
  }

  if(strcmp(gw__symstr, "guid-match-any") == 0) {
    free(gw__symstr);
    return gh_long2scm(GUID_MATCH_ANY);
  }

  if(strcmp(gw__symstr, "guid-match-all") == 0) {
    free(gw__symstr);
    return gh_long2scm(GUID_MATCH_ALL);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_cleared_match_how__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  cleared_match_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_cleared_match_how__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == CLEARED_VOIDED) {
    if(!gw__return_all_syms) return gh_symbol2scm("cleared-match-voided");
    gw__scm_result =
      gh_cons(gh_symbol2scm("cleared-match-voided"), gw__scm_result);
  }

  if(gw__enum_val == CLEARED_FROZEN) {
    if(!gw__return_all_syms) return gh_symbol2scm("cleared-match-frozen");
    gw__scm_result =
      gh_cons(gh_symbol2scm("cleared-match-frozen"), gw__scm_result);
  }

  if(gw__enum_val == CLEARED_RECONCILED) {
    if(!gw__return_all_syms) return gh_symbol2scm("cleared-match-reconciled");
    gw__scm_result =
      gh_cons(gh_symbol2scm("cleared-match-reconciled"), gw__scm_result);
  }

  if(gw__enum_val == CLEARED_CLEARED) {
    if(!gw__return_all_syms) return gh_symbol2scm("cleared-match-cleared");
    gw__scm_result =
      gh_cons(gh_symbol2scm("cleared-match-cleared"), gw__scm_result);
  }

  if(gw__enum_val == CLEARED_NO) {
    if(!gw__return_all_syms) return gh_symbol2scm("cleared-match-no");
    gw__scm_result =
      gh_cons(gh_symbol2scm("cleared-match-no"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_cleared_match_how__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_cleared_match_how__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "cleared-match-voided") == 0) {
    free(gw__symstr);
    return gh_long2scm(CLEARED_VOIDED);
  }

  if(strcmp(gw__symstr, "cleared-match-frozen") == 0) {
    free(gw__symstr);
    return gh_long2scm(CLEARED_FROZEN);
  }

  if(strcmp(gw__symstr, "cleared-match-reconciled") == 0) {
    free(gw__symstr);
    return gh_long2scm(CLEARED_RECONCILED);
  }

  if(strcmp(gw__symstr, "cleared-match-cleared") == 0) {
    free(gw__symstr);
    return gh_long2scm(CLEARED_CLEARED);
  }

  if(strcmp(gw__symstr, "cleared-match-no") == 0) {
    free(gw__symstr);
    return gh_long2scm(CLEARED_NO);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_numeric_match_how__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  numeric_match_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_numeric_match_how__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == NUMERIC_MATCH_DEBIT) {
    if(!gw__return_all_syms) return gh_symbol2scm("amt-sgn-match-debit");
    gw__scm_result =
      gh_cons(gh_symbol2scm("amt-sgn-match-debit"), gw__scm_result);
  }

  if(gw__enum_val == NUMERIC_MATCH_CREDIT) {
    if(!gw__return_all_syms) return gh_symbol2scm("amt-sgn-match-credit");
    gw__scm_result =
      gh_cons(gh_symbol2scm("amt-sgn-match-credit"), gw__scm_result);
  }

  if(gw__enum_val == NUMERIC_MATCH_ANY) {
    if(!gw__return_all_syms) return gh_symbol2scm("amt-sgn-match-either");
    gw__scm_result =
      gh_cons(gh_symbol2scm("amt-sgn-match-either"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_numeric_match_how__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_numeric_match_how__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "amt-sgn-match-debit") == 0) {
    free(gw__symstr);
    return gh_long2scm(NUMERIC_MATCH_DEBIT);
  }

  if(strcmp(gw__symstr, "amt-sgn-match-credit") == 0) {
    free(gw__symstr);
    return gh_long2scm(NUMERIC_MATCH_CREDIT);
  }

  if(strcmp(gw__symstr, "amt-sgn-match-either") == 0) {
    free(gw__symstr);
    return gh_long2scm(NUMERIC_MATCH_ANY);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_date_match_how__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  date_match_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_date_match_how__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == DATE_MATCH_ROUNDED) {
    if(!gw__return_all_syms) return gh_symbol2scm("date-match-rounded");
    gw__scm_result =
      gh_cons(gh_symbol2scm("date-match-rounded"), gw__scm_result);
  }

  if(gw__enum_val == DATE_MATCH_NORMAL) {
    if(!gw__return_all_syms) return gh_symbol2scm("date-match-normal");
    gw__scm_result =
      gh_cons(gh_symbol2scm("date-match-normal"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_date_match_how__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_date_match_how__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "date-match-rounded") == 0) {
    free(gw__symstr);
    return gh_long2scm(DATE_MATCH_ROUNDED);
  }

  if(strcmp(gw__symstr, "date-match-normal") == 0) {
    free(gw__symstr);
    return gh_long2scm(DATE_MATCH_NORMAL);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_string_match_how__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  string_match_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_string_match_how__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == STRING_MATCH_CASEINSENSITIVE) {
    if(!gw__return_all_syms) return gh_symbol2scm("string-match-caseinsensitive");
    gw__scm_result =
      gh_cons(gh_symbol2scm("string-match-caseinsensitive"), gw__scm_result);
  }

  if(gw__enum_val == STRING_MATCH_NORMAL) {
    if(!gw__return_all_syms) return gh_symbol2scm("string-match-normal");
    gw__scm_result =
      gh_cons(gh_symbol2scm("string-match-normal"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_string_match_how__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_string_match_how__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "string-match-caseinsensitive") == 0) {
    free(gw__symstr);
    return gh_long2scm(STRING_MATCH_CASEINSENSITIVE);
  }

  if(strcmp(gw__symstr, "string-match-normal") == 0) {
    free(gw__symstr);
    return gh_long2scm(STRING_MATCH_NORMAL);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_query_compare_how__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  query_compare_t gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_query_compare_how__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == COMPARE_NEQ) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-compare-neq");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-compare-neq"), gw__scm_result);
  }

  if(gw__enum_val == COMPARE_GTE) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-compare-gte");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-compare-gte"), gw__scm_result);
  }

  if(gw__enum_val == COMPARE_GT) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-compare-gt");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-compare-gt"), gw__scm_result);
  }

  if(gw__enum_val == COMPARE_EQUAL) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-compare-equal");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-compare-equal"), gw__scm_result);
  }

  if(gw__enum_val == COMPARE_LTE) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-compare-lte");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-compare-lte"), gw__scm_result);
  }

  if(gw__enum_val == COMPARE_LT) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-compare-lt");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-compare-lt"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_query_compare_how__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_query_compare_how__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "query-compare-neq") == 0) {
    free(gw__symstr);
    return gh_long2scm(COMPARE_NEQ);
  }

  if(strcmp(gw__symstr, "query-compare-gte") == 0) {
    free(gw__symstr);
    return gh_long2scm(COMPARE_GTE);
  }

  if(strcmp(gw__symstr, "query-compare-gt") == 0) {
    free(gw__symstr);
    return gh_long2scm(COMPARE_GT);
  }

  if(strcmp(gw__symstr, "query-compare-equal") == 0) {
    free(gw__symstr);
    return gh_long2scm(COMPARE_EQUAL);
  }

  if(strcmp(gw__symstr, "query-compare-lte") == 0) {
    free(gw__symstr);
    return gh_long2scm(COMPARE_LTE);
  }

  if(strcmp(gw__symstr, "query-compare-lt") == 0) {
    free(gw__symstr);
    return gh_long2scm(COMPARE_LT);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_query_op__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  QueryOp gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == QUERY_XOR) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-xor");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-xor"), gw__scm_result);
  }

  if(gw__enum_val == QUERY_NOR) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-nor");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-nor"), gw__scm_result);
  }

  if(gw__enum_val == QUERY_NAND) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-nand");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-nand"), gw__scm_result);
  }

  if(gw__enum_val == QUERY_OR) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-or");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-or"), gw__scm_result);
  }

  if(gw__enum_val == QUERY_AND) {
    if(!gw__return_all_syms) return gh_symbol2scm("query-and");
    gw__scm_result =
      gh_cons(gh_symbol2scm("query-and"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_query_op__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_query_op__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "query-xor") == 0) {
    free(gw__symstr);
    return gh_long2scm(QUERY_XOR);
  }

  if(strcmp(gw__symstr, "query-nor") == 0) {
    free(gw__symstr);
    return gh_long2scm(QUERY_NOR);
  }

  if(strcmp(gw__symstr, "query-nand") == 0) {
    free(gw__symstr);
    return gh_long2scm(QUERY_NAND);
  }

  if(strcmp(gw__symstr, "query-or") == 0) {
    free(gw__symstr);
    return gh_long2scm(QUERY_OR);
  }

  if(strcmp(gw__symstr, "query-and") == 0) {
    free(gw__symstr);
    return gh_long2scm(QUERY_AND);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static SCM
gw__enum__gnc_event_type__val_to_sym(SCM gw__scm_val, SCM gw__scm_show_all_p) {
  GNCEngineEventType gw__enum_val;
  SCM gw__scm_result;

  int gw__return_all_syms = SCM_NFALSEP(gw__scm_show_all_p);

  if(gw__return_all_syms) gw__scm_result = SCM_EOL;
  else gw__scm_result = SCM_BOOL_F;

  if(gh_symbol_p(gw__scm_val)) {
    SCM gw__scm_int_value = gh_call1(gw__enum__gnc_event_type__val_to_int_scm_func,
                                     gw__scm_val);
    if(SCM_FALSEP(gw__scm_int_value)) return SCM_EOL;
    if(!gw__return_all_syms) return gw__scm_val;
    gw__enum_val = gh_scm2long(gw__scm_int_value);
  } else {
    /* this better be an int */
    gw__enum_val = gh_scm2long(gw__scm_val);
  }

  
  if(gw__enum_val == GNC_EVENT_ALL) {
    if(!gw__return_all_syms) return gh_symbol2scm("gnc-event-all");
    gw__scm_result =
      gh_cons(gh_symbol2scm("gnc-event-all"), gw__scm_result);
  }

  if(gw__enum_val == GNC_EVENT_DESTROY) {
    if(!gw__return_all_syms) return gh_symbol2scm("gnc-event-destroy");
    gw__scm_result =
      gh_cons(gh_symbol2scm("gnc-event-destroy"), gw__scm_result);
  }

  if(gw__enum_val == GNC_EVENT_MODIFY) {
    if(!gw__return_all_syms) return gh_symbol2scm("gnc-event-modify");
    gw__scm_result =
      gh_cons(gh_symbol2scm("gnc-event-modify"), gw__scm_result);
  }

  if(gw__enum_val == GNC_EVENT_CREATE) {
    if(!gw__return_all_syms) return gh_symbol2scm("gnc-event-create");
    gw__scm_result =
      gh_cons(gh_symbol2scm("gnc-event-create"), gw__scm_result);
  }

  if(gw__enum_val == GNC_EVENT_NONE) {
    if(!gw__return_all_syms) return gh_symbol2scm("gnc-event-none");
    gw__scm_result =
      gh_cons(gh_symbol2scm("gnc-event-none"), gw__scm_result);
  }

  
  return(gw__scm_result);
}

static SCM
gw__enum__gnc_event_type__val_to_int(SCM gw__scm_val) {
  char *gw__symstr = NULL;

  if(SCM_NFALSEP(scm_integer_p(gw__scm_val))) {
    SCM gw__scm_existing_sym = gh_call2(gw__enum__gnc_event_type__val_to_sym_scm_func,
                                        gw__scm_val,
                                        SCM_BOOL_F);
    if(SCM_FALSEP(gw__scm_existing_sym)) {
      return SCM_BOOL_F;
    } else {
      return gw__scm_val;
    }
  }

  gw__symstr = gh_symbol2newstr(gw__scm_val, NULL);

  
  if(strcmp(gw__symstr, "gnc-event-all") == 0) {
    free(gw__symstr);
    return gh_long2scm(GNC_EVENT_ALL);
  }

  if(strcmp(gw__symstr, "gnc-event-destroy") == 0) {
    free(gw__symstr);
    return gh_long2scm(GNC_EVENT_DESTROY);
  }

  if(strcmp(gw__symstr, "gnc-event-modify") == 0) {
    free(gw__symstr);
    return gh_long2scm(GNC_EVENT_MODIFY);
  }

  if(strcmp(gw__symstr, "gnc-event-create") == 0) {
    free(gw__symstr);
    return gh_long2scm(GNC_EVENT_CREATE);
  }

  if(strcmp(gw__symstr, "gnc-event-none") == 0) {
    free(gw__symstr);
    return gh_long2scm(GNC_EVENT_NONE);
  }


  free(gw__symstr);
  return SCM_BOOL_F;
}
static char * gw__tmp57_guid_new_return_namestr = "gnc:guid-new";
static SCM gw__tmp56_guid_new_return_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;
GUID 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 = guid_new_return ();
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_guid2scm(gw__c_result);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp57_guid_new_return_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp59_xaccSplitReturnGUID_namestr = "gnc:split-get-guid";
static SCM gw__tmp58_xaccSplitReturnGUID_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;
GUID gw__c_result;

Split* 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_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;
}
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 = xaccSplitReturnGUID (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_guid2scm(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__tmp59_xaccSplitReturnGUID_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp61_xaccSplitLookupDirect_namestr = "gnc:split-lookup";
static SCM gw__tmp60_xaccSplitLookupDirect_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;
Split* gw__c_result;

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

{
if (!(gnc_guid_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_scm2guid(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__tmp22_wct_info_for__gnc_Book__, 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;
gw__c_result = xaccSplitLookupDirect (gw__c_arg0, gw__c_arg1);
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_Split__);
}
}
  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__tmp61_xaccSplitLookupDirect_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp63_xaccSplitGetBalance_namestr = "gnc:split-get-balance";
static SCM gw__tmp62_xaccSplitGetBalance_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;

Split* 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_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;
}
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 = xaccSplitGetBalance (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__tmp63_xaccSplitGetBalance_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp65_xaccSplitGetMemo_namestr = "gnc:split-get-memo";
static SCM gw__tmp64_xaccSplitGetMemo_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;

Split* 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_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;
}
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 = xaccSplitGetMemo (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:
  /* 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__tmp65_xaccSplitGetMemo_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp67_xaccSplitGetAction_namestr = "gnc:split-get-action";
static SCM gw__tmp66_xaccSplitGetAction_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;

Split* 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_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;
}
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 = xaccSplitGetAction (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:
  /* 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__tmp67_xaccSplitGetAction_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp69_xaccSplitGetReconcile_namestr = "gnc:split-get-reconcile-state";
static SCM gw__tmp68_xaccSplitGetReconcile_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;

Split* 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_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;
}
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 = xaccSplitGetReconcile (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= SCM_MAKE_CHAR(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__tmp69_xaccSplitGetReconcile_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp71_gnc_split_get_date_reconciled_namestr = "gnc:split-get-reconciled-date";
static SCM gw__tmp70_gnc_split_get_date_reconciled_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;
Timespec gw__c_result;

Split* 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_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;
}
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_split_get_date_reconciled (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_timespec2timepair(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__tmp71_gnc_split_get_date_reconciled_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp73_xaccSplitGetAmount_namestr = "gnc:split-get-amount";
static SCM gw__tmp72_xaccSplitGetAmount_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;

Split* 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_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;
}
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 = xaccSplitGetAmount (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__tmp73_xaccSplitGetAmount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp75_xaccSplitGetSharePrice_namestr = "gnc:split-get-share-price";
static SCM gw__tmp74_xaccSplitGetSharePrice_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;

Split* 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_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;
}
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 = xaccSplitGetSharePrice (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__tmp75_xaccSplitGetSharePrice_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp77_xaccSplitGetValue_namestr = "gnc:split-get-value";
static SCM gw__tmp76_xaccSplitGetValue_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;

Split* 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_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;
}
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 = xaccSplitGetValue (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__tmp77_xaccSplitGetValue_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp79_xaccSplitGetAccount_namestr = "gnc:split-get-account";
static SCM gw__tmp78_xaccSplitGetAccount_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;
Account* gw__c_result;

Split* 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_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;
}
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 = xaccSplitGetAccount (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__tmp17_wct_info_for__gnc_Account__);
}
}
  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__tmp79_xaccSplitGetAccount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp81_xaccSplitGetParent_namestr = "gnc:split-get-parent";
static SCM gw__tmp80_xaccSplitGetParent_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;
Transaction* gw__c_result;

Split* 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_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;
}
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 = xaccSplitGetParent (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__tmp26_wct_info_for__gnc_Transaction__);
}
}
  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__tmp81_xaccSplitGetParent_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp83_xaccSplitGetOtherSplit_namestr = "gnc:split-get-other-split";
static SCM gw__tmp82_xaccSplitGetOtherSplit_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;
Split* gw__c_result;

Split* 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_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;
}
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 = xaccSplitGetOtherSplit (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__tmp25_wct_info_for__gnc_Split__);
}
}
  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__tmp83_xaccSplitGetOtherSplit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp85_xaccSplitCompareAccountFullNames_namestr = "gnc:split-compare-account-full-names";
static SCM gw__tmp84_xaccSplitCompareAccountFullNames_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_result;

Split* gw__c_arg0;
Split* 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_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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_Split__, 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;
gw__c_result = xaccSplitCompareAccountFullNames (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp85_xaccSplitCompareAccountFullNames_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp87_xaccSplitCompareAccountCodes_namestr = "gnc:split-compare-account-codes";
static SCM gw__tmp86_xaccSplitCompareAccountCodes_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_result;

Split* gw__c_arg0;
Split* 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_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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_Split__, 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;
gw__c_result = xaccSplitCompareAccountCodes (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp87_xaccSplitCompareAccountCodes_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp89_xaccSplitCompareOtherAccountFullNames_namestr = "gnc:split-compare-other-account-full-names";
static SCM gw__tmp88_xaccSplitCompareOtherAccountFullNames_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_result;

Split* gw__c_arg0;
Split* 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_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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_Split__, 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;
gw__c_result = xaccSplitCompareOtherAccountFullNames (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp89_xaccSplitCompareOtherAccountFullNames_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp91_xaccSplitCompareOtherAccountCodes_namestr = "gnc:split-compare-other-account-codes";
static SCM gw__tmp90_xaccSplitCompareOtherAccountCodes_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_result;

Split* gw__c_arg0;
Split* 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_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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_Split__, 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;
gw__c_result = xaccSplitCompareOtherAccountCodes (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp91_xaccSplitCompareOtherAccountCodes_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp93_xaccSplitGetCorrAccountName_namestr = "gnc:split-get-corr-account-name";
static SCM gw__tmp92_xaccSplitGetCorrAccountName_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;

Split* 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_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;
}
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 = xaccSplitGetCorrAccountName (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:
  /* 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__tmp93_xaccSplitGetCorrAccountName_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp95_xaccSplitGetCorrAccountFullName_namestr = "gnc:split-get-corr-account-full-name-internal";
static SCM gw__tmp94_xaccSplitGetCorrAccountFullName_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;
gchar * gw__c_result;

Split* gw__c_arg0;
char 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_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 (!(SCM_NFALSEP(scm_char_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= SCM_CHAR(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 = xaccSplitGetCorrAccountFullName (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);
if(gw__c_result) g_free((void *) 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__tmp95_xaccSplitGetCorrAccountFullName_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp97_xaccSplitGetCorrAccountCode_namestr = "gnc:split-get-corr-account-code";
static SCM gw__tmp96_xaccSplitGetCorrAccountCode_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;

Split* 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_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;
}
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 = xaccSplitGetCorrAccountCode (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:
  /* 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__tmp97_xaccSplitGetCorrAccountCode_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp99_xaccSplitGetLot_namestr = "gnc:split-get-lot";
static SCM gw__tmp98_xaccSplitGetLot_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;
GNCLot* gw__c_result;

Split* 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_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;
}
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 = xaccSplitGetLot (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__tmp23_wct_info_for__gnc_Lot__);
}
}
  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__tmp99_xaccSplitGetLot_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp101_xaccTransReturnGUID_namestr = "gnc:transaction-get-guid";
static SCM gw__tmp100_xaccTransReturnGUID_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;
GUID gw__c_result;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransReturnGUID (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_guid2scm(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__tmp101_xaccTransReturnGUID_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp103_xaccTransLookupDirect_namestr = "gnc:transaction-lookup";
static SCM gw__tmp102_xaccTransLookupDirect_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;
Transaction* gw__c_result;

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

{
if (!(gnc_guid_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_scm2guid(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__tmp22_wct_info_for__gnc_Book__, 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;
gw__c_result = xaccTransLookupDirect (gw__c_arg0, gw__c_arg1);
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__tmp26_wct_info_for__gnc_Transaction__);
}
}
  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__tmp103_xaccTransLookupDirect_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp105_xaccTransGetSplit_namestr = "gnc:transaction-get-split";
static SCM gw__tmp104_xaccTransGetSplit_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;
Split* gw__c_result;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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(scm_integer_p(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(scm_geq_p(gw__scm_arg1, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg1, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= gh_scm2long(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_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 = xaccTransGetSplit (gw__c_arg0, gw__c_arg1);
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_Split__);
}
}
  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__tmp105_xaccTransGetSplit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp107_xaccTransGetSplitList_namestr = "gnc:transaction-get-splits";
static SCM gw__tmp106_xaccTransGetSplitList_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_result;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransGetSplitList (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp558_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp558_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  Split* gw__tmp559_c_item;
  SCM gw__tmp560_scm_item;

  gw__tmp559_c_item = ( Split*) gw__tmp558_c_rest->data;

if(gw__tmp559_c_item == NULL) gw__tmp560_scm_item = SCM_BOOL_F;
else gw__tmp560_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp559_c_item, gw__tmp25_wct_info_for__gnc_Split__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp560_scm_item, gw__scm_result);
  }
  gw__tmp558_c_rest = gw__tmp558_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp562_cursor = gw__c_result;
  while(gw__tmp562_cursor)
  {
    Split* gw__tmp561_c_item;
    gw__tmp561_c_item = ( Split*) gw__tmp562_cursor->data;
gw__tmp562_cursor = gw__tmp562_cursor->next;
  }
}
}
}
  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__tmp107_xaccTransGetSplitList_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp109_xaccTransGetNum_namestr = "gnc:transaction-get-num";
static SCM gw__tmp108_xaccTransGetNum_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransGetNum (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:
  /* 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__tmp109_xaccTransGetNum_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp111_xaccTransGetDescription_namestr = "gnc:transaction-get-description";
static SCM gw__tmp110_xaccTransGetDescription_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransGetDescription (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:
  /* 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__tmp111_xaccTransGetDescription_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp113_xaccTransGetNotes_namestr = "gnc:transaction-get-notes";
static SCM gw__tmp112_xaccTransGetNotes_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransGetNotes (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:
  /* 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__tmp113_xaccTransGetNotes_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp115_xaccTransVoid_namestr = "gnc:transaction-void";
static SCM gw__tmp114_xaccTransVoid_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;

Transaction* gw__c_arg0;
const char * 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__tmp26_wct_info_for__gnc_Transaction__, 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;

{
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;
}
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;
xaccTransVoid (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp115_xaccTransVoid_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp117_xaccTransGetVoidStatus_namestr = "gnc:transaction-get-void-status";
static SCM gw__tmp116_xaccTransGetVoidStatus_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransGetVoidStatus (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__tmp117_xaccTransGetVoidStatus_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp119_xaccTransGetVoidReason_namestr = "gnc:transaction-get-void-reason";
static SCM gw__tmp118_xaccTransGetVoidReason_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransGetVoidReason (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:
  /* 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__tmp119_xaccTransGetVoidReason_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp121_xaccTransOrder_namestr = "gnc:transaction-order";
static SCM gw__tmp120_xaccTransOrder_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_result;

Transaction* gw__c_arg0;
Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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__tmp26_wct_info_for__gnc_Transaction__, 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;
gw__c_result = xaccTransOrder (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp121_xaccTransOrder_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp123_xaccSplitVoidFormerAmount_namestr = "gnc:split-void-former-amount";
static SCM gw__tmp122_xaccSplitVoidFormerAmount_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;

Split* 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_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;
}
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 = xaccSplitVoidFormerAmount (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__tmp123_xaccSplitVoidFormerAmount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp125_xaccSplitVoidFormerValue_namestr = "gnc:split-void-former-value";
static SCM gw__tmp124_xaccSplitVoidFormerValue_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;

Split* 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_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;
}
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 = xaccSplitVoidFormerValue (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__tmp125_xaccSplitVoidFormerValue_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp127_gnc_dmy2timespec_namestr = "gnc:dmy2timespec";
static SCM gw__tmp126_gnc_dmy2timespec_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;
Timespec gw__c_result;

int gw__c_arg0;
int gw__c_arg1;
int 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(SCM_FALSEP(scm_integer_p(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(scm_geq_p(gw__scm_arg1, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg1, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= gh_scm2long(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_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(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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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_dmy2timespec (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_timespec2timepair(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:
  /* 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__tmp127_gnc_dmy2timespec_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp129_gnc_transaction_get_date_posted_namestr = "gnc:transaction-get-date-posted";
static SCM gw__tmp128_gnc_transaction_get_date_posted_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;
Timespec gw__c_result;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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_transaction_get_date_posted (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_timespec2timepair(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__tmp129_gnc_transaction_get_date_posted_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp131_gnc_transaction_get_date_entered_namestr = "gnc:transaction-get-date-entered";
static SCM gw__tmp130_gnc_transaction_get_date_entered_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;
Timespec gw__c_result;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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_transaction_get_date_entered (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_timespec2timepair(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__tmp131_gnc_transaction_get_date_entered_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp133_gnc_transaction_set_date_posted_namestr = "gnc:transaction-set-date-posted";
static SCM gw__tmp132_gnc_transaction_set_date_posted_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;

Transaction* gw__c_arg0;
Timespec 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__tmp26_wct_info_for__gnc_Transaction__, 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_timepair_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_timepair2timespec(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;
gnc_transaction_set_date_posted (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__tmp133_gnc_transaction_set_date_posted_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp135_gnc_transaction_set_date_entered_namestr = "gnc:transaction-set-date-entered";
static SCM gw__tmp134_gnc_transaction_set_date_entered_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;

Transaction* gw__c_arg0;
Timespec 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__tmp26_wct_info_for__gnc_Transaction__, 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_timepair_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_timepair2timespec(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;
gnc_transaction_set_date_entered (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__tmp135_gnc_transaction_set_date_entered_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp137_xaccTransCountSplits_namestr = "gnc:transaction-get-split-count";
static SCM gw__tmp136_xaccTransCountSplits_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransCountSplits (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp137_xaccTransCountSplits_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp139_xaccTransGetCurrency_namestr = "gnc:transaction-get-currency";
static SCM gw__tmp138_xaccTransGetCurrency_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_commodity* gw__c_result;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransGetCurrency (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__tmp27_wct_info_for__gnc_commodity__);
}
}
  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__tmp139_xaccTransGetCurrency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp141_xaccTransSetCurrency_namestr = "gnc:transaction-set-currency";
static SCM gw__tmp140_xaccTransSetCurrency_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;

Transaction* gw__c_arg0;
gnc_commodity* 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__tmp26_wct_info_for__gnc_Transaction__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
xaccTransSetCurrency (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__tmp141_xaccTransSetCurrency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp143_xaccTransGetAccountValue_namestr = "gnc:transaction-get-account-value";
static SCM gw__tmp142_xaccTransGetAccountValue_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;

Transaction* gw__c_arg0;
Account* 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__tmp26_wct_info_for__gnc_Transaction__, 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__tmp17_wct_info_for__gnc_Account__, 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;
gw__c_result = xaccTransGetAccountValue (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__tmp143_xaccTransGetAccountValue_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp145_xaccTransGetTxnType_namestr = "gnc:transaction-get-txn-type";
static SCM gw__tmp144_xaccTransGetTxnType_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransGetTxnType (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= SCM_MAKE_CHAR(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__tmp145_xaccTransGetTxnType_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp147_xaccMallocAccount_namestr = "gnc:malloc-account";
static SCM gw__tmp146_xaccMallocAccount_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;
Account* gw__c_result;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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 = xaccMallocAccount (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__tmp17_wct_info_for__gnc_Account__);
}
}
  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__tmp147_xaccMallocAccount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp149_xaccAccountDestroy_namestr = "gnc:account-destroy";
static SCM gw__tmp148_xaccAccountDestroy_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;

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;
xaccAccountDestroy (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__tmp149_xaccAccountDestroy_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp151_xaccAccountBeginEdit_namestr = "gnc:account-begin-edit";
static SCM gw__tmp150_xaccAccountBeginEdit_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;

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;
xaccAccountBeginEdit (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__tmp151_xaccAccountBeginEdit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp153_xaccAccountCommitEdit_namestr = "gnc:account-commit-edit";
static SCM gw__tmp152_xaccAccountCommitEdit_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;

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;
xaccAccountCommitEdit (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__tmp153_xaccAccountCommitEdit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp155_xaccAccountInsertSplit_namestr = "gnc:account-insert-split";
static SCM gw__tmp154_xaccAccountInsertSplit_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;

Account* gw__c_arg0;
Split* 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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_Split__, 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;
xaccAccountInsertSplit (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__tmp155_xaccAccountInsertSplit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp157_xaccAccountFixSplitDateOrder_namestr = "gnc:account-fix-split-date-order";
static SCM gw__tmp156_xaccAccountFixSplitDateOrder_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;

Account* gw__c_arg0;
Split* 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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp25_wct_info_for__gnc_Split__, 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;
xaccAccountFixSplitDateOrder (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__tmp157_xaccAccountFixSplitDateOrder_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp159_xaccTransFixSplitDateOrder_namestr = "gnc:trans-fix-split-date-order";
static SCM gw__tmp158_xaccTransFixSplitDateOrder_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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;
xaccTransFixSplitDateOrder (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__tmp159_xaccTransFixSplitDateOrder_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp161_xaccAccountOrder_namestr = "gnc:account-order";
static SCM gw__tmp160_xaccAccountOrder_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_result;

Account** gw__c_arg0;
Account** 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__tmp18_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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp18_wct_info_for__gnc_Account___, 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;
gw__c_result = xaccAccountOrder (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp161_xaccAccountOrder_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp163_xaccAccountSetType_namestr = "gnc:account-set-type";
static SCM gw__tmp162_xaccAccountSetType_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;

Account* gw__c_arg0;
GNCAccountType 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;

{
gw__scm_arg1 = gh_call1(gw__enum__gnc_AccountType__val_to_int_scm_func, gw__scm_arg1);
if(SCM_FALSEP(scm_integer_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 = gh_scm2long(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;
xaccAccountSetType (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__tmp163_xaccAccountSetType_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp165_xaccAccountSetName_namestr = "gnc:account-set-name";
static SCM gw__tmp164_xaccAccountSetName_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;

Account* gw__c_arg0;
const char * 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;

{
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;
}
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;
xaccAccountSetName (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp165_xaccAccountSetName_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp167_xaccAccountSetCode_namestr = "gnc:account-set-code";
static SCM gw__tmp166_xaccAccountSetCode_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;

Account* gw__c_arg0;
const char * 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;

{
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;
}
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;
xaccAccountSetCode (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp167_xaccAccountSetCode_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp169_xaccAccountSetDescription_namestr = "gnc:account-set-description";
static SCM gw__tmp168_xaccAccountSetDescription_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;

Account* gw__c_arg0;
const char * 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;

{
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;
}
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;
xaccAccountSetDescription (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp169_xaccAccountSetDescription_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp171_xaccAccountSetNotes_namestr = "gnc:account-set-notes";
static SCM gw__tmp170_xaccAccountSetNotes_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;

Account* gw__c_arg0;
const char * 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;

{
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;
}
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;
xaccAccountSetNotes (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp171_xaccAccountSetNotes_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp173_xaccAccountSetTaxRelated_namestr = "gnc:account-set-tax-related";
static SCM gw__tmp172_xaccAccountSetTaxRelated_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;

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;
xaccAccountSetTaxRelated (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__tmp173_xaccAccountSetTaxRelated_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp175_xaccAccountReturnGUID_namestr = "gnc:account-get-guid";
static SCM gw__tmp174_xaccAccountReturnGUID_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;
GUID 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 = xaccAccountReturnGUID (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_guid2scm(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__tmp175_xaccAccountReturnGUID_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp177_xaccAccountLookupDirect_namestr = "gnc:account-lookup";
static SCM gw__tmp176_xaccAccountLookupDirect_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;
Account* gw__c_result;

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

{
if (!(gnc_guid_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_scm2guid(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__tmp22_wct_info_for__gnc_Book__, 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;
gw__c_result = xaccAccountLookupDirect (gw__c_arg0, gw__c_arg1);
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__tmp17_wct_info_for__gnc_Account__);
}
}
  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__tmp177_xaccAccountLookupDirect_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp179_xaccAccountGetTypeStr_namestr = "gnc:account-get-type-string";
static SCM gw__tmp178_xaccAccountGetTypeStr_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;

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

{
gw__scm_arg0 = gh_call1(gw__enum__gnc_AccountType__val_to_int_scm_func, gw__scm_arg0);
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 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_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 = xaccAccountGetTypeStr (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:
  /* 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__tmp179_xaccAccountGetTypeStr_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp181_xaccAccountGetType_namestr = "gnc:account-get-type";
static SCM gw__tmp180_xaccAccountGetType_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;
GNCAccountType 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 = xaccAccountGetType (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gh_long2scm(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__tmp181_xaccAccountGetType_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp183_xaccAccountGetName_namestr = "gnc:account-get-name";
static SCM gw__tmp182_xaccAccountGetName_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;

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 = xaccAccountGetName (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:
  /* 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__tmp183_xaccAccountGetName_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp185_xaccAccountGetCode_namestr = "gnc:account-get-code";
static SCM gw__tmp184_xaccAccountGetCode_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;

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 = xaccAccountGetCode (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:
  /* 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__tmp185_xaccAccountGetCode_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp187_xaccAccountGetDescription_namestr = "gnc:account-get-description";
static SCM gw__tmp186_xaccAccountGetDescription_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;

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 = xaccAccountGetDescription (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:
  /* 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__tmp187_xaccAccountGetDescription_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp189_xaccAccountGetNotes_namestr = "gnc:account-get-notes";
static SCM gw__tmp188_xaccAccountGetNotes_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;

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 = xaccAccountGetNotes (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:
  /* 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__tmp189_xaccAccountGetNotes_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp191_xaccAccountGetCommodity_namestr = "gnc:account-get-commodity";
static SCM gw__tmp190_xaccAccountGetCommodity_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 gnc_commodity* 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 = xaccAccountGetCommodity (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__tmp27_wct_info_for__gnc_commodity__);
}
}
  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__tmp191_xaccAccountGetCommodity_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp193_xaccAccountSetCommodity_namestr = "gnc:account-set-commodity";
static SCM gw__tmp192_xaccAccountSetCommodity_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;

Account* gw__c_arg0;
gnc_commodity* 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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, 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;
xaccAccountSetCommodity (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__tmp193_xaccAccountSetCommodity_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp195_xaccAccountGetTaxRelated_namestr = "gnc:account-get-tax-related";
static SCM gw__tmp194_xaccAccountGetTaxRelated_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 = xaccAccountGetTaxRelated (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__tmp195_xaccAccountGetTaxRelated_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp197_xaccAccountGetTaxUSCode_namestr = "gnc:account-get-tax-US-code";
static SCM gw__tmp196_xaccAccountGetTaxUSCode_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;

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 = xaccAccountGetTaxUSCode (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:
  /* 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__tmp197_xaccAccountGetTaxUSCode_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp199_xaccAccountGetTaxUSPayerNameSource_namestr = "gnc:account-get-tax-US-payer-name-source";
static SCM gw__tmp198_xaccAccountGetTaxUSPayerNameSource_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;

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 = xaccAccountGetTaxUSPayerNameSource (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:
  /* 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__tmp199_xaccAccountGetTaxUSPayerNameSource_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp201_xaccAccountGetPriceSrc_namestr = "gnc:account-get-price-src";
static SCM gw__tmp200_xaccAccountGetPriceSrc_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;

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 = xaccAccountGetPriceSrc (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:
  /* 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__tmp201_xaccAccountGetPriceSrc_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp203_xaccAccountGetQuoteTZ_namestr = "gnc:account-get-quote-tz";
static SCM gw__tmp202_xaccAccountGetQuoteTZ_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;

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 = xaccAccountGetQuoteTZ (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:
  /* 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__tmp203_xaccAccountGetQuoteTZ_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp205_xaccAccountGetChildren_namestr = "gnc:account-get-children";
static SCM gw__tmp204_xaccAccountGetChildren_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;
AccountGroup* 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 = xaccAccountGetChildren (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__tmp21_wct_info_for__gnc_AccountGroup__);
}
}
  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__tmp205_xaccAccountGetChildren_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp207_xaccAccountGetParent_namestr = "gnc:account-get-parent";
static SCM gw__tmp206_xaccAccountGetParent_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;
AccountGroup* 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 = xaccAccountGetParent (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__tmp21_wct_info_for__gnc_AccountGroup__);
}
}
  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__tmp207_xaccAccountGetParent_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp209_xaccAccountGetParentAccount_namestr = "gnc:account-get-parent-account";
static SCM gw__tmp208_xaccAccountGetParentAccount_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;
Account* 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 = xaccAccountGetParentAccount (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__tmp17_wct_info_for__gnc_Account__);
}
}
  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__tmp209_xaccAccountGetParentAccount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp211_xaccAccountGetBalance_namestr = "gnc:account-get-balance";
static SCM gw__tmp210_xaccAccountGetBalance_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;

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 = xaccAccountGetBalance (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__tmp211_xaccAccountGetBalance_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp213_xaccAccountGetClearedBalance_namestr = "gnc:account-get-cleared-balance";
static SCM gw__tmp212_xaccAccountGetClearedBalance_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;

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 = xaccAccountGetClearedBalance (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__tmp213_xaccAccountGetClearedBalance_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp215_xaccAccountGetReconciledBalance_namestr = "gnc:account-get-reconciled-balance";
static SCM gw__tmp214_xaccAccountGetReconciledBalance_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;

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 = xaccAccountGetReconciledBalance (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__tmp215_xaccAccountGetReconciledBalance_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp217_xaccAccountGetSplitList_namestr = "gnc:account-get-split-list";
static SCM gw__tmp216_xaccAccountGetSplitList_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_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 = xaccAccountGetSplitList (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp563_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp563_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  Split* gw__tmp564_c_item;
  SCM gw__tmp565_scm_item;

  gw__tmp564_c_item = ( Split*) gw__tmp563_c_rest->data;

if(gw__tmp564_c_item == NULL) gw__tmp565_scm_item = SCM_BOOL_F;
else gw__tmp565_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp564_c_item, gw__tmp25_wct_info_for__gnc_Split__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp565_scm_item, gw__scm_result);
  }
  gw__tmp563_c_rest = gw__tmp563_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp567_cursor = gw__c_result;
  while(gw__tmp567_cursor)
  {
    Split* gw__tmp566_c_item;
    gw__tmp566_c_item = ( Split*) gw__tmp567_cursor->data;
gw__tmp567_cursor = gw__tmp567_cursor->next;
  }
}
}
}
  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__tmp217_xaccAccountGetSplitList_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp219_xaccMallocAccountGroup_namestr = "gnc:malloc-account-group";
static SCM gw__tmp218_xaccMallocAccountGroup_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;
AccountGroup* gw__c_result;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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 = xaccMallocAccountGroup (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__tmp21_wct_info_for__gnc_AccountGroup__);
}
}
  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__tmp219_xaccMallocAccountGroup_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp221_xaccAccountGroupBeginEdit_namestr = "gnc:account-group-begin-edit";
static SCM gw__tmp220_xaccAccountGroupBeginEdit_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;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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;
xaccAccountGroupBeginEdit (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__tmp221_xaccAccountGroupBeginEdit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp223_xaccAccountGroupCommitEdit_namestr = "gnc:account-group-commit-edit";
static SCM gw__tmp222_xaccAccountGroupCommitEdit_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;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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;
xaccAccountGroupCommitEdit (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__tmp223_xaccAccountGroupCommitEdit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp225_xaccAccountGroupDestroy_namestr = "gnc:account-group-destroy";
static SCM gw__tmp224_xaccAccountGroupDestroy_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;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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;
xaccAccountGroupDestroy (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__tmp225_xaccAccountGroupDestroy_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp227_xaccGroupGetBook_namestr = "gnc:group-get-book";
static SCM gw__tmp226_xaccGroupGetBook_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;
GNCBook* gw__c_result;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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 = xaccGroupGetBook (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__tmp22_wct_info_for__gnc_Book__);
}
}
  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__tmp227_xaccGroupGetBook_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp229_xaccGroupMergeAccounts_namestr = "gnc:group-merge-accounts";
static SCM gw__tmp228_xaccGroupMergeAccounts_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;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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;
xaccGroupMergeAccounts (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__tmp229_xaccGroupMergeAccounts_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp231_xaccGroupConcatGroup_namestr = "gnc:group-concat-group";
static SCM gw__tmp230_xaccGroupConcatGroup_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;

AccountGroup* gw__c_arg0;
AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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__tmp21_wct_info_for__gnc_AccountGroup__, 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;
xaccGroupConcatGroup (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__tmp231_xaccGroupConcatGroup_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp233_xaccGroupGetNumSubAccounts_namestr = "gnc:group-get-num-subaccounts";
static SCM gw__tmp232_xaccGroupGetNumSubAccounts_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;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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 = xaccGroupGetNumSubAccounts (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp233_xaccGroupGetNumSubAccounts_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp235_xaccGroupGetNumAccounts_namestr = "gnc:group-get-num-accounts";
static SCM gw__tmp234_xaccGroupGetNumAccounts_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;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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 = xaccGroupGetNumAccounts (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp235_xaccGroupGetNumAccounts_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp237_xaccGroupGetAccount_namestr = "gnc:group-get-account";
static SCM gw__tmp236_xaccGroupGetAccount_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;
Account* gw__c_result;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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(scm_integer_p(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(scm_geq_p(gw__scm_arg1, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg1, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= gh_scm2long(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_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 = xaccGroupGetAccount (gw__c_arg0, gw__c_arg1);
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__tmp17_wct_info_for__gnc_Account__);
}
}
  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__tmp237_xaccGroupGetAccount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp239_xaccGetAccountFromFullName_namestr = "gnc:get-account-from-full-name";
static SCM gw__tmp238_xaccGetAccountFromFullName_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;
Account* gw__c_result;

AccountGroup* gw__c_arg0;
const char * gw__c_arg1;
char gw__c_arg2;
/* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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;

{
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 (!(SCM_NFALSEP(scm_char_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= SCM_CHAR(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 = xaccGetAccountFromFullName (gw__c_arg0, gw__c_arg1, gw__c_arg2);
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__tmp17_wct_info_for__gnc_Account__);
}
}
  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__tmp239_xaccGetAccountFromFullName_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp241_xaccGroupGetParentAccount_namestr = "gnc:group-get-parent";
static SCM gw__tmp240_xaccGroupGetParentAccount_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;
Account* gw__c_result;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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 = xaccGroupGetParentAccount (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__tmp17_wct_info_for__gnc_Account__);
}
}
  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__tmp241_xaccGroupGetParentAccount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp243_xaccGroupInsertAccount_namestr = "gnc:group-insert-account";
static SCM gw__tmp242_xaccGroupInsertAccount_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;

AccountGroup* gw__c_arg0;
Account* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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__tmp17_wct_info_for__gnc_Account__, 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;
xaccGroupInsertAccount (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__tmp243_xaccGroupInsertAccount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp245_xaccAccountInsertSubAccount_namestr = "gnc:account-insert-subaccount";
static SCM gw__tmp244_xaccAccountInsertSubAccount_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;

Account* gw__c_arg0;
Account* 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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp17_wct_info_for__gnc_Account__, 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;
xaccAccountInsertSubAccount (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__tmp245_xaccAccountInsertSubAccount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp247_xaccGroupGetSubAccounts_namestr = "gnc:group-get-subaccounts";
static SCM gw__tmp246_xaccGroupGetSubAccounts_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_result;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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 = xaccGroupGetSubAccounts (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp568_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp568_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  Account* gw__tmp569_c_item;
  SCM gw__tmp570_scm_item;

  gw__tmp569_c_item = ( Account*) gw__tmp568_c_rest->data;

if(gw__tmp569_c_item == NULL) gw__tmp570_scm_item = SCM_BOOL_F;
else gw__tmp570_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp569_c_item, gw__tmp17_wct_info_for__gnc_Account__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp570_scm_item, gw__scm_result);
  }
  gw__tmp568_c_rest = gw__tmp568_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp572_cursor = gw__c_result;
  while(gw__tmp572_cursor)
  {
    Account* gw__tmp571_c_item;
    gw__tmp571_c_item = ( Account*) gw__tmp572_cursor->data;
gw__tmp572_cursor = gw__tmp572_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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__tmp247_xaccGroupGetSubAccounts_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp249_xaccGroupGetAccountList_namestr = "gnc:group-get-account-list";
static SCM gw__tmp248_xaccGroupGetAccountList_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_result;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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 = xaccGroupGetAccountList (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp573_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp573_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  Account* gw__tmp574_c_item;
  SCM gw__tmp575_scm_item;

  gw__tmp574_c_item = ( Account*) gw__tmp573_c_rest->data;

if(gw__tmp574_c_item == NULL) gw__tmp575_scm_item = SCM_BOOL_F;
else gw__tmp575_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp574_c_item, gw__tmp17_wct_info_for__gnc_Account__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp575_scm_item, gw__scm_result);
  }
  gw__tmp573_c_rest = gw__tmp573_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp577_cursor = gw__c_result;
  while(gw__tmp577_cursor)
  {
    Account* gw__tmp576_c_item;
    gw__tmp576_c_item = ( Account*) gw__tmp577_cursor->data;
gw__tmp577_cursor = gw__tmp577_cursor->next;
  }
}
}
}
  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__tmp249_xaccGroupGetAccountList_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp251_xaccGroupBeginStagedTransactionTraversals_namestr = "gnc:group-begin-staged-transaction-traversals";
static SCM gw__tmp250_xaccGroupBeginStagedTransactionTraversals_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;

AccountGroup* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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;
xaccGroupBeginStagedTransactionTraversals (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__tmp251_xaccGroupBeginStagedTransactionTraversals_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp253_gnc_scmGroupStagedTransactionTraversal_namestr = "gnc:group-staged-transaction-traversal";
static SCM gw__tmp252_gnc_scmGroupStagedTransactionTraversal_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;

AccountGroup* gw__c_arg0;
unsigned int gw__c_arg1;
SCM gw__c_arg2;
/* 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__tmp21_wct_info_for__gnc_AccountGroup__, 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(scm_integer_p(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_NFALSEP(scm_negative_p(gw__scm_arg1))        || SCM_FALSEP(scm_leq_p(gw__scm_arg1, gw__tmp2_range_maxval_gw_unsigned_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= gh_scm2ulong(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_scmGroupStagedTransactionTraversal (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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__tmp253_gnc_scmGroupStagedTransactionTraversal_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp255_gnc_scmAccountStagedTransactionTraversal_namestr = "gnc:account-staged-transaction-traversal";
static SCM gw__tmp254_gnc_scmAccountStagedTransactionTraversal_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;

Account* gw__c_arg0;
unsigned int gw__c_arg1;
SCM gw__c_arg2;
/* 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(SCM_FALSEP(scm_integer_p(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_NFALSEP(scm_negative_p(gw__scm_arg1))        || SCM_FALSEP(scm_leq_p(gw__scm_arg1, gw__tmp2_range_maxval_gw_unsigned_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= gh_scm2ulong(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_scmAccountStagedTransactionTraversal (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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__tmp255_gnc_scmAccountStagedTransactionTraversal_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp257_xaccAccountGetLotList_namestr = "gnc:account-get-lot-list";
static SCM gw__tmp256_xaccAccountGetLotList_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_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 = xaccAccountGetLotList (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp578_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp578_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  GNCLot* gw__tmp579_c_item;
  SCM gw__tmp580_scm_item;

  gw__tmp579_c_item = ( GNCLot*) gw__tmp578_c_rest->data;

if(gw__tmp579_c_item == NULL) gw__tmp580_scm_item = SCM_BOOL_F;
else gw__tmp580_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp579_c_item, gw__tmp23_wct_info_for__gnc_Lot__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp580_scm_item, gw__scm_result);
  }
  gw__tmp578_c_rest = gw__tmp578_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp582_cursor = gw__c_result;
  while(gw__tmp582_cursor)
  {
    GNCLot* gw__tmp581_c_item;
    gw__tmp581_c_item = ( GNCLot*) gw__tmp582_cursor->data;
gw__tmp582_cursor = gw__tmp582_cursor->next;
  }
}
}
}
  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__tmp257_xaccAccountGetLotList_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp261_gnc_price_create_namestr = "gnc:price-create";
static SCM gw__tmp260_gnc_price_create_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;
GNCPrice * gw__c_result;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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_price_create (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__tmp259_wct_info_for__gnc_Price__);
}
}
  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__tmp261_gnc_price_create_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp263_gnc_price_return_guid_namestr = "gnc:price-get-guid";
static SCM gw__tmp262_gnc_price_return_guid_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;
GUID gw__c_result;

GNCPrice * 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__tmp259_wct_info_for__gnc_Price__, 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_price_return_guid (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_guid2scm(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__tmp263_gnc_price_return_guid_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp265_gnc_price_unref_namestr = "gnc:price-unref";
static SCM gw__tmp264_gnc_price_unref_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;

GNCPrice * 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__tmp259_wct_info_for__gnc_Price__, 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_price_unref (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__tmp265_gnc_price_unref_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp267_gnc_price_set_commodity_namestr = "gnc:price-set-commodity";
static SCM gw__tmp266_gnc_price_set_commodity_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;

GNCPrice * gw__c_arg0;
gnc_commodity* 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__tmp259_wct_info_for__gnc_Price__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
gnc_price_set_commodity (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__tmp267_gnc_price_set_commodity_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp269_gnc_price_set_currency_namestr = "gnc:price-set-currency";
static SCM gw__tmp268_gnc_price_set_currency_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;

GNCPrice * gw__c_arg0;
gnc_commodity* 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__tmp259_wct_info_for__gnc_Price__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
gnc_price_set_currency (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__tmp269_gnc_price_set_currency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp271_gnc_price_set_time_namestr = "gnc:price-set-time";
static SCM gw__tmp270_gnc_price_set_time_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;

GNCPrice * gw__c_arg0;
Timespec 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__tmp259_wct_info_for__gnc_Price__, 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_timepair_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_timepair2timespec(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;
gnc_price_set_time (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__tmp271_gnc_price_set_time_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp273_gnc_price_set_source_namestr = "gnc:price-set-source";
static SCM gw__tmp272_gnc_price_set_source_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;

GNCPrice * gw__c_arg0;
char * 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__tmp259_wct_info_for__gnc_Price__, 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;

{
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;
}
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;
gnc_price_set_source (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp273_gnc_price_set_source_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp275_gnc_price_set_type_namestr = "gnc:price-set-type";
static SCM gw__tmp274_gnc_price_set_type_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;

GNCPrice * gw__c_arg0;
char * 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__tmp259_wct_info_for__gnc_Price__, 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;

{
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;
}
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;
gnc_price_set_type (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp275_gnc_price_set_type_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp277_gnc_price_set_value_namestr = "gnc:price-set-value";
static SCM gw__tmp276_gnc_price_set_value_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;

GNCPrice * 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__tmp259_wct_info_for__gnc_Price__, 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;
gnc_price_set_value (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__tmp277_gnc_price_set_value_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp279_gnc_price_get_value_namestr = "gnc:price-get-value";
static SCM gw__tmp278_gnc_price_get_value_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;

GNCPrice * 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__tmp259_wct_info_for__gnc_Price__, 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_price_get_value (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__tmp279_gnc_price_get_value_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp281_gnc_price_get_commodity_namestr = "gnc:price-get-commodity";
static SCM gw__tmp280_gnc_price_get_commodity_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_commodity* gw__c_result;

GNCPrice * 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__tmp259_wct_info_for__gnc_Price__, 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_price_get_commodity (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__tmp27_wct_info_for__gnc_commodity__);
}
}
  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__tmp281_gnc_price_get_commodity_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp283_gnc_price_get_currency_namestr = "gnc:price-get-currency";
static SCM gw__tmp282_gnc_price_get_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;
gnc_commodity* gw__c_result;

GNCPrice * 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__tmp259_wct_info_for__gnc_Price__, 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_price_get_currency (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__tmp27_wct_info_for__gnc_commodity__);
}
}
  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__tmp283_gnc_price_get_currency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp285_gnc_price_get_time_namestr = "gnc:price-get-time";
static SCM gw__tmp284_gnc_price_get_time_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;
Timespec gw__c_result;

GNCPrice * 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__tmp259_wct_info_for__gnc_Price__, 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_price_get_time (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_timespec2timepair(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__tmp285_gnc_price_get_time_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp287_gnc_pricedb_add_price_namestr = "gnc:pricedb-add-price";
static SCM gw__tmp286_gnc_pricedb_add_price_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_result;

GNCPriceDB * gw__c_arg0;
GNCPrice * 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__tmp258_wct_info_for__gnc_PriceDB__, 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__tmp259_wct_info_for__gnc_Price__, 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;
gw__c_result = gnc_pricedb_add_price (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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__tmp287_gnc_pricedb_add_price_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp289_gnc_price_list_destroy_namestr = "gnc:price-list-destroy";
static SCM gw__tmp288_gnc_price_list_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;

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

{
{
  SCM gw__tmp583_scm_rest = gw__scm_arg0;
  gw__c_arg0= NULL;
  while(!SCM_NULLP(gw__tmp583_scm_rest)
        && (! (gw__error_status != GW__ERR_NONE)))
  {
    GNCPrice * gw__tmp584_c_item;
    SCM gw__tmp585_scm_item = SCM_CAR(gw__tmp583_scm_rest);

if(!(SCM_FALSEP(gw__tmp585_scm_item) || gw_wcp_is_of_type_p(gw__tmp259_wct_info_for__gnc_Price__, gw__tmp585_scm_item))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__tmp585_scm_item;
   goto gw__post_call_arg_0;
}
else {if(SCM_FALSEP(gw__tmp585_scm_item)) gw__tmp584_c_item = NULL;
else gw__tmp584_c_item = gw_wcp_get_ptr(gw__tmp585_scm_item);
}

    if(! (gw__error_status != GW__ERR_NONE) )
    {
       gw__c_arg0 = g_list_prepend (gw__c_arg0, (gpointer)gw__tmp584_c_item);
    }
    gw__tmp583_scm_rest = SCM_CDR (gw__tmp583_scm_rest);
  }
  if(!(gw__error_status != GW__ERR_NONE))
  {
    gw__c_arg0 = g_list_reverse(gw__c_arg0);
  }
  else
  {
    GList * gw__tmp586_cursor = gw__c_arg0;
    while(gw__tmp586_cursor)
    {
      GNCPrice * gw__tmp584_c_item;
      gw__tmp584_c_item = ( GNCPrice *) gw__tmp586_cursor->data;
gw__tmp586_cursor = gw__tmp586_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_list_destroy (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_0:
{
{
  GList * gw__tmp588_cursor = gw__c_arg0;
  while(gw__tmp588_cursor)
  {
    GNCPrice * gw__tmp587_c_item;
    gw__tmp587_c_item = ( GNCPrice *) gw__tmp588_cursor->data;
gw__tmp588_cursor = gw__tmp588_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__tmp289_gnc_price_list_destroy_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp291_gnc_pricedb_lookup_latest_namestr = "gnc:pricedb-lookup-latest";
static SCM gw__tmp290_gnc_pricedb_lookup_latest_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;
GNCPrice * gw__c_result;

GNCPriceDB * gw__c_arg0;
gnc_commodity* gw__c_arg1;
gnc_commodity* gw__c_arg2;
/* 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__tmp258_wct_info_for__gnc_PriceDB__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(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_pricedb_lookup_latest (gw__c_arg0, gw__c_arg1, gw__c_arg2);
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__tmp259_wct_info_for__gnc_Price__);
}
}
  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__tmp291_gnc_pricedb_lookup_latest_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp293_gnc_pricedb_lookup_latest_any_currency_namestr = "gnc:pricedb-lookup-latest-any-currency";
static SCM gw__tmp292_gnc_pricedb_lookup_latest_any_currency_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;
GList* gw__c_result;

GNCPriceDB * gw__c_arg0;
gnc_commodity* 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__tmp258_wct_info_for__gnc_PriceDB__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
gw__c_result = gnc_pricedb_lookup_latest_any_currency (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
GList * gw__tmp589_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp589_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  GNCPrice * gw__tmp590_c_item;
  SCM gw__tmp591_scm_item;

  gw__tmp590_c_item = ( GNCPrice *) gw__tmp589_c_rest->data;

if(gw__tmp590_c_item == NULL) gw__tmp591_scm_item = SCM_BOOL_F;
else gw__tmp591_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp590_c_item, gw__tmp259_wct_info_for__gnc_Price__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp591_scm_item, gw__scm_result);
  }
  gw__tmp589_c_rest = gw__tmp589_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp593_cursor = gw__c_result;
  while(gw__tmp593_cursor)
  {
    GNCPrice * gw__tmp592_c_item;
    gw__tmp592_c_item = ( GNCPrice *) gw__tmp593_cursor->data;
gw__tmp593_cursor = gw__tmp593_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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__tmp293_gnc_pricedb_lookup_latest_any_currency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp295_gnc_pricedb_lookup_nearest_in_time_namestr = "gnc:pricedb-lookup-nearest-in-time";
static SCM gw__tmp294_gnc_pricedb_lookup_nearest_in_time_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;
GNCPrice * gw__c_result;

GNCPriceDB * gw__c_arg0;
gnc_commodity* gw__c_arg1;
gnc_commodity* gw__c_arg2;
Timespec gw__c_arg3;
/* 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__tmp258_wct_info_for__gnc_PriceDB__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if (!(gnc_timepair_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3 = gnc_timepair2timespec(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;
gw__c_result = gnc_pricedb_lookup_nearest_in_time (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
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__tmp259_wct_info_for__gnc_Price__);
}
}
  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:
  /* 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__tmp295_gnc_pricedb_lookup_nearest_in_time_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp297_gnc_pricedb_lookup_nearest_in_time_any_currency_namestr = "gnc:pricedb-lookup-nearest-in-time-any-currency";
static SCM gw__tmp296_gnc_pricedb_lookup_nearest_in_time_any_currency_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;
GList* gw__c_result;

GNCPriceDB * gw__c_arg0;
gnc_commodity* gw__c_arg1;
Timespec gw__c_arg2;
/* 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__tmp258_wct_info_for__gnc_PriceDB__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(gnc_timepair_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 = gnc_timepair2timespec(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_pricedb_lookup_nearest_in_time_any_currency (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
GList * gw__tmp594_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp594_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  GNCPrice * gw__tmp595_c_item;
  SCM gw__tmp596_scm_item;

  gw__tmp595_c_item = ( GNCPrice *) gw__tmp594_c_rest->data;

if(gw__tmp595_c_item == NULL) gw__tmp596_scm_item = SCM_BOOL_F;
else gw__tmp596_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp595_c_item, gw__tmp259_wct_info_for__gnc_Price__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp596_scm_item, gw__scm_result);
  }
  gw__tmp594_c_rest = gw__tmp594_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp598_cursor = gw__c_result;
  while(gw__tmp598_cursor)
  {
    GNCPrice * gw__tmp597_c_item;
    gw__tmp597_c_item = ( GNCPrice *) gw__tmp598_cursor->data;
gw__tmp598_cursor = gw__tmp598_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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__tmp297_gnc_pricedb_lookup_nearest_in_time_any_currency_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp299_gnc_pricedb_get_prices_namestr = "gnc:pricedb-get-prices";
static SCM gw__tmp298_gnc_pricedb_get_prices_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;
GList* gw__c_result;

GNCPriceDB * gw__c_arg0;
gnc_commodity* gw__c_arg1;
gnc_commodity* gw__c_arg2;
/* 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__tmp258_wct_info_for__gnc_PriceDB__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(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_pricedb_get_prices (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
GList * gw__tmp599_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp599_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  GNCPrice * gw__tmp600_c_item;
  SCM gw__tmp601_scm_item;

  gw__tmp600_c_item = ( GNCPrice *) gw__tmp599_c_rest->data;

if(gw__tmp600_c_item == NULL) gw__tmp601_scm_item = SCM_BOOL_F;
else gw__tmp601_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp600_c_item, gw__tmp259_wct_info_for__gnc_Price__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp601_scm_item, gw__scm_result);
  }
  gw__tmp599_c_rest = gw__tmp599_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp603_cursor = gw__c_result;
  while(gw__tmp603_cursor)
  {
    GNCPrice * gw__tmp602_c_item;
    gw__tmp602_c_item = ( GNCPrice *) gw__tmp603_cursor->data;
gw__tmp603_cursor = gw__tmp603_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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__tmp299_gnc_pricedb_get_prices_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp301_gnc_pricedb_lookup_at_time_namestr = "gnc:pricedb-lookup-at-time";
static SCM gw__tmp300_gnc_pricedb_lookup_at_time_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;
GList* gw__c_result;

GNCPriceDB * gw__c_arg0;
gnc_commodity* gw__c_arg1;
gnc_commodity* gw__c_arg2;
Timespec gw__c_arg3;
/* 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__tmp258_wct_info_for__gnc_PriceDB__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if (!(gnc_timepair_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3 = gnc_timepair2timespec(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;
gw__c_result = gnc_pricedb_lookup_at_time (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
GList * gw__tmp604_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp604_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  GNCPrice * gw__tmp605_c_item;
  SCM gw__tmp606_scm_item;

  gw__tmp605_c_item = ( GNCPrice *) gw__tmp604_c_rest->data;

if(gw__tmp605_c_item == NULL) gw__tmp606_scm_item = SCM_BOOL_F;
else gw__tmp606_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp605_c_item, gw__tmp259_wct_info_for__gnc_Price__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp606_scm_item, gw__scm_result);
  }
  gw__tmp604_c_rest = gw__tmp604_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp608_cursor = gw__c_result;
  while(gw__tmp608_cursor)
  {
    GNCPrice * gw__tmp607_c_item;
    gw__tmp607_c_item = ( GNCPrice *) gw__tmp608_cursor->data;
gw__tmp608_cursor = gw__tmp608_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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:
  /* 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__tmp301_gnc_pricedb_lookup_at_time_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp303_gnc_pricedb_lookup_day_namestr = "gnc:pricedb-lookup-day";
static SCM gw__tmp302_gnc_pricedb_lookup_day_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;
GList* gw__c_result;

GNCPriceDB * gw__c_arg0;
gnc_commodity* gw__c_arg1;
gnc_commodity* gw__c_arg2;
Timespec gw__c_arg3;
/* 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__tmp258_wct_info_for__gnc_PriceDB__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if (!(gnc_timepair_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3 = gnc_timepair2timespec(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;
gw__c_result = gnc_pricedb_lookup_day (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
GList * gw__tmp609_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp609_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  GNCPrice * gw__tmp610_c_item;
  SCM gw__tmp611_scm_item;

  gw__tmp610_c_item = ( GNCPrice *) gw__tmp609_c_rest->data;

if(gw__tmp610_c_item == NULL) gw__tmp611_scm_item = SCM_BOOL_F;
else gw__tmp611_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp610_c_item, gw__tmp259_wct_info_for__gnc_Price__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp611_scm_item, gw__scm_result);
  }
  gw__tmp609_c_rest = gw__tmp609_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp613_cursor = gw__c_result;
  while(gw__tmp613_cursor)
  {
    GNCPrice * gw__tmp612_c_item;
    gw__tmp612_c_item = ( GNCPrice *) gw__tmp613_cursor->data;
gw__tmp613_cursor = gw__tmp613_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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:
  /* 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__tmp303_gnc_pricedb_lookup_day_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp305_gnc_pricedb_convert_balance_latest_price_namestr = "gnc:pricedb-convert-balance-latest-price";
static SCM gw__tmp304_gnc_pricedb_convert_balance_latest_price_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;
gnc_numeric gw__c_result;

GNCPriceDB * gw__c_arg0;
gnc_numeric gw__c_arg1;
gnc_commodity* gw__c_arg2;
gnc_commodity* gw__c_arg3;
/* 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__tmp258_wct_info_for__gnc_PriceDB__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if(!(SCM_FALSEP(gw__scm_arg3) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {if(SCM_FALSEP(gw__scm_arg3)) gw__c_arg3 = NULL;
else gw__c_arg3 = gw_wcp_get_ptr(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;
gw__c_result = gnc_pricedb_convert_balance_latest_price (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  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:
  /* 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__tmp305_gnc_pricedb_convert_balance_latest_price_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp307_gnc_pricedb_convert_balance_nearest_price_namestr = "gnc:pricedb-convert-balance-nearest-price";
static SCM gw__tmp306_gnc_pricedb_convert_balance_nearest_price_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4 ) {
  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;

GNCPriceDB * gw__c_arg0;
gnc_numeric gw__c_arg1;
gnc_commodity* gw__c_arg2;
gnc_commodity* gw__c_arg3;
Timespec gw__c_arg4;
/* 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__tmp258_wct_info_for__gnc_PriceDB__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if(!(SCM_FALSEP(gw__scm_arg3) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {if(SCM_FALSEP(gw__scm_arg3)) gw__c_arg3 = NULL;
else gw__c_arg3 = gw_wcp_get_ptr(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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
if (!(gnc_timepair_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else {gw__c_arg4 = gnc_timepair2timespec(gw__scm_arg4);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
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_4;
SCM_DEFER_INTS;
gw__c_result = gnc_pricedb_convert_balance_nearest_price (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  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:
  /* 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__tmp307_gnc_pricedb_convert_balance_nearest_price_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp309_gnc_session_new_namestr = "gnc:session-new";
static SCM gw__tmp308_gnc_session_new_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_session_new ();
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__tmp24_wct_info_for__gnc_Session__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp309_gnc_session_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp311_gnc_session_destroy_namestr = "gnc:session-destroy";
static SCM gw__tmp310_gnc_session_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;

GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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_session_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__tmp311_gnc_session_destroy_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp313_gnc_session_get_book_namestr = "gnc:session-get-book";
static SCM gw__tmp312_gnc_session_get_book_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;
GNCBook* gw__c_result;

GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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_session_get_book (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__tmp22_wct_info_for__gnc_Book__);
}
}
  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__tmp313_gnc_session_get_book_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp315_gnc_session_begin_namestr = "gnc:session-begin";
static SCM gw__tmp314_gnc_session_begin_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;

GNCSession* gw__c_arg0;
const char * gw__c_arg1;
int gw__c_arg2;
int gw__c_arg3;
/* 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__tmp24_wct_info_for__gnc_Session__, 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;

{
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;
}
/* 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_session_begin (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:
  /* 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__tmp315_gnc_session_begin_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp317_gnc_session_scm_load_namestr = "gnc:session-load";
static SCM gw__tmp316_gnc_session_scm_load_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;

GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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_session_scm_load (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__tmp317_gnc_session_scm_load_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp319_gnc_session_scm_save_namestr = "gnc:session-save";
static SCM gw__tmp318_gnc_session_scm_save_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;

GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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_session_scm_save (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__tmp319_gnc_session_scm_save_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp321_gnc_session_scm_export_namestr = "gnc:session-export";
static SCM gw__tmp320_gnc_session_scm_export_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_result;

GNCSession* gw__c_arg0;
GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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__tmp24_wct_info_for__gnc_Session__, 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;
gw__c_result = gnc_session_scm_export (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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__tmp321_gnc_session_scm_export_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp323_gnc_session_scm_set_callback_namestr = "gnc:session-set-callback";
static SCM gw__tmp322_gnc_session_scm_set_callback_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;
gnc_session_scm_set_callback (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__tmp323_gnc_session_scm_set_callback_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp325_gnc_session_end_namestr = "gnc:session-end";
static SCM gw__tmp324_gnc_session_end_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;

GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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_session_end (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__tmp325_gnc_session_end_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp327_gnc_book_get_group_namestr = "gnc:book-get-group";
static SCM gw__tmp326_gnc_book_get_group_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;
AccountGroup* gw__c_result;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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_book_get_group (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__tmp21_wct_info_for__gnc_AccountGroup__);
}
}
  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__tmp327_gnc_book_get_group_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp329_gnc_book_get_commodity_table_namestr = "gnc:book-get-commodity-table";
static SCM gw__tmp328_gnc_book_get_commodity_table_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_commodity_table* gw__c_result;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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_book_get_commodity_table (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__tmp28_wct_info_for__gnc_commodity_table__);
}
}
  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__tmp329_gnc_book_get_commodity_table_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp331_gnc_book_get_pricedb_namestr = "gnc:book-get-pricedb";
static SCM gw__tmp330_gnc_book_get_pricedb_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;
GNCPriceDB * gw__c_result;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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_book_get_pricedb (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__tmp258_wct_info_for__gnc_PriceDB__);
}
}
  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__tmp331_gnc_book_get_pricedb_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp333_gnc_book_kvp_changed_namestr = "gnc:book-kvp-changed";
static SCM gw__tmp332_gnc_book_kvp_changed_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;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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_book_kvp_changed (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__tmp333_gnc_book_kvp_changed_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp335_gnc_session_get_error_namestr = "gnc:session-get-error";
static SCM gw__tmp334_gnc_session_get_error_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;
GNCBackendError gw__c_result;

GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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_session_get_error (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gh_long2scm(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__tmp335_gnc_session_get_error_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp337_gnc_session_get_url_namestr = "gnc:session-get-url";
static SCM gw__tmp336_gnc_session_get_url_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;

GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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_session_get_url (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:
  /* 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__tmp337_gnc_session_get_url_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp339_gnc_session_pop_error_namestr = "gnc:session-pop-error";
static SCM gw__tmp338_gnc_session_pop_error_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;
GNCBackendError gw__c_result;

GNCSession* 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__tmp24_wct_info_for__gnc_Session__, 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_session_pop_error (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gh_long2scm(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__tmp339_gnc_session_pop_error_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp341_gnc_set_log_level_global_namestr = "gnc:set-log-level-global";
static SCM gw__tmp340_gnc_set_log_level_global_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_set_log_level_global (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__tmp341_gnc_set_log_level_global_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp343_gnc_print_date_namestr = "gnc:print-date";
static SCM gw__tmp342_gnc_print_date_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;

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

{
if (!(gnc_timepair_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_timepair2timespec(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_print_date (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:
  /* 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__tmp343_gnc_print_date_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp345_xaccTransDestroy_namestr = "gnc:transaction-destroy";
static SCM gw__tmp344_xaccTransDestroy_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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;
xaccTransDestroy (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__tmp345_xaccTransDestroy_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp347_xaccTransBeginEdit_namestr = "gnc:transaction-begin-edit";
static SCM gw__tmp346_xaccTransBeginEdit_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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;
xaccTransBeginEdit (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__tmp347_xaccTransBeginEdit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp349_xaccTransCommitEdit_namestr = "gnc:transaction-commit-edit";
static SCM gw__tmp348_xaccTransCommitEdit_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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;
xaccTransCommitEdit (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__tmp349_xaccTransCommitEdit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp351_xaccTransIsOpen_namestr = "gnc:transaction-is-open";
static SCM gw__tmp350_xaccTransIsOpen_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;

Transaction* 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__tmp26_wct_info_for__gnc_Transaction__, 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 = xaccTransIsOpen (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__tmp351_xaccTransIsOpen_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp353_xaccSplitDestroy_namestr = "gnc:split-destroy";
static SCM gw__tmp352_xaccSplitDestroy_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;

Split* 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_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;
}
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;
xaccSplitDestroy (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__tmp353_xaccSplitDestroy_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp355_xaccTransAppendSplit_namestr = "gnc:transaction-append-split";
static SCM gw__tmp354_xaccTransAppendSplit_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;

Transaction* gw__c_arg0;
Split* 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__tmp26_wct_info_for__gnc_Transaction__, 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__tmp25_wct_info_for__gnc_Split__, 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;
xaccTransAppendSplit (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__tmp355_xaccTransAppendSplit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp357_xaccTransSetDate_namestr = "gnc:transaction-set-date";
static SCM gw__tmp356_xaccTransSetDate_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;

Transaction* gw__c_arg0;
int gw__c_arg1;
int gw__c_arg2;
int gw__c_arg3;
/* 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__tmp26_wct_info_for__gnc_Transaction__, 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(scm_integer_p(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(scm_geq_p(gw__scm_arg1, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg1, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= gh_scm2long(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_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(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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
xaccTransSetDate (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:
  /* 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__tmp357_xaccTransSetDate_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp359_gnc_transaction_set_date_namestr = "gnc:transaction-set-date-time-pair";
static SCM gw__tmp358_gnc_transaction_set_date_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;

Transaction* gw__c_arg0;
Timespec 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__tmp26_wct_info_for__gnc_Transaction__, 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_timepair_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_timepair2timespec(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;
gnc_transaction_set_date (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__tmp359_gnc_transaction_set_date_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp361_xaccTransSetNum_namestr = "gnc:transaction-set-xnum";
static SCM gw__tmp360_xaccTransSetNum_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;

Transaction* gw__c_arg0;
const char * 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__tmp26_wct_info_for__gnc_Transaction__, 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;

{
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;
}
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;
xaccTransSetNum (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp361_xaccTransSetNum_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp363_xaccTransSetDescription_namestr = "gnc:transaction-set-description";
static SCM gw__tmp362_xaccTransSetDescription_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;

Transaction* gw__c_arg0;
const char * 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__tmp26_wct_info_for__gnc_Transaction__, 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;

{
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;
}
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;
xaccTransSetDescription (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp363_xaccTransSetDescription_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp365_xaccTransSetNotes_namestr = "gnc:transaction-set-notes";
static SCM gw__tmp364_xaccTransSetNotes_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;

Transaction* gw__c_arg0;
const char * 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__tmp26_wct_info_for__gnc_Transaction__, 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;

{
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;
}
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;
xaccTransSetNotes (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp365_xaccTransSetNotes_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp367_xaccMallocTransaction_namestr = "gnc:transaction-create";
static SCM gw__tmp366_xaccMallocTransaction_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;
Transaction* gw__c_result;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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 = xaccMallocTransaction (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__tmp26_wct_info_for__gnc_Transaction__);
}
}
  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__tmp367_xaccMallocTransaction_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp369_xaccMallocSplit_namestr = "gnc:split-create";
static SCM gw__tmp368_xaccMallocSplit_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;
Split* gw__c_result;

GNCBook* 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__tmp22_wct_info_for__gnc_Book__, 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 = xaccMallocSplit (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__tmp25_wct_info_for__gnc_Split__);
}
}
  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__tmp369_xaccMallocSplit_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp371_xaccSplitSetValue_namestr = "gnc:split-set-value";
static SCM gw__tmp370_xaccSplitSetValue_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;

Split* 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_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 (!(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;
xaccSplitSetValue (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__tmp371_xaccSplitSetValue_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp373_xaccSplitSetBaseValue_namestr = "gnc:split-set-base-value";
static SCM gw__tmp372_xaccSplitSetBaseValue_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;

Split* gw__c_arg0;
gnc_numeric gw__c_arg1;
gnc_commodity* gw__c_arg2;
/* 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_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 (!(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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if(!(SCM_FALSEP(gw__scm_arg2) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, gw__scm_arg2))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg2;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__scm_arg2)) gw__c_arg2 = NULL;
else gw__c_arg2 = gw_wcp_get_ptr(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;
xaccSplitSetBaseValue (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__tmp373_xaccSplitSetBaseValue_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp375_xaccSplitSetMemo_namestr = "gnc:split-set-memo";
static SCM gw__tmp374_xaccSplitSetMemo_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;

Split* gw__c_arg0;
const char * 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_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;

{
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;
}
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;
xaccSplitSetMemo (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp375_xaccSplitSetMemo_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp377_xaccSplitSetAction_namestr = "gnc:split-set-action";
static SCM gw__tmp376_xaccSplitSetAction_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;

Split* gw__c_arg0;
const char * 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_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;

{
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;
}
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;
xaccSplitSetAction (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp377_xaccSplitSetAction_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp379_xaccSplitSetReconcile_namestr = "gnc:split-set-reconcile";
static SCM gw__tmp378_xaccSplitSetReconcile_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;

Split* gw__c_arg0;
char 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_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 (!(SCM_NFALSEP(scm_char_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= SCM_CHAR(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;
xaccSplitSetReconcile (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__tmp379_xaccSplitSetReconcile_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp381_DxaccSplitSetSharePrice_namestr = "d-gnc:split-set-share-price";
static SCM gw__tmp380_DxaccSplitSetSharePrice_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;

Split* gw__c_arg0;
double 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_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 (!(SCM_NFALSEP(scm_number_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= gh_scm2double(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;
DxaccSplitSetSharePrice (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__tmp381_DxaccSplitSetSharePrice_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp383_xaccSplitSetSharePrice_namestr = "gnc:split-set-share-price";
static SCM gw__tmp382_xaccSplitSetSharePrice_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;

Split* 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_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 (!(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;
xaccSplitSetSharePrice (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__tmp383_xaccSplitSetSharePrice_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp385_xaccSplitSetAmount_namestr = "gnc:split-set-amount";
static SCM gw__tmp384_xaccSplitSetAmount_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;

Split* 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_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 (!(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;
xaccSplitSetAmount (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__tmp385_xaccSplitSetAmount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp387_xaccSplitSetSharePriceAndAmount_namestr = "gnc:split-set-share-price-and-amount";
static SCM gw__tmp386_xaccSplitSetSharePriceAndAmount_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;

Split* gw__c_arg0;
gnc_numeric gw__c_arg1;
gnc_numeric gw__c_arg2;
/* 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_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 (!(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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(gnc_numeric_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 = gnc_scm_to_numeric(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;
xaccSplitSetSharePriceAndAmount (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__tmp387_xaccSplitSetSharePriceAndAmount_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp389_xaccMallocQuery_namestr = "gnc:malloc-query";
static SCM gw__tmp388_xaccMallocQuery_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;
Query * 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 = xaccMallocQuery ();
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__tmp29_wct_info_for__gnc_Query__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp389_xaccMallocQuery_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp391_gncQueryCreate_namestr = "gnc:query-create";
static SCM gw__tmp390_gncQueryCreate_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;
Query * 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 = gncQueryCreate ();
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__tmp29_wct_info_for__gnc_Query__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp391_gncQueryCreate_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp393_gncQueryCreateFor_namestr = "gnc:query-create-for";
static SCM gw__tmp392_gncQueryCreateFor_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;
Query * gw__c_result;

GNCIdType 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__tmp16_wct_info_for__gnc_id_type_, 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 = gncQueryCreateFor (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__tmp29_wct_info_for__gnc_Query__);
}
}
  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__tmp393_gncQueryCreateFor_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp395_gncQuerySearchFor_namestr = "gnc:query-search-for";
static SCM gw__tmp394_gncQuerySearchFor_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;

Query * gw__c_arg0;
GNCIdType 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__tmp29_wct_info_for__gnc_Query__, 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__tmp16_wct_info_for__gnc_id_type_, 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;
gncQuerySearchFor (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__tmp395_gncQuerySearchFor_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp397_xaccFreeQuery_namestr = "gnc:free-query";
static SCM gw__tmp396_xaccFreeQuery_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;

Query * 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__tmp29_wct_info_for__gnc_Query__, 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;
xaccFreeQuery (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__tmp397_xaccFreeQuery_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp399_xaccQuerySetBook_namestr = "gnc:query-set-book";
static SCM gw__tmp398_xaccQuerySetBook_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;

Query * gw__c_arg0;
GNCBook* 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__tmp29_wct_info_for__gnc_Query__, 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__tmp22_wct_info_for__gnc_Book__, 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;
xaccQuerySetBook (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__tmp399_xaccQuerySetBook_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp401_xaccQueryInvert_namestr = "gnc:query-invert";
static SCM gw__tmp400_xaccQueryInvert_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;
Query * gw__c_result;

Query * 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__tmp29_wct_info_for__gnc_Query__, 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 = xaccQueryInvert (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__tmp29_wct_info_for__gnc_Query__);
}
}
  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__tmp401_xaccQueryInvert_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp403_xaccQueryMerge_namestr = "gnc:query-merge";
static SCM gw__tmp402_xaccQueryMerge_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;
Query * gw__c_result;

Query * gw__c_arg0;
Query * gw__c_arg1;
QueryOp gw__c_arg2;
/* 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__tmp29_wct_info_for__gnc_Query__, 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__tmp29_wct_info_for__gnc_Query__, 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;
}
/* 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_query_op__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;
gw__c_result = xaccQueryMerge (gw__c_arg0, gw__c_arg1, gw__c_arg2);
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__tmp29_wct_info_for__gnc_Query__);
}
}
  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__tmp403_xaccQueryMerge_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp405_xaccQueryClear_namestr = "gnc:query-clear";
static SCM gw__tmp404_xaccQueryClear_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;

Query * 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__tmp29_wct_info_for__gnc_Query__, 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;
xaccQueryClear (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__tmp405_xaccQueryClear_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp407_gncQueryPurgeTerms_namestr = "gnc:query-purge-terms";
static SCM gw__tmp406_gncQueryPurgeTerms_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;

Query * gw__c_arg0;
GSList* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
{
  SCM gw__tmp614_scm_rest = gw__scm_arg1;
  gw__c_arg1= NULL;
  while(!SCM_NULLP(gw__tmp614_scm_rest)
        && (! (gw__error_status != GW__ERR_NONE)))
  {
    GNCIdType gw__tmp615_c_item;
    SCM gw__tmp616_scm_item = SCM_CAR(gw__tmp614_scm_rest);

if(!(SCM_FALSEP(gw__tmp616_scm_item) || gw_wcp_is_of_type_p(gw__tmp16_wct_info_for__gnc_id_type_, gw__tmp616_scm_item))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__tmp616_scm_item;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__tmp616_scm_item)) gw__tmp615_c_item = NULL;
else gw__tmp615_c_item = gw_wcp_get_ptr(gw__tmp616_scm_item);
}

    if(! (gw__error_status != GW__ERR_NONE) )
    {
       gw__c_arg1 = g_slist_prepend (gw__c_arg1, (gpointer)gw__tmp615_c_item);
    }
    gw__tmp614_scm_rest = SCM_CDR (gw__tmp614_scm_rest);
  }
  if(!(gw__error_status != GW__ERR_NONE))
  {
    gw__c_arg1 = g_slist_reverse(gw__c_arg1);
  }
  else
  {
    GSList * gw__tmp617_cursor = gw__c_arg1;
    while(gw__tmp617_cursor)
    {
      GNCIdType gw__tmp615_c_item;
      gw__tmp615_c_item = ( GNCIdType) gw__tmp617_cursor->data;
gw__tmp617_cursor = gw__tmp617_cursor->next;
    }
    g_slist_free(gw__c_arg1);
    gw__c_arg1 = NULL;
  }
}
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;
gncQueryPurgeTerms (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_1:
{
{
  GSList * gw__tmp619_cursor = gw__c_arg1;
  while(gw__tmp619_cursor)
  {
    GNCIdType gw__tmp618_c_item;
    gw__tmp618_c_item = ( GNCIdType) gw__tmp619_cursor->data;
gw__tmp619_cursor = gw__tmp619_cursor->next;
  }
  if(gw__c_arg1)
  {
    g_slist_free(gw__c_arg1);
    gw__c_arg1 = NULL;
  }
}
}
  { /* 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__tmp407_gncQueryPurgeTerms_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp409_xaccQueryHasTerms_namestr = "gnc:query-has-terms?";
static SCM gw__tmp408_xaccQueryHasTerms_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;

Query * 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__tmp29_wct_info_for__gnc_Query__, 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 = xaccQueryHasTerms (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__tmp409_xaccQueryHasTerms_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp411_xaccQueryGetSplits_namestr = "gnc:query-get-splits";
static SCM gw__tmp410_xaccQueryGetSplits_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_result;

Query * 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__tmp29_wct_info_for__gnc_Query__, 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 = xaccQueryGetSplits (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp620_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp620_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  Split* gw__tmp621_c_item;
  SCM gw__tmp622_scm_item;

  gw__tmp621_c_item = ( Split*) gw__tmp620_c_rest->data;

if(gw__tmp621_c_item == NULL) gw__tmp622_scm_item = SCM_BOOL_F;
else gw__tmp622_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp621_c_item, gw__tmp25_wct_info_for__gnc_Split__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp622_scm_item, gw__scm_result);
  }
  gw__tmp620_c_rest = gw__tmp620_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp624_cursor = gw__c_result;
  while(gw__tmp624_cursor)
  {
    Split* gw__tmp623_c_item;
    gw__tmp623_c_item = ( Split*) gw__tmp624_cursor->data;
gw__tmp624_cursor = gw__tmp624_cursor->next;
  }
}
}
}
  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__tmp411_xaccQueryGetSplits_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp413_xaccQueryGetSplitsUniqueTrans_namestr = "gnc:query-get-splits-unique-trans";
static SCM gw__tmp412_xaccQueryGetSplitsUniqueTrans_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_result;

Query * 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__tmp29_wct_info_for__gnc_Query__, 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 = xaccQueryGetSplitsUniqueTrans (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp625_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp625_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  Split* gw__tmp626_c_item;
  SCM gw__tmp627_scm_item;

  gw__tmp626_c_item = ( Split*) gw__tmp625_c_rest->data;

if(gw__tmp626_c_item == NULL) gw__tmp627_scm_item = SCM_BOOL_F;
else gw__tmp627_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp626_c_item, gw__tmp25_wct_info_for__gnc_Split__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp627_scm_item, gw__scm_result);
  }
  gw__tmp625_c_rest = gw__tmp625_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp629_cursor = gw__c_result;
  while(gw__tmp629_cursor)
  {
    Split* gw__tmp628_c_item;
    gw__tmp628_c_item = ( Split*) gw__tmp629_cursor->data;
gw__tmp629_cursor = gw__tmp629_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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__tmp413_xaccQueryGetSplitsUniqueTrans_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp415_xaccQueryGetTransactions_namestr = "gnc:query-get-transactions";
static SCM gw__tmp414_xaccQueryGetTransactions_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;
GList* gw__c_result;

Query * gw__c_arg0;
query_txn_match_t 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__tmp29_wct_info_for__gnc_Query__, 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;

{
gw__scm_arg1 = gh_call1(gw__enum__gnc_query_txn_match_t__val_to_int_scm_func, gw__scm_arg1);
if(SCM_FALSEP(scm_integer_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 = gh_scm2long(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 = xaccQueryGetTransactions (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
GList * gw__tmp630_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp630_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  Transaction* gw__tmp631_c_item;
  SCM gw__tmp632_scm_item;

  gw__tmp631_c_item = ( Transaction*) gw__tmp630_c_rest->data;

if(gw__tmp631_c_item == NULL) gw__tmp632_scm_item = SCM_BOOL_F;
else gw__tmp632_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp631_c_item, gw__tmp26_wct_info_for__gnc_Transaction__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp632_scm_item, gw__scm_result);
  }
  gw__tmp630_c_rest = gw__tmp630_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp634_cursor = gw__c_result;
  while(gw__tmp634_cursor)
  {
    Transaction* gw__tmp633_c_item;
    gw__tmp633_c_item = ( Transaction*) gw__tmp634_cursor->data;
gw__tmp634_cursor = gw__tmp634_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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__tmp415_xaccQueryGetTransactions_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp417_xaccQueryGetLots_namestr = "gnc:query-get-lots";
static SCM gw__tmp416_xaccQueryGetLots_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;
GList* gw__c_result;

Query * gw__c_arg0;
query_txn_match_t 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__tmp29_wct_info_for__gnc_Query__, 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;

{
gw__scm_arg1 = gh_call1(gw__enum__gnc_query_txn_match_t__val_to_int_scm_func, gw__scm_arg1);
if(SCM_FALSEP(scm_integer_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 = gh_scm2long(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 = xaccQueryGetLots (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
GList * gw__tmp635_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp635_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  GNCLot* gw__tmp636_c_item;
  SCM gw__tmp637_scm_item;

  gw__tmp636_c_item = ( GNCLot*) gw__tmp635_c_rest->data;

if(gw__tmp636_c_item == NULL) gw__tmp637_scm_item = SCM_BOOL_F;
else gw__tmp637_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp636_c_item, gw__tmp23_wct_info_for__gnc_Lot__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp637_scm_item, gw__scm_result);
  }
  gw__tmp635_c_rest = gw__tmp635_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp639_cursor = gw__c_result;
  while(gw__tmp639_cursor)
  {
    GNCLot* gw__tmp638_c_item;
    gw__tmp638_c_item = ( GNCLot*) gw__tmp639_cursor->data;
gw__tmp639_cursor = gw__tmp639_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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__tmp417_xaccQueryGetLots_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp419_xaccQueryAddAccountMatch_namestr = "gnc:query-add-account-match";
static SCM gw__tmp418_xaccQueryAddAccountMatch_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;

Query * gw__c_arg0;
GList* gw__c_arg1;
guid_match_t gw__c_arg2;
QueryOp gw__c_arg3;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
{
  SCM gw__tmp640_scm_rest = gw__scm_arg1;
  gw__c_arg1= NULL;
  while(!SCM_NULLP(gw__tmp640_scm_rest)
        && (! (gw__error_status != GW__ERR_NONE)))
  {
    Account* gw__tmp641_c_item;
    SCM gw__tmp642_scm_item = SCM_CAR(gw__tmp640_scm_rest);

if(!(SCM_FALSEP(gw__tmp642_scm_item) || gw_wcp_is_of_type_p(gw__tmp17_wct_info_for__gnc_Account__, gw__tmp642_scm_item))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__tmp642_scm_item;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__tmp642_scm_item)) gw__tmp641_c_item = NULL;
else gw__tmp641_c_item = gw_wcp_get_ptr(gw__tmp642_scm_item);
}

    if(! (gw__error_status != GW__ERR_NONE) )
    {
       gw__c_arg1 = g_list_prepend (gw__c_arg1, (gpointer)gw__tmp641_c_item);
    }
    gw__tmp640_scm_rest = SCM_CDR (gw__tmp640_scm_rest);
  }
  if(!(gw__error_status != GW__ERR_NONE))
  {
    gw__c_arg1 = g_list_reverse(gw__c_arg1);
  }
  else
  {
    GList * gw__tmp643_cursor = gw__c_arg1;
    while(gw__tmp643_cursor)
    {
      Account* gw__tmp641_c_item;
      gw__tmp641_c_item = ( Account*) gw__tmp643_cursor->data;
gw__tmp643_cursor = gw__tmp643_cursor->next;
    }
    g_list_free(gw__c_arg1);
    gw__c_arg1 = NULL;
  }
}
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_guid_match_how__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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
gw__scm_arg3 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg3);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else gw__c_arg3 = gh_scm2long(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;
xaccQueryAddAccountMatch (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:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
{
{
  GList * gw__tmp645_cursor = gw__c_arg1;
  while(gw__tmp645_cursor)
  {
    Account* gw__tmp644_c_item;
    gw__tmp644_c_item = ( Account*) gw__tmp645_cursor->data;
gw__tmp645_cursor = gw__tmp645_cursor->next;
  }
  if(gw__c_arg1)
  {
    g_list_free(gw__c_arg1);
    gw__c_arg1 = NULL;
  }
}
}
  { /* 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__tmp419_xaccQueryAddAccountMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp421_xaccQueryAddSingleAccountMatch_namestr = "gnc:query-add-single-account-match";
static SCM gw__tmp420_xaccQueryAddSingleAccountMatch_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;

Query * gw__c_arg0;
Account* gw__c_arg1;
QueryOp gw__c_arg2;
/* 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__tmp29_wct_info_for__gnc_Query__, 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__tmp17_wct_info_for__gnc_Account__, 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;
}
/* 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_query_op__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;
xaccQueryAddSingleAccountMatch (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__tmp421_xaccQueryAddSingleAccountMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp423_xaccQueryAddDescriptionMatch_namestr = "gnc:query-add-description-match";
static SCM gw__tmp422_xaccQueryAddDescriptionMatch_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4 ) {
  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;

Query * gw__c_arg0;
const char * gw__c_arg1;
int gw__c_arg2;
int gw__c_arg3;
QueryOp gw__c_arg4;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
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(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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
gw__scm_arg4 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg4);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else gw__c_arg4 = gh_scm2long(gw__scm_arg4);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
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_4;
SCM_DEFER_INTS;
xaccQueryAddDescriptionMatch (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  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:
  /* 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__tmp423_xaccQueryAddDescriptionMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp425_xaccQueryAddNumberMatch_namestr = "gnc:query-add-number-match";
static SCM gw__tmp424_xaccQueryAddNumberMatch_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4 ) {
  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;

Query * gw__c_arg0;
const char * gw__c_arg1;
int gw__c_arg2;
int gw__c_arg3;
QueryOp gw__c_arg4;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
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(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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
gw__scm_arg4 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg4);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else gw__c_arg4 = gh_scm2long(gw__scm_arg4);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
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_4;
SCM_DEFER_INTS;
xaccQueryAddNumberMatch (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  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:
  /* 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__tmp425_xaccQueryAddNumberMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp427_xaccQueryAddActionMatch_namestr = "gnc:query-add-action-match";
static SCM gw__tmp426_xaccQueryAddActionMatch_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4 ) {
  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;

Query * gw__c_arg0;
const char * gw__c_arg1;
int gw__c_arg2;
int gw__c_arg3;
QueryOp gw__c_arg4;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
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(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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
gw__scm_arg4 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg4);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else gw__c_arg4 = gh_scm2long(gw__scm_arg4);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
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_4;
SCM_DEFER_INTS;
xaccQueryAddActionMatch (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  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:
  /* 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__tmp427_xaccQueryAddActionMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp429_xaccQueryAddSharePriceMatch_namestr = "gnc:query-add-share-price-match";
static SCM gw__tmp428_xaccQueryAddSharePriceMatch_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;

Query * gw__c_arg0;
gnc_numeric gw__c_arg1;
query_compare_t gw__c_arg2;
QueryOp gw__c_arg3;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;
}
/* 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_query_compare_how__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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
gw__scm_arg3 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg3);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else gw__c_arg3 = gh_scm2long(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;
xaccQueryAddSharePriceMatch (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:
  /* 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__tmp429_xaccQueryAddSharePriceMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp431_xaccQueryAddSharesMatch_namestr = "gnc:query-add-shares-match";
static SCM gw__tmp430_xaccQueryAddSharesMatch_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;

Query * gw__c_arg0;
gnc_numeric gw__c_arg1;
query_compare_t gw__c_arg2;
QueryOp gw__c_arg3;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;
}
/* 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_query_compare_how__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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
gw__scm_arg3 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg3);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else gw__c_arg3 = gh_scm2long(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;
xaccQueryAddSharesMatch (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:
  /* 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__tmp431_xaccQueryAddSharesMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp433_xaccQueryAddValueMatch_namestr = "gnc:query-add-value-match";
static SCM gw__tmp432_xaccQueryAddValueMatch_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4 ) {
  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;

Query * gw__c_arg0;
gnc_numeric gw__c_arg1;
numeric_match_t gw__c_arg2;
query_compare_t gw__c_arg3;
QueryOp gw__c_arg4;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;
}
/* 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_numeric_match_how__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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
gw__scm_arg3 = gh_call1(gw__enum__gnc_query_compare_how__val_to_int_scm_func, gw__scm_arg3);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else gw__c_arg3 = gh_scm2long(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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
gw__scm_arg4 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg4);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else gw__c_arg4 = gh_scm2long(gw__scm_arg4);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
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_4;
SCM_DEFER_INTS;
xaccQueryAddValueMatch (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  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:
  /* 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__tmp433_xaccQueryAddValueMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp435_xaccQueryAddDateMatch_namestr = "gnc:query-add-date-match";
static SCM gw__tmp434_xaccQueryAddDateMatch_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4, SCM gw__scm_arg5, SCM gw__scm_arg6, SCM gw__scm_arg7, SCM gw__scm_arg8, SCM gw__restargs ) {
  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__scm_extras[1];

Query * gw__c_arg0;
int gw__c_arg1;
int gw__c_arg2;
int gw__c_arg3;
int gw__c_arg4;
int gw__c_arg5;
int gw__c_arg6;
int gw__c_arg7;
int gw__c_arg8;
QueryOp gw__c_arg9;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg4, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg4, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else {gw__c_arg4= gh_scm2long(gw__scm_arg4);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
/* ARG 5 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_4;

{
if (!(1)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg5;
   goto gw__post_call_arg_5;
}
else {gw__c_arg5= SCM_NFALSEP(gw__scm_arg5);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg5;
   goto gw__post_call_arg_5;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg5;
   goto gw__post_call_arg_5;
}
/* ARG 6 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_5;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg6))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg6;
   goto gw__post_call_arg_6;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg6, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg6, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg6;
   goto gw__post_call_arg_6;
}
else {gw__c_arg6= gh_scm2long(gw__scm_arg6);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg6;
   goto gw__post_call_arg_6;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg6;
   goto gw__post_call_arg_6;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg6;
   goto gw__post_call_arg_6;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg6;
   goto gw__post_call_arg_6;
}
/* ARG 7 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_6;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg7))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg7;
   goto gw__post_call_arg_7;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg7, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg7, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg7;
   goto gw__post_call_arg_7;
}
else {gw__c_arg7= gh_scm2long(gw__scm_arg7);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg7;
   goto gw__post_call_arg_7;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg7;
   goto gw__post_call_arg_7;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg7;
   goto gw__post_call_arg_7;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg7;
   goto gw__post_call_arg_7;
}
/* ARG 8 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_7;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg8))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg8;
   goto gw__post_call_arg_8;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg8, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg8, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg8;
   goto gw__post_call_arg_8;
}
else {gw__c_arg8= gh_scm2long(gw__scm_arg8);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg8;
   goto gw__post_call_arg_8;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg8;
   goto gw__post_call_arg_8;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg8;
   goto gw__post_call_arg_8;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg8;
   goto gw__post_call_arg_8;
}
/* ARG 9 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_8;

{
gw__scm_extras[0] = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_extras[0]);
if(SCM_FALSEP(scm_integer_p(gw__scm_extras[0]))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_extras[0];
   goto gw__post_call_arg_9;
}
else gw__c_arg9 = gh_scm2long(gw__scm_extras[0]);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_extras[0];
   goto gw__post_call_arg_9;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_extras[0];
   goto gw__post_call_arg_9;
}
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_9;
SCM_DEFER_INTS;
xaccQueryAddDateMatch (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4, gw__c_arg5, gw__c_arg6, gw__c_arg7, gw__c_arg8, gw__c_arg9);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_9:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_8:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_7:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_6:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_5:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  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:
  /* 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__tmp435_xaccQueryAddDateMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp437_xaccQueryAddDateMatchTS_namestr = "gnc:query-add-date-match-timepair";
static SCM gw__tmp436_xaccQueryAddDateMatchTS_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4, SCM gw__scm_arg5 ) {
  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;

Query * gw__c_arg0;
int gw__c_arg1;
Timespec gw__c_arg2;
int gw__c_arg3;
Timespec gw__c_arg4;
QueryOp gw__c_arg5;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(gnc_timepair_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 = gnc_timepair2timespec(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;
}
/* 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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
if (!(gnc_timepair_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else {gw__c_arg4 = gnc_timepair2timespec(gw__scm_arg4);
}if ((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if ((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
/* ARG 5 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_4;

{
gw__scm_arg5 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg5);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg5))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg5;
   goto gw__post_call_arg_5;
}
else gw__c_arg5 = gh_scm2long(gw__scm_arg5);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg5;
   goto gw__post_call_arg_5;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg5;
   goto gw__post_call_arg_5;
}
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_5;
SCM_DEFER_INTS;
xaccQueryAddDateMatchTS (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4, gw__c_arg5);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_5:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  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:
  /* 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__tmp437_xaccQueryAddDateMatchTS_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp439_xaccQueryAddMemoMatch_namestr = "gnc:query-add-memo-match";
static SCM gw__tmp438_xaccQueryAddMemoMatch_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4 ) {
  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;

Query * gw__c_arg0;
const char * gw__c_arg1;
int gw__c_arg2;
int gw__c_arg3;
QueryOp gw__c_arg4;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
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(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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
gw__scm_arg4 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg4);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else gw__c_arg4 = gh_scm2long(gw__scm_arg4);
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
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_4;
SCM_DEFER_INTS;
xaccQueryAddMemoMatch (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  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:
  /* 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__tmp439_xaccQueryAddMemoMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp441_xaccQueryAddClearedMatch_namestr = "gnc:query-add-cleared-match";
static SCM gw__tmp440_xaccQueryAddClearedMatch_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;

Query * gw__c_arg0;
cleared_match_t gw__c_arg1;
QueryOp gw__c_arg2;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
gw__scm_arg1 = gh_call1(gw__enum__gnc_cleared_match_how__val_to_int_scm_func, gw__scm_arg1);
if(SCM_FALSEP(scm_integer_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 = gh_scm2long(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_query_op__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;
xaccQueryAddClearedMatch (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__tmp441_xaccQueryAddClearedMatch_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp443_xaccQueryAddGUIDMatchGL_namestr = "gnc:query-add-guid-match";
static SCM gw__tmp442_xaccQueryAddGUIDMatchGL_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;

Query * gw__c_arg0;
GList* gw__c_arg1;
GUID gw__c_arg2;
QueryOp gw__c_arg3;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
{
  SCM gw__tmp646_scm_rest = gw__scm_arg1;
  gw__c_arg1= NULL;
  while(!SCM_NULLP(gw__tmp646_scm_rest)
        && (! (gw__error_status != GW__ERR_NONE)))
  {
    GNCIdType gw__tmp647_c_item;
    SCM gw__tmp648_scm_item = SCM_CAR(gw__tmp646_scm_rest);

if(!(SCM_FALSEP(gw__tmp648_scm_item) || gw_wcp_is_of_type_p(gw__tmp16_wct_info_for__gnc_id_type_, gw__tmp648_scm_item))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__tmp648_scm_item;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__tmp648_scm_item)) gw__tmp647_c_item = NULL;
else gw__tmp647_c_item = gw_wcp_get_ptr(gw__tmp648_scm_item);
}

    if(! (gw__error_status != GW__ERR_NONE) )
    {
       gw__c_arg1 = g_list_prepend (gw__c_arg1, (gpointer)gw__tmp647_c_item);
    }
    gw__tmp646_scm_rest = SCM_CDR (gw__tmp646_scm_rest);
  }
  if(!(gw__error_status != GW__ERR_NONE))
  {
    gw__c_arg1 = g_list_reverse(gw__c_arg1);
  }
  else
  {
    GList * gw__tmp649_cursor = gw__c_arg1;
    while(gw__tmp649_cursor)
    {
      GNCIdType gw__tmp647_c_item;
      gw__tmp647_c_item = ( GNCIdType) gw__tmp649_cursor->data;
gw__tmp649_cursor = gw__tmp649_cursor->next;
    }
    g_list_free(gw__c_arg1);
    gw__c_arg1 = NULL;
  }
}
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 (!(gnc_guid_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 = gnc_scm2guid(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
gw__scm_arg3 = gh_call1(gw__enum__gnc_query_op__val_to_int_scm_func, gw__scm_arg3);
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else gw__c_arg3 = gh_scm2long(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;
xaccQueryAddGUIDMatchGL (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:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
{
{
  GList * gw__tmp651_cursor = gw__c_arg1;
  while(gw__tmp651_cursor)
  {
    GNCIdType gw__tmp650_c_item;
    gw__tmp650_c_item = ( GNCIdType) gw__tmp651_cursor->data;
gw__tmp651_cursor = gw__tmp651_cursor->next;
  }
}
}
  { /* 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__tmp443_xaccQueryAddGUIDMatchGL_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp445_xaccQuerySetSortOrder_namestr = "gnc:query-set-sort-order";
static SCM gw__tmp444_xaccQuerySetSortOrder_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;

Query * gw__c_arg0;
GList* gw__c_arg1;
GList* gw__c_arg2;
GList* gw__c_arg3;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;

{
{
  SCM gw__tmp652_scm_rest = gw__scm_arg1;
  gw__c_arg1= NULL;
  while(!SCM_NULLP(gw__tmp652_scm_rest)
        && (! (gw__error_status != GW__ERR_NONE)))
  {
    GNCIdType gw__tmp653_c_item;
    SCM gw__tmp654_scm_item = SCM_CAR(gw__tmp652_scm_rest);

if(!(SCM_FALSEP(gw__tmp654_scm_item) || gw_wcp_is_of_type_p(gw__tmp16_wct_info_for__gnc_id_type_, gw__tmp654_scm_item))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__tmp654_scm_item;
   goto gw__post_call_arg_1;
}
else {if(SCM_FALSEP(gw__tmp654_scm_item)) gw__tmp653_c_item = NULL;
else gw__tmp653_c_item = gw_wcp_get_ptr(gw__tmp654_scm_item);
}

    if(! (gw__error_status != GW__ERR_NONE) )
    {
       gw__c_arg1 = g_list_prepend (gw__c_arg1, (gpointer)gw__tmp653_c_item);
    }
    gw__tmp652_scm_rest = SCM_CDR (gw__tmp652_scm_rest);
  }
  if(!(gw__error_status != GW__ERR_NONE))
  {
    gw__c_arg1 = g_list_reverse(gw__c_arg1);
  }
  else
  {
    GList * gw__tmp655_cursor = gw__c_arg1;
    while(gw__tmp655_cursor)
    {
      GNCIdType gw__tmp653_c_item;
      gw__tmp653_c_item = ( GNCIdType) gw__tmp655_cursor->data;
gw__tmp655_cursor = gw__tmp655_cursor->next;
    }
    g_list_free(gw__c_arg1);
    gw__c_arg1 = NULL;
  }
}
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;

{
{
  SCM gw__tmp656_scm_rest = gw__scm_arg2;
  gw__c_arg2= NULL;
  while(!SCM_NULLP(gw__tmp656_scm_rest)
        && (! (gw__error_status != GW__ERR_NONE)))
  {
    GNCIdType gw__tmp657_c_item;
    SCM gw__tmp658_scm_item = SCM_CAR(gw__tmp656_scm_rest);

if(!(SCM_FALSEP(gw__tmp658_scm_item) || gw_wcp_is_of_type_p(gw__tmp16_wct_info_for__gnc_id_type_, gw__tmp658_scm_item))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__tmp658_scm_item;
   goto gw__post_call_arg_2;
}
else {if(SCM_FALSEP(gw__tmp658_scm_item)) gw__tmp657_c_item = NULL;
else gw__tmp657_c_item = gw_wcp_get_ptr(gw__tmp658_scm_item);
}

    if(! (gw__error_status != GW__ERR_NONE) )
    {
       gw__c_arg2 = g_list_prepend (gw__c_arg2, (gpointer)gw__tmp657_c_item);
    }
    gw__tmp656_scm_rest = SCM_CDR (gw__tmp656_scm_rest);
  }
  if(!(gw__error_status != GW__ERR_NONE))
  {
    gw__c_arg2 = g_list_reverse(gw__c_arg2);
  }
  else
  {
    GList * gw__tmp659_cursor = gw__c_arg2;
    while(gw__tmp659_cursor)
    {
      GNCIdType gw__tmp657_c_item;
      gw__tmp657_c_item = ( GNCIdType) gw__tmp659_cursor->data;
gw__tmp659_cursor = gw__tmp659_cursor->next;
    }
    g_list_free(gw__c_arg2);
    gw__c_arg2 = NULL;
  }
}
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;

{
{
  SCM gw__tmp660_scm_rest = gw__scm_arg3;
  gw__c_arg3= NULL;
  while(!SCM_NULLP(gw__tmp660_scm_rest)
        && (! (gw__error_status != GW__ERR_NONE)))
  {
    GNCIdType gw__tmp661_c_item;
    SCM gw__tmp662_scm_item = SCM_CAR(gw__tmp660_scm_rest);

if(!(SCM_FALSEP(gw__tmp662_scm_item) || gw_wcp_is_of_type_p(gw__tmp16_wct_info_for__gnc_id_type_, gw__tmp662_scm_item))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__tmp662_scm_item;
   goto gw__post_call_arg_3;
}
else {if(SCM_FALSEP(gw__tmp662_scm_item)) gw__tmp661_c_item = NULL;
else gw__tmp661_c_item = gw_wcp_get_ptr(gw__tmp662_scm_item);
}

    if(! (gw__error_status != GW__ERR_NONE) )
    {
       gw__c_arg3 = g_list_prepend (gw__c_arg3, (gpointer)gw__tmp661_c_item);
    }
    gw__tmp660_scm_rest = SCM_CDR (gw__tmp660_scm_rest);
  }
  if(!(gw__error_status != GW__ERR_NONE))
  {
    gw__c_arg3 = g_list_reverse(gw__c_arg3);
  }
  else
  {
    GList * gw__tmp663_cursor = gw__c_arg3;
    while(gw__tmp663_cursor)
    {
      GNCIdType gw__tmp661_c_item;
      gw__tmp661_c_item = ( GNCIdType) gw__tmp663_cursor->data;
gw__tmp663_cursor = gw__tmp663_cursor->next;
    }
    g_list_free(gw__c_arg3);
    gw__c_arg3 = NULL;
  }
}
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;
xaccQuerySetSortOrder (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:
{
{
  GList * gw__tmp665_cursor = gw__c_arg3;
  while(gw__tmp665_cursor)
  {
    GNCIdType gw__tmp664_c_item;
    gw__tmp664_c_item = ( GNCIdType) gw__tmp665_cursor->data;
gw__tmp665_cursor = gw__tmp665_cursor->next;
  }
}
}
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_2:
{
{
  GList * gw__tmp667_cursor = gw__c_arg2;
  while(gw__tmp667_cursor)
  {
    GNCIdType gw__tmp666_c_item;
    gw__tmp666_c_item = ( GNCIdType) gw__tmp667_cursor->data;
gw__tmp667_cursor = gw__tmp667_cursor->next;
  }
}
}
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_1:
{
{
  GList * gw__tmp669_cursor = gw__c_arg1;
  while(gw__tmp669_cursor)
  {
    GNCIdType gw__tmp668_c_item;
    gw__tmp668_c_item = ( GNCIdType) gw__tmp669_cursor->data;
gw__tmp669_cursor = gw__tmp669_cursor->next;
  }
}
}
  { /* 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__tmp445_xaccQuerySetSortOrder_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp447_xaccQuerySetSortIncreasing_namestr = "gnc:query-set-sort-increasing";
static SCM gw__tmp446_xaccQuerySetSortIncreasing_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;

Query * gw__c_arg0;
int gw__c_arg1;
int gw__c_arg2;
int gw__c_arg3;
/* 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__tmp29_wct_info_for__gnc_Query__, 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;
}
/* 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;
}
/* 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;
xaccQuerySetSortIncreasing (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:
  /* 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__tmp447_xaccQuerySetSortIncreasing_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp449_gncQuerySetMaxResults_namestr = "gnc:query-set-max-results";
static SCM gw__tmp448_gncQuerySetMaxResults_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;

Query * 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__tmp29_wct_info_for__gnc_Query__, 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(scm_integer_p(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(scm_geq_p(gw__scm_arg1, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg1, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg1;
   goto gw__post_call_arg_1;
}
else {gw__c_arg1= gh_scm2long(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_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;
gncQuerySetMaxResults (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__tmp449_gncQuerySetMaxResults_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp451_gnc_query2scm_namestr = "gnc:query->scm";
static SCM gw__tmp450_gnc_query2scm_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_result;

Query * 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__tmp29_wct_info_for__gnc_Query__, 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_query2scm (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = 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__tmp451_gnc_query2scm_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp453_gnc_scm2query_namestr = "gnc:scm->query";
static SCM gw__tmp452_gnc_scm2query_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;
Query * 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_scm2query (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__tmp29_wct_info_for__gnc_Query__);
}
}
  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__tmp453_gnc_scm2query_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp455_gnc_commodity_new_namestr = "gnc:commodity-create";
static SCM gw__tmp454_gnc_commodity_new_wrapper  (SCM gw__scm_arg0, SCM gw__scm_arg1, SCM gw__scm_arg2, SCM gw__scm_arg3, SCM gw__scm_arg4 ) {
  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;

const char * gw__c_arg0;
const char * gw__c_arg1;
const char * gw__c_arg2;
const char * gw__c_arg3;
int gw__c_arg4;
/* 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;

{
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;

{
gw__c_arg3 = NULL;

if(SCM_FALSEP(gw__scm_arg3))
  gw__c_arg3 = NULL;
else if(SCM_STRINGP(gw__scm_arg3))
  gw__c_arg3 = gh_scm2newstr(gw__scm_arg3, NULL);
else
{
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
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;
}
/* ARG 4 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_3;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg4))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg4, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg4, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else {gw__c_arg4= gh_scm2long(gw__scm_arg4);
}

if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
if((gw__error_status == GW__ERR_TYPE)){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
else if((gw__error_status == GW__ERR_RANGE)){
   gw__error_status = GW__ERR_ARG_RANGE;
    gw__error_data = gw__scm_arg4;
   goto gw__post_call_arg_4;
}
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_4;
SCM_DEFER_INTS;
gw__c_result = gnc_commodity_new (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3, gw__c_arg4);
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__tmp27_wct_info_for__gnc_commodity__);
}
}
  gw__post_call_arg_4:
  /* no post-call arg code requested! */
  { /* shut up warnings if no code */ int x = x; }
}
  gw__post_call_arg_3:
{
if(gw__c_arg3) free((void *) gw__c_arg3);
}
  { /* 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:
{
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__tmp455_gnc_commodity_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp457_gnc_commodity_destroy_namestr = "gnc:commodity-destroy";
static SCM gw__tmp456_gnc_commodity_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;

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__tmp27_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;
gnc_commodity_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__tmp457_gnc_commodity_destroy_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp459_gnc_commodity_get_mnemonic_namestr = "gnc:commodity-get-mnemonic";
static SCM gw__tmp458_gnc_commodity_get_mnemonic_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;

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__tmp27_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_commodity_get_mnemonic (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:
  /* 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__tmp459_gnc_commodity_get_mnemonic_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp461_gnc_commodity_get_namespace_namestr = "gnc:commodity-get-namespace";
static SCM gw__tmp460_gnc_commodity_get_namespace_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;

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__tmp27_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_commodity_get_namespace (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:
  /* 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__tmp461_gnc_commodity_get_namespace_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp463_gnc_commodity_get_printname_namestr = "gnc:commodity-get-printname";
static SCM gw__tmp462_gnc_commodity_get_printname_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;

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__tmp27_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_commodity_get_printname (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:
  /* 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__tmp463_gnc_commodity_get_printname_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp465_gnc_commodity_get_fullname_namestr = "gnc:commodity-get-fullname";
static SCM gw__tmp464_gnc_commodity_get_fullname_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;

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__tmp27_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_commodity_get_fullname (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:
  /* 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__tmp465_gnc_commodity_get_fullname_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp467_gnc_commodity_get_exchange_code_namestr = "gnc:commodity-get-exchange-code";
static SCM gw__tmp466_gnc_commodity_get_exchange_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;
const char * 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__tmp27_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_commodity_get_exchange_code (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:
  /* 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__tmp467_gnc_commodity_get_exchange_code_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp469_gnc_commodity_get_fraction_namestr = "gnc:commodity-get-fraction";
static SCM gw__tmp468_gnc_commodity_get_fraction_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__tmp27_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_commodity_get_fraction (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp469_gnc_commodity_get_fraction_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp471_gnc_commodity_equiv_namestr = "gnc:commodity-equiv?";
static SCM gw__tmp470_gnc_commodity_equiv_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_result;

gnc_commodity* gw__c_arg0;
gnc_commodity* 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__tmp27_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(!(SCM_FALSEP(gw__scm_arg1) || gw_wcp_is_of_type_p(gw__tmp27_wct_info_for__gnc_commodity__, 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;
gw__c_result = gnc_commodity_equiv (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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__tmp471_gnc_commodity_equiv_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp473_gnc_commodity_table_new_namestr = "gnc:commodity-table-new";
static SCM gw__tmp472_gnc_commodity_table_new_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_table* 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_commodity_table_new ();
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__tmp28_wct_info_for__gnc_commodity_table__);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp473_gnc_commodity_table_new_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp475_gnc_commodity_table_lookup_namestr = "gnc:commodity-table-lookup";
static SCM gw__tmp474_gnc_commodity_table_lookup_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;
gnc_commodity* gw__c_result;

gnc_commodity_table* gw__c_arg0;
const char * gw__c_arg1;
const char * gw__c_arg2;
/* 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__tmp28_wct_info_for__gnc_commodity_table__, 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;

{
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;
}
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_commodity_table_lookup (gw__c_arg0, gw__c_arg1, gw__c_arg2);
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__tmp27_wct_info_for__gnc_commodity__);
}
}
  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__tmp475_gnc_commodity_table_lookup_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp477_gnc_commodity_table_find_full_namestr = "gnc:commodity-table-find-full";
static SCM gw__tmp476_gnc_commodity_table_find_full_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;
gnc_commodity* gw__c_result;

gnc_commodity_table* gw__c_arg0;
const char * gw__c_arg1;
const char * gw__c_arg2;
/* 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__tmp28_wct_info_for__gnc_commodity_table__, 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;

{
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;
}
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_commodity_table_find_full (gw__c_arg0, gw__c_arg1, gw__c_arg2);
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__tmp27_wct_info_for__gnc_commodity__);
}
}
  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__tmp477_gnc_commodity_table_find_full_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp479_gnc_commodity_table_insert_namestr = "gnc:commodity-table-insert";
static SCM gw__tmp478_gnc_commodity_table_insert_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_commodity* gw__c_result;

gnc_commodity_table* gw__c_arg0;
gnc_commodity* 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__tmp28_wct_info_for__gnc_commodity_table__, 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__tmp27_wct_info_for__gnc_commodity__, 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;
gw__c_result = gnc_commodity_table_insert (gw__c_arg0, gw__c_arg1);
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__tmp27_wct_info_for__gnc_commodity__);
}
}
  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__tmp479_gnc_commodity_table_insert_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp481_gnc_commodity_table_has_namespace_namestr = "gnc:commodity-table-has-namespace";
static SCM gw__tmp480_gnc_commodity_table_has_namespace_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_result;

gnc_commodity_table* gw__c_arg0;
const char * 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__tmp28_wct_info_for__gnc_commodity_table__, 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;

{
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;
}
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_table_has_namespace (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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__tmp481_gnc_commodity_table_has_namespace_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp483_gnc_commodity_table_get_namespaces_namestr = "gnc:commodity-table-get-namespaces";
static SCM gw__tmp482_gnc_commodity_table_get_namespaces_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_result;

gnc_commodity_table* 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__tmp28_wct_info_for__gnc_commodity_table__, 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_commodity_table_get_namespaces (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp670_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp670_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  char * gw__tmp671_c_item;
  SCM gw__tmp672_scm_item;

  gw__tmp671_c_item = ( char *) gw__tmp670_c_rest->data;

  /* we coerce to (char *) here b/c broken guile 1.3.4 prototype */
if(gw__tmp671_c_item == NULL) gw__tmp672_scm_item = SCM_BOOL_F;
else gw__tmp672_scm_item = gh_str02scm((char *) gw__tmp671_c_item);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp672_scm_item, gw__scm_result);
  }
  gw__tmp670_c_rest = gw__tmp670_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp674_cursor = gw__c_result;
  while(gw__tmp674_cursor)
  {
    char * gw__tmp673_c_item;
    gw__tmp673_c_item = ( char *) gw__tmp674_cursor->data;
gw__tmp674_cursor = gw__tmp674_cursor->next;
  }
}
}
}
  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__tmp483_gnc_commodity_table_get_namespaces_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp485_gnc_commodity_table_add_namespace_namestr = "gnc:commodity-table-add-namespace";
static SCM gw__tmp484_gnc_commodity_table_add_namespace_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_commodity_table* gw__c_arg0;
const char * 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__tmp28_wct_info_for__gnc_commodity_table__, 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;

{
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;
}
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;
gnc_commodity_table_add_namespace (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp485_gnc_commodity_table_add_namespace_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp487_gnc_commodity_table_delete_namespace_namestr = "gnc:commodity-table-delete-namespace";
static SCM gw__tmp486_gnc_commodity_table_delete_namespace_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_commodity_table* gw__c_arg0;
const char * 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__tmp28_wct_info_for__gnc_commodity_table__, 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;

{
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;
}
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;
gnc_commodity_table_delete_namespace (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result = SCM_UNSPECIFIED;
}
}
  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__tmp487_gnc_commodity_table_delete_namespace_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp489_gnc_commodity_table_get_commodities_namestr = "gnc:commodity-table-get-commodities";
static SCM gw__tmp488_gnc_commodity_table_get_commodities_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;
GList* gw__c_result;

gnc_commodity_table* gw__c_arg0;
const char * 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__tmp28_wct_info_for__gnc_commodity_table__, 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;

{
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;
}
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_table_get_commodities (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
GList * gw__tmp675_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp675_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  gnc_commodity* gw__tmp676_c_item;
  SCM gw__tmp677_scm_item;

  gw__tmp676_c_item = ( gnc_commodity*) gw__tmp675_c_rest->data;

if(gw__tmp676_c_item == NULL) gw__tmp677_scm_item = SCM_BOOL_F;
else gw__tmp677_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp676_c_item, gw__tmp27_wct_info_for__gnc_commodity__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp677_scm_item, gw__scm_result);
  }
  gw__tmp675_c_rest = gw__tmp675_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp679_cursor = gw__c_result;
  while(gw__tmp679_cursor)
  {
    gnc_commodity* gw__tmp678_c_item;
    gw__tmp678_c_item = ( gnc_commodity*) gw__tmp679_cursor->data;
gw__tmp679_cursor = gw__tmp679_cursor->next;
  }
  if(gw__c_result)
  {
    g_list_free(gw__c_result);
    gw__c_result = NULL;
  }
}
}
}
  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__tmp489_gnc_commodity_table_get_commodities_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp491_gnc_commodity_table_add_default_data_namestr = "gnc:commodity-table-add-default-data";
static SCM gw__tmp490_gnc_commodity_table_add_default_data_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_table* 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__tmp28_wct_info_for__gnc_commodity_table__, 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_commodity_table_add_default_data (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__tmp491_gnc_commodity_table_add_default_data_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp493_gnc_engine_shutdown_namestr = "gnc:engine-shutdown";
static SCM gw__tmp492_gnc_engine_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_engine_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__tmp493_gnc_engine_shutdown_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp495_gnc_numeric_create_namestr = "gnc:numeric-create";
static SCM gw__tmp494_gnc_numeric_create_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;

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

{
if (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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 (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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_numeric_create (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__tmp495_gnc_numeric_create_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp497_gnc_numeric_zero_namestr = "gnc:numeric-zero";
static SCM gw__tmp496_gnc_numeric_zero_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_numeric 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_numeric_zero ();
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
 gw__wrapper_exit:
  if(gw__error_status != GW__ERR_NONE)
    gw__handle_wrapper_error(gw__error_status,
                             gw__tmp497_gnc_numeric_zero_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp499_gnc_numeric_error_namestr = "gnc:numeric-error";
static SCM gw__tmp498_gnc_numeric_error_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;

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_numeric_error (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__tmp499_gnc_numeric_error_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp501_gnc_numeric_check_namestr = "gnc:numeric-check";
static SCM gw__tmp500_gnc_numeric_check_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_numeric gw__c_arg0;
/* 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;
}
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_numeric_check (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp501_gnc_numeric_check_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp503_gnc_numeric_num_namestr = "gnc:numeric-num";
static SCM gw__tmp502_gnc_numeric_num_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;
gint64 gw__c_result;

gnc_numeric gw__c_arg0;
/* 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;
}
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_numeric_num (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gw_glib_gint64_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__tmp503_gnc_numeric_num_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp505_gnc_numeric_denom_namestr = "gnc:numeric-denom";
static SCM gw__tmp504_gnc_numeric_denom_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;
gint64 gw__c_result;

gnc_numeric gw__c_arg0;
/* 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;
}
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_numeric_denom (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gw_glib_gint64_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__tmp505_gnc_numeric_denom_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp507_gnc_numeric_zero_p_namestr = "gnc:numeric-zero-p";
static SCM gw__tmp506_gnc_numeric_zero_p_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_numeric gw__c_arg0;
/* 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;
}
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_numeric_zero_p (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__tmp507_gnc_numeric_zero_p_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp509_gnc_numeric_compare_namestr = "gnc:numeric-compare";
static SCM gw__tmp508_gnc_numeric_compare_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_result;

gnc_numeric 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 (!(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_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_numeric_compare (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_long2scm(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__tmp509_gnc_numeric_compare_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp511_gnc_numeric_negative_p_namestr = "gnc:numeric-negative-p";
static SCM gw__tmp510_gnc_numeric_negative_p_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_numeric gw__c_arg0;
/* 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;
}
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_numeric_negative_p (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__tmp511_gnc_numeric_negative_p_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp513_gnc_numeric_positive_p_namestr = "gnc:numeric-positive-p";
static SCM gw__tmp512_gnc_numeric_positive_p_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_numeric gw__c_arg0;
/* 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;
}
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_numeric_positive_p (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__tmp513_gnc_numeric_positive_p_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp515_gnc_numeric_eq_namestr = "gnc:numeric-eq";
static SCM gw__tmp514_gnc_numeric_eq_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_result;

gnc_numeric 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 (!(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_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_numeric_eq (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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__tmp515_gnc_numeric_eq_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp517_gnc_numeric_equal_namestr = "gnc:numeric-equal";
static SCM gw__tmp516_gnc_numeric_equal_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_result;

gnc_numeric 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 (!(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_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_numeric_equal (gw__c_arg0, gw__c_arg1);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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__tmp517_gnc_numeric_equal_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp519_gnc_numeric_same_namestr = "gnc:numeric-same";
static SCM gw__tmp518_gnc_numeric_same_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;
int gw__c_result;

gnc_numeric gw__c_arg0;
gnc_numeric gw__c_arg1;
gint64 gw__c_arg2;
int gw__c_arg3;
/* 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_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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
gw__c_result = gnc_numeric_same (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
gw__scm_result= (gw__c_result) ? SCM_BOOL_T : SCM_BOOL_F;
}
}
  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:
  /* 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__tmp519_gnc_numeric_same_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp521_gnc_numeric_add_namestr = "gnc:numeric-add";
static SCM gw__tmp520_gnc_numeric_add_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;
gnc_numeric gw__c_result;

gnc_numeric gw__c_arg0;
gnc_numeric gw__c_arg1;
gint64 gw__c_arg2;
int gw__c_arg3;
/* 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_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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
gw__c_result = gnc_numeric_add (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  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:
  /* 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__tmp521_gnc_numeric_add_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp523_gnc_numeric_sub_namestr = "gnc:numeric-sub";
static SCM gw__tmp522_gnc_numeric_sub_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;
gnc_numeric gw__c_result;

gnc_numeric gw__c_arg0;
gnc_numeric gw__c_arg1;
gint64 gw__c_arg2;
int gw__c_arg3;
/* 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_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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
gw__c_result = gnc_numeric_sub (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  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:
  /* 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__tmp523_gnc_numeric_sub_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp525_gnc_numeric_mul_namestr = "gnc:numeric-mul";
static SCM gw__tmp524_gnc_numeric_mul_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;
gnc_numeric gw__c_result;

gnc_numeric gw__c_arg0;
gnc_numeric gw__c_arg1;
gint64 gw__c_arg2;
int gw__c_arg3;
/* 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_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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
gw__c_result = gnc_numeric_mul (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  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:
  /* 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__tmp525_gnc_numeric_mul_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp527_gnc_numeric_div_namestr = "gnc:numeric-div";
static SCM gw__tmp526_gnc_numeric_div_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;
gnc_numeric gw__c_result;

gnc_numeric gw__c_arg0;
gnc_numeric gw__c_arg1;
gint64 gw__c_arg2;
int gw__c_arg3;
/* 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_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;
}
/* ARG 2 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_1;

{
if (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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;
}
/* ARG 3 */
gw__arg_pos++;
if (gw__error_status != GW__ERR_NONE) goto gw__post_call_arg_2;

{
if(SCM_FALSEP(scm_integer_p(gw__scm_arg3))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else if(SCM_FALSEP(scm_geq_p(gw__scm_arg3, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg3, gw__tmp1_range_maxval_gw_int_))){
   gw__error_status = GW__ERR_ARG_TYPE;
    gw__error_data = gw__scm_arg3;
   goto gw__post_call_arg_3;
}
else {gw__c_arg3= gh_scm2long(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_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;
gw__c_result = gnc_numeric_div (gw__c_arg0, gw__c_arg1, gw__c_arg2, gw__c_arg3);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(gw__c_result);
}
}
  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:
  /* 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__tmp527_gnc_numeric_div_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp529_gnc_numeric_neg_namestr = "gnc:numeric-neg";
static SCM gw__tmp528_gnc_numeric_neg_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_numeric gw__c_arg0;
/* 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;
}
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_numeric_neg (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__tmp529_gnc_numeric_neg_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp531_gnc_numeric_abs_namestr = "gnc:numeric-abs";
static SCM gw__tmp530_gnc_numeric_abs_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_numeric gw__c_arg0;
/* 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;
}
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_numeric_abs (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__tmp531_gnc_numeric_abs_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp533_gnc_numeric_add_fixed_namestr = "gnc:numeric-add-fixed";
static SCM gw__tmp532_gnc_numeric_add_fixed_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_numeric 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 (!(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_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_numeric_add_fixed (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__tmp533_gnc_numeric_add_fixed_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp535_gnc_numeric_sub_fixed_namestr = "gnc:numeric-sub-fixed";
static SCM gw__tmp534_gnc_numeric_sub_fixed_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_numeric 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 (!(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_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_numeric_sub_fixed (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__tmp535_gnc_numeric_sub_fixed_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp537_gnc_numeric_convert_namestr = "gnc:numeric-convert";
static SCM gw__tmp536_gnc_numeric_convert_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;
gnc_numeric gw__c_result;

gnc_numeric gw__c_arg0;
gint64 gw__c_arg1;
int gw__c_arg2;
/* 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 (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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(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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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_numeric_convert (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(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:
  /* 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__tmp537_gnc_numeric_convert_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp539_double_to_gnc_numeric_namestr = "gnc:double-to-gnc-numeric";
static SCM gw__tmp538_double_to_gnc_numeric_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;
gnc_numeric gw__c_result;

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

{
if (!(SCM_NFALSEP(scm_number_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= gh_scm2double(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 (!(gw_glib_gint64_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 = gw_glib_scm_to_gint64(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(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 if(SCM_FALSEP(scm_geq_p(gw__scm_arg2, gw__tmp0_range_minval_gw_int_))        || SCM_FALSEP(scm_leq_p(gw__scm_arg2, gw__tmp1_range_maxval_gw_int_))){
   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_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 = double_to_gnc_numeric (gw__c_arg0, gw__c_arg1, gw__c_arg2);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_numeric_to_scm(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:
  /* 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__tmp539_double_to_gnc_numeric_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp541_gnc_numeric_to_double_namestr = "gnc:numeric-to-double";
static SCM gw__tmp540_gnc_numeric_to_double_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;
double gw__c_result;

gnc_numeric gw__c_arg0;
/* 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;
}
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_numeric_to_double (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result= gh_double2scm(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__tmp541_gnc_numeric_to_double_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp543_gnc_numeric_to_string_namestr = "gnc:numeric-to-string";
static SCM gw__tmp542_gnc_numeric_to_string_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;

gnc_numeric gw__c_arg0;
/* 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;
}
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_numeric_to_string (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__tmp543_gnc_numeric_to_string_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp545_gnc_run_rpc_server_namestr = "gnc:run-rpc-server";
static SCM gw__tmp544_gnc_run_rpc_server_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_run_rpc_server ();
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__tmp545_gnc_run_rpc_server_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp547_timespecCanonicalDayTime_namestr = "gnc:timepair-canonical-day-time";
static SCM gw__tmp546_timespecCanonicalDayTime_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;
Timespec gw__c_result;

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

{
if (!(gnc_timepair_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_timepair2timespec(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 = timespecCanonicalDayTime (gw__c_arg0);
SCM_ALLOW_INTS;
{
gw__scm_result = gnc_timespec2timepair(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__tmp547_timespecCanonicalDayTime_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp549_gnc_lot_get_balance_namestr = "gnc:lot-get-balance";
static SCM gw__tmp548_gnc_lot_get_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;
gnc_numeric gw__c_result;

GNCLot* 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__tmp23_wct_info_for__gnc_Lot__, 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_lot_get_balance (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__tmp549_gnc_lot_get_balance_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp551_gnc_lot_is_closed_namestr = "gnc:lot-closed?";
static SCM gw__tmp550_gnc_lot_is_closed_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;

GNCLot* 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__tmp23_wct_info_for__gnc_Lot__, 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_lot_is_closed (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__tmp551_gnc_lot_is_closed_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp553_gnc_lot_get_split_list_namestr = "gnc:lot-get-splits";
static SCM gw__tmp552_gnc_lot_get_split_list_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_result;

GNCLot* 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__tmp23_wct_info_for__gnc_Lot__, 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_lot_get_split_list (gw__c_arg0);
SCM_ALLOW_INTS;
{
GList * gw__tmp680_c_rest = gw__c_result;
gw__scm_result= SCM_EOL;
while(gw__tmp680_c_rest && (! (gw__error_status != GW__ERR_NONE)))
{
  Split* gw__tmp681_c_item;
  SCM gw__tmp682_scm_item;

  gw__tmp681_c_item = ( Split*) gw__tmp680_c_rest->data;

if(gw__tmp681_c_item == NULL) gw__tmp682_scm_item = SCM_BOOL_F;
else gw__tmp682_scm_item = gw_wcp_assimilate_ptr((void *) gw__tmp681_c_item, gw__tmp25_wct_info_for__gnc_Split__);

  if(! (gw__error_status != GW__ERR_NONE) )
  {
     gw__scm_result = scm_cons (gw__tmp682_scm_item, gw__scm_result);
  }
  gw__tmp680_c_rest = gw__tmp680_c_rest->next;
}
if(!(gw__error_status != GW__ERR_NONE))
{
  gw__scm_result = scm_reverse(gw__scm_result);
}
{
  GList * gw__tmp684_cursor = gw__c_result;
  while(gw__tmp684_cursor)
  {
    Split* gw__tmp683_c_item;
    gw__tmp683_c_item = ( Split*) gw__tmp684_cursor->data;
gw__tmp684_cursor = gw__tmp684_cursor->next;
  }
}
}
}
  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__tmp553_gnc_lot_get_split_list_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp555_gnc_engine_suspend_events_namestr = "gnc:engine-suspend-events";
static SCM gw__tmp554_gnc_engine_suspend_events_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_engine_suspend_events ();
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__tmp555_gnc_engine_suspend_events_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
static char * gw__tmp557_gnc_engine_resume_events_namestr = "gnc:engine-resume-events";
static SCM gw__tmp556_gnc_engine_resume_events_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_engine_resume_events ();
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__tmp557_gnc_engine_resume_events_namestr,
                             gw__arg_pos,
                             gw__error_misc_msg,
                             gw__error_data);
  return gw__scm_result;
}
void
gw_init_wrapset_gw_engine() {
  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-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__tmp685_status_var = GW__ERR_NONE;
   SCM gw__tmp687_err_data = SCM_UNSPECIFIED;
   char *gw__tmp686_err_misc_msg = NULL;
   (void) gw__tmp685_status_var;
   (void) gw__tmp687_err_data;
   (void) gw__tmp686_err_misc_msg;
gh_eval_str("(use-modules (gnucash engine))");
if (gw__tmp685_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp685_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp686_err_misc_msg,
                            gw__tmp687_err_data);
}
{
   enum GW__ErrorStatus gw__tmp688_err_status = GW__ERR_NONE;
   SCM gw__tmp690_err_data = SCM_UNSPECIFIED;
   char *gw__tmp689_err_misc_msg = NULL;
   (void) gw__tmp688_err_status;
   (void) gw__tmp690_err_data;
   (void) gw__tmp689_err_misc_msg;
gw__tmp2_range_maxval_gw_unsigned_int_ = scm_ulong2num(UINT_MAX);
scm_protect_object(gw__tmp2_range_maxval_gw_unsigned_int_);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_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__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp259_wct_info_for__gnc_Price__ = gw_wct_create("<gnc:Price*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Price*>", gw__tmp259_wct_info_for__gnc_Price__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp258_wct_info_for__gnc_PriceDB__ = gw_wct_create("<gnc:PriceDB*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:PriceDB*>", gw__tmp258_wct_info_for__gnc_PriceDB__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_BackendError__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:BackendError>-val->int",
                       gw__enum__gnc_BackendError__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_BackendError__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:BackendError>-val->sym",
                       gw__enum__gnc_BackendError__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_AccountType__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:AccountType>-val->int",
                       gw__enum__gnc_AccountType__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_AccountType__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:AccountType>-val->sym",
                       gw__enum__gnc_AccountType__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_kvp_value_t__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:kvp-value-t>-val->int",
                       gw__enum__gnc_kvp_value_t__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_kvp_value_t__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:kvp-value-t>-val->sym",
                       gw__enum__gnc_kvp_value_t__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_query_txn_match_t__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:query-txn-match-t>-val->int",
                       gw__enum__gnc_query_txn_match_t__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_query_txn_match_t__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:query-txn-match-t>-val->sym",
                       gw__enum__gnc_query_txn_match_t__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_char_match_how__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:char-match-how>-val->int",
                       gw__enum__gnc_char_match_how__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_char_match_how__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:char-match-how>-val->sym",
                       gw__enum__gnc_char_match_how__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_guid_match_how__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:guid-match-how>-val->int",
                       gw__enum__gnc_guid_match_how__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_guid_match_how__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:guid-match-how>-val->sym",
                       gw__enum__gnc_guid_match_how__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_cleared_match_how__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:cleared-match-how>-val->int",
                       gw__enum__gnc_cleared_match_how__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_cleared_match_how__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:cleared-match-how>-val->sym",
                       gw__enum__gnc_cleared_match_how__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_numeric_match_how__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:numeric-match-how>-val->int",
                       gw__enum__gnc_numeric_match_how__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_numeric_match_how__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:numeric-match-how>-val->sym",
                       gw__enum__gnc_numeric_match_how__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_date_match_how__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:date-match-how>-val->int",
                       gw__enum__gnc_date_match_how__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_date_match_how__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:date-match-how>-val->sym",
                       gw__enum__gnc_date_match_how__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_string_match_how__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:string-match-how>-val->int",
                       gw__enum__gnc_string_match_how__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_string_match_how__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:string-match-how>-val->sym",
                       gw__enum__gnc_string_match_how__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_query_compare_how__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:query-compare-how>-val->int",
                       gw__enum__gnc_query_compare_how__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_query_compare_how__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:query-compare-how>-val->sym",
                       gw__enum__gnc_query_compare_how__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_query_op__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:query-op>-val->int",
                       gw__enum__gnc_query_op__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_query_op__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:query-op>-val->sym",
                       gw__enum__gnc_query_op__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);

    gw__enum__gnc_event_type__val_to_int_scm_func =
      gh_new_procedure("gw:enum-<gnc:event-type>-val->int",
                       gw__enum__gnc_event_type__val_to_int,
                       1, 0, 0);
    gw__enum__gnc_event_type__val_to_sym_scm_func =
      gh_new_procedure("gw:enum-<gnc:event-type>-val->sym",
                       gw__enum__gnc_event_type__val_to_sym,
                       2, 0, 0);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp29_wct_info_for__gnc_Query__ = gw_wct_create("<gnc:Query*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Query*>", gw__tmp29_wct_info_for__gnc_Query__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp28_wct_info_for__gnc_commodity_table__ = gw_wct_create("<gnc:commodity-table*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:commodity-table*>", gw__tmp28_wct_info_for__gnc_commodity_table__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp27_wct_info_for__gnc_commodity__ = gw_wct_create("<gnc:commodity*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:commodity*>", gw__tmp27_wct_info_for__gnc_commodity__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp26_wct_info_for__gnc_Transaction__ = gw_wct_create("<gnc:Transaction*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Transaction*>", gw__tmp26_wct_info_for__gnc_Transaction__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp25_wct_info_for__gnc_Split__ = gw_wct_create("<gnc:Split*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Split*>", gw__tmp25_wct_info_for__gnc_Split__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp24_wct_info_for__gnc_Session__ = gw_wct_create("<gnc:Session*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Session*>", gw__tmp24_wct_info_for__gnc_Session__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp23_wct_info_for__gnc_Lot__ = gw_wct_create("<gnc:Lot*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Lot*>", gw__tmp23_wct_info_for__gnc_Lot__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp22_wct_info_for__gnc_Book__ = gw_wct_create("<gnc:Book*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Book*>", gw__tmp22_wct_info_for__gnc_Book__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp21_wct_info_for__gnc_AccountGroup__ = gw_wct_create("<gnc:AccountGroup*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:AccountGroup*>", gw__tmp21_wct_info_for__gnc_AccountGroup__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp20_wct_info_for__gnc_AccInfo__ = gw_wct_create("<gnc:AccInfo*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:AccInfo*>", gw__tmp20_wct_info_for__gnc_AccInfo__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp19_wct_info_for__gnc_InvAcct__ = gw_wct_create("<gnc:InvAcct*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:InvAcct*>", gw__tmp19_wct_info_for__gnc_InvAcct__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp18_wct_info_for__gnc_Account___ = gw_wct_create("<gnc:Account**>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Account**>", gw__tmp18_wct_info_for__gnc_Account___);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp17_wct_info_for__gnc_Account__ = gw_wct_create("<gnc:Account*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:Account*>", gw__tmp17_wct_info_for__gnc_Account__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp16_wct_info_for__gnc_id_type_ = gw_wct_create("<gnc:id-type>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:id-type>", gw__tmp16_wct_info_for__gnc_id_type_);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
    gw__tmp15_wct_info_for__gnc_GList__ = gw_wct_create("<gnc:GList*>", NULL, NULL, NULL, NULL);
  gh_define("<gnc:GList*>", gw__tmp15_wct_info_for__gnc_GList__);
if (gw__tmp688_err_status != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp688_err_status,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp689_err_misc_msg,
                            gw__tmp690_err_data);
}
{
   enum GW__ErrorStatus gw__tmp691_status_var = GW__ERR_NONE;
   SCM gw__tmp693_err_data = SCM_UNSPECIFIED;
   char *gw__tmp692_err_misc_msg = NULL;
   (void) gw__tmp691_status_var;
   (void) gw__tmp693_err_data;
   (void) gw__tmp692_err_misc_msg;
{
   SCM gw__tmp30_scm_wrapped_value;

if(GNC_ID_ACCOUNT == NULL) gw__tmp30_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp30_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_ID_ACCOUNT, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:id-account",gw__tmp30_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp31_scm_wrapped_value;

if(GNC_ID_BOOK == NULL) gw__tmp31_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp31_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_ID_BOOK, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:id-book",gw__tmp31_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp32_scm_wrapped_value;

if(GNC_ID_LOT == NULL) gw__tmp32_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp32_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_ID_LOT, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:id-lot",gw__tmp32_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp33_scm_wrapped_value;

if(GNC_ID_PRICE == NULL) gw__tmp33_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp33_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_ID_PRICE, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:id-price",gw__tmp33_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp34_scm_wrapped_value;

if(GNC_ID_SPLIT == NULL) gw__tmp34_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp34_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_ID_SPLIT, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:id-split",gw__tmp34_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp35_scm_wrapped_value;

if(GNC_ID_SCHEDXACTION == NULL) gw__tmp35_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp35_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_ID_SCHEDXACTION, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:id-schedxaction",gw__tmp35_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp36_scm_wrapped_value;

if(GNC_ID_SESSION == NULL) gw__tmp36_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp36_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_ID_SESSION, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:id-session",gw__tmp36_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp37_scm_wrapped_value;

if(GNC_ID_TRANS == NULL) gw__tmp37_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp37_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) GNC_ID_TRANS, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:id-trans",gw__tmp37_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp38_scm_wrapped_value;

if(QUERY_DEFAULT_SORT == NULL) gw__tmp38_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp38_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) QUERY_DEFAULT_SORT, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:query-default-sort",gw__tmp38_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp39_scm_wrapped_value;

if(SPLIT_LOT == NULL) gw__tmp39_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp39_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_LOT, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-lot",gw__tmp39_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp40_scm_wrapped_value;

if(SPLIT_TRANS == NULL) gw__tmp40_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp40_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_TRANS, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-trans",gw__tmp40_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp41_scm_wrapped_value;

if(SPLIT_ACCOUNT == NULL) gw__tmp41_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp41_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_ACCOUNT, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-account",gw__tmp41_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp42_scm_wrapped_value;

if(SPLIT_VALUE == NULL) gw__tmp42_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp42_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_VALUE, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-value",gw__tmp42_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp43_scm_wrapped_value;

if(SPLIT_MEMO == NULL) gw__tmp43_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp43_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_MEMO, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-memo",gw__tmp43_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp44_scm_wrapped_value;

if(SPLIT_DATE_RECONCILED == NULL) gw__tmp44_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp44_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_DATE_RECONCILED, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-date-reconciled",gw__tmp44_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp45_scm_wrapped_value;

if(TRANS_DATE_POSTED == NULL) gw__tmp45_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp45_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) TRANS_DATE_POSTED, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:trans-date-posted",gw__tmp45_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp46_scm_wrapped_value;

if(TRANS_DESCRIPTION == NULL) gw__tmp46_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp46_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) TRANS_DESCRIPTION, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:trans-desc",gw__tmp46_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp47_scm_wrapped_value;

if(TRANS_NUM == NULL) gw__tmp47_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp47_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) TRANS_NUM, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:trans-num",gw__tmp47_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp48_scm_wrapped_value;

if(ACCOUNT_NAME_ == NULL) gw__tmp48_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp48_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) ACCOUNT_NAME_, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:account-name",gw__tmp48_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp49_scm_wrapped_value;

if(ACCOUNT_CODE_ == NULL) gw__tmp49_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp49_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) ACCOUNT_CODE_, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:account-code",gw__tmp49_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp50_scm_wrapped_value;

if(SPLIT_ACCT_FULLNAME == NULL) gw__tmp50_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp50_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_ACCT_FULLNAME, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-account-fullname",gw__tmp50_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp51_scm_wrapped_value;

if(SPLIT_CORR_ACCT_NAME == NULL) gw__tmp51_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp51_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_CORR_ACCT_NAME, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-corr-account-fullname",gw__tmp51_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp52_scm_wrapped_value;

if(SPLIT_CORR_ACCT_CODE == NULL) gw__tmp52_scm_wrapped_value = SCM_BOOL_F;
else gw__tmp52_scm_wrapped_value = gw_wcp_assimilate_ptr((void *) SPLIT_CORR_ACCT_CODE, gw__tmp16_wct_info_for__gnc_id_type_);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:split-corr-account-code",gw__tmp52_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp53_scm_wrapped_value;

gw__tmp53_scm_wrapped_value= SCM_MAKE_CHAR(TXN_TYPE_NONE);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:transaction-type-none",gw__tmp53_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp54_scm_wrapped_value;

gw__tmp54_scm_wrapped_value= SCM_MAKE_CHAR(TXN_TYPE_INVOICE);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:transaction-type-invoice",gw__tmp54_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
{
   SCM gw__tmp55_scm_wrapped_value;

gw__tmp55_scm_wrapped_value= SCM_MAKE_CHAR(TXN_TYPE_PAYMENT);
if(!(gw__tmp691_status_var != GW__ERR_NONE))  gh_define("gnc:transaction-type-payment",gw__tmp55_scm_wrapped_value);
}
if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp57_guid_new_return_namestr,
                     (SCM (*) ()) gw__tmp56_guid_new_return_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp59_xaccSplitReturnGUID_namestr,
                     (SCM (*) ()) gw__tmp58_xaccSplitReturnGUID_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp61_xaccSplitLookupDirect_namestr,
                     (SCM (*) ()) gw__tmp60_xaccSplitLookupDirect_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp63_xaccSplitGetBalance_namestr,
                     (SCM (*) ()) gw__tmp62_xaccSplitGetBalance_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp65_xaccSplitGetMemo_namestr,
                     (SCM (*) ()) gw__tmp64_xaccSplitGetMemo_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp67_xaccSplitGetAction_namestr,
                     (SCM (*) ()) gw__tmp66_xaccSplitGetAction_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp69_xaccSplitGetReconcile_namestr,
                     (SCM (*) ()) gw__tmp68_xaccSplitGetReconcile_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp71_gnc_split_get_date_reconciled_namestr,
                     (SCM (*) ()) gw__tmp70_gnc_split_get_date_reconciled_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp73_xaccSplitGetAmount_namestr,
                     (SCM (*) ()) gw__tmp72_xaccSplitGetAmount_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp75_xaccSplitGetSharePrice_namestr,
                     (SCM (*) ()) gw__tmp74_xaccSplitGetSharePrice_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp77_xaccSplitGetValue_namestr,
                     (SCM (*) ()) gw__tmp76_xaccSplitGetValue_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp79_xaccSplitGetAccount_namestr,
                     (SCM (*) ()) gw__tmp78_xaccSplitGetAccount_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp81_xaccSplitGetParent_namestr,
                     (SCM (*) ()) gw__tmp80_xaccSplitGetParent_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp83_xaccSplitGetOtherSplit_namestr,
                     (SCM (*) ()) gw__tmp82_xaccSplitGetOtherSplit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp85_xaccSplitCompareAccountFullNames_namestr,
                     (SCM (*) ()) gw__tmp84_xaccSplitCompareAccountFullNames_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp87_xaccSplitCompareAccountCodes_namestr,
                     (SCM (*) ()) gw__tmp86_xaccSplitCompareAccountCodes_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp89_xaccSplitCompareOtherAccountFullNames_namestr,
                     (SCM (*) ()) gw__tmp88_xaccSplitCompareOtherAccountFullNames_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp91_xaccSplitCompareOtherAccountCodes_namestr,
                     (SCM (*) ()) gw__tmp90_xaccSplitCompareOtherAccountCodes_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp93_xaccSplitGetCorrAccountName_namestr,
                     (SCM (*) ()) gw__tmp92_xaccSplitGetCorrAccountName_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp95_xaccSplitGetCorrAccountFullName_namestr,
                     (SCM (*) ()) gw__tmp94_xaccSplitGetCorrAccountFullName_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp97_xaccSplitGetCorrAccountCode_namestr,
                     (SCM (*) ()) gw__tmp96_xaccSplitGetCorrAccountCode_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp99_xaccSplitGetLot_namestr,
                     (SCM (*) ()) gw__tmp98_xaccSplitGetLot_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp101_xaccTransReturnGUID_namestr,
                     (SCM (*) ()) gw__tmp100_xaccTransReturnGUID_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp103_xaccTransLookupDirect_namestr,
                     (SCM (*) ()) gw__tmp102_xaccTransLookupDirect_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp105_xaccTransGetSplit_namestr,
                     (SCM (*) ()) gw__tmp104_xaccTransGetSplit_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp107_xaccTransGetSplitList_namestr,
                     (SCM (*) ()) gw__tmp106_xaccTransGetSplitList_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp109_xaccTransGetNum_namestr,
                     (SCM (*) ()) gw__tmp108_xaccTransGetNum_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp111_xaccTransGetDescription_namestr,
                     (SCM (*) ()) gw__tmp110_xaccTransGetDescription_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp113_xaccTransGetNotes_namestr,
                     (SCM (*) ()) gw__tmp112_xaccTransGetNotes_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp115_xaccTransVoid_namestr,
                     (SCM (*) ()) gw__tmp114_xaccTransVoid_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp117_xaccTransGetVoidStatus_namestr,
                     (SCM (*) ()) gw__tmp116_xaccTransGetVoidStatus_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp119_xaccTransGetVoidReason_namestr,
                     (SCM (*) ()) gw__tmp118_xaccTransGetVoidReason_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp121_xaccTransOrder_namestr,
                     (SCM (*) ()) gw__tmp120_xaccTransOrder_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp123_xaccSplitVoidFormerAmount_namestr,
                     (SCM (*) ()) gw__tmp122_xaccSplitVoidFormerAmount_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp125_xaccSplitVoidFormerValue_namestr,
                     (SCM (*) ()) gw__tmp124_xaccSplitVoidFormerValue_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp127_gnc_dmy2timespec_namestr,
                     (SCM (*) ()) gw__tmp126_gnc_dmy2timespec_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp129_gnc_transaction_get_date_posted_namestr,
                     (SCM (*) ()) gw__tmp128_gnc_transaction_get_date_posted_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp131_gnc_transaction_get_date_entered_namestr,
                     (SCM (*) ()) gw__tmp130_gnc_transaction_get_date_entered_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp133_gnc_transaction_set_date_posted_namestr,
                     (SCM (*) ()) gw__tmp132_gnc_transaction_set_date_posted_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp135_gnc_transaction_set_date_entered_namestr,
                     (SCM (*) ()) gw__tmp134_gnc_transaction_set_date_entered_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp137_xaccTransCountSplits_namestr,
                     (SCM (*) ()) gw__tmp136_xaccTransCountSplits_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp139_xaccTransGetCurrency_namestr,
                     (SCM (*) ()) gw__tmp138_xaccTransGetCurrency_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp141_xaccTransSetCurrency_namestr,
                     (SCM (*) ()) gw__tmp140_xaccTransSetCurrency_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp143_xaccTransGetAccountValue_namestr,
                     (SCM (*) ()) gw__tmp142_xaccTransGetAccountValue_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp145_xaccTransGetTxnType_namestr,
                     (SCM (*) ()) gw__tmp144_xaccTransGetTxnType_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp147_xaccMallocAccount_namestr,
                     (SCM (*) ()) gw__tmp146_xaccMallocAccount_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp149_xaccAccountDestroy_namestr,
                     (SCM (*) ()) gw__tmp148_xaccAccountDestroy_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp151_xaccAccountBeginEdit_namestr,
                     (SCM (*) ()) gw__tmp150_xaccAccountBeginEdit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp153_xaccAccountCommitEdit_namestr,
                     (SCM (*) ()) gw__tmp152_xaccAccountCommitEdit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp155_xaccAccountInsertSplit_namestr,
                     (SCM (*) ()) gw__tmp154_xaccAccountInsertSplit_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp157_xaccAccountFixSplitDateOrder_namestr,
                     (SCM (*) ()) gw__tmp156_xaccAccountFixSplitDateOrder_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp159_xaccTransFixSplitDateOrder_namestr,
                     (SCM (*) ()) gw__tmp158_xaccTransFixSplitDateOrder_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp161_xaccAccountOrder_namestr,
                     (SCM (*) ()) gw__tmp160_xaccAccountOrder_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp163_xaccAccountSetType_namestr,
                     (SCM (*) ()) gw__tmp162_xaccAccountSetType_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp165_xaccAccountSetName_namestr,
                     (SCM (*) ()) gw__tmp164_xaccAccountSetName_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp167_xaccAccountSetCode_namestr,
                     (SCM (*) ()) gw__tmp166_xaccAccountSetCode_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp169_xaccAccountSetDescription_namestr,
                     (SCM (*) ()) gw__tmp168_xaccAccountSetDescription_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp171_xaccAccountSetNotes_namestr,
                     (SCM (*) ()) gw__tmp170_xaccAccountSetNotes_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp173_xaccAccountSetTaxRelated_namestr,
                     (SCM (*) ()) gw__tmp172_xaccAccountSetTaxRelated_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp175_xaccAccountReturnGUID_namestr,
                     (SCM (*) ()) gw__tmp174_xaccAccountReturnGUID_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp177_xaccAccountLookupDirect_namestr,
                     (SCM (*) ()) gw__tmp176_xaccAccountLookupDirect_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp179_xaccAccountGetTypeStr_namestr,
                     (SCM (*) ()) gw__tmp178_xaccAccountGetTypeStr_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp181_xaccAccountGetType_namestr,
                     (SCM (*) ()) gw__tmp180_xaccAccountGetType_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp183_xaccAccountGetName_namestr,
                     (SCM (*) ()) gw__tmp182_xaccAccountGetName_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp185_xaccAccountGetCode_namestr,
                     (SCM (*) ()) gw__tmp184_xaccAccountGetCode_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp187_xaccAccountGetDescription_namestr,
                     (SCM (*) ()) gw__tmp186_xaccAccountGetDescription_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp189_xaccAccountGetNotes_namestr,
                     (SCM (*) ()) gw__tmp188_xaccAccountGetNotes_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp191_xaccAccountGetCommodity_namestr,
                     (SCM (*) ()) gw__tmp190_xaccAccountGetCommodity_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp193_xaccAccountSetCommodity_namestr,
                     (SCM (*) ()) gw__tmp192_xaccAccountSetCommodity_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp195_xaccAccountGetTaxRelated_namestr,
                     (SCM (*) ()) gw__tmp194_xaccAccountGetTaxRelated_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp197_xaccAccountGetTaxUSCode_namestr,
                     (SCM (*) ()) gw__tmp196_xaccAccountGetTaxUSCode_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp199_xaccAccountGetTaxUSPayerNameSource_namestr,
                     (SCM (*) ()) gw__tmp198_xaccAccountGetTaxUSPayerNameSource_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp201_xaccAccountGetPriceSrc_namestr,
                     (SCM (*) ()) gw__tmp200_xaccAccountGetPriceSrc_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp203_xaccAccountGetQuoteTZ_namestr,
                     (SCM (*) ()) gw__tmp202_xaccAccountGetQuoteTZ_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp205_xaccAccountGetChildren_namestr,
                     (SCM (*) ()) gw__tmp204_xaccAccountGetChildren_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp207_xaccAccountGetParent_namestr,
                     (SCM (*) ()) gw__tmp206_xaccAccountGetParent_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp209_xaccAccountGetParentAccount_namestr,
                     (SCM (*) ()) gw__tmp208_xaccAccountGetParentAccount_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp211_xaccAccountGetBalance_namestr,
                     (SCM (*) ()) gw__tmp210_xaccAccountGetBalance_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp213_xaccAccountGetClearedBalance_namestr,
                     (SCM (*) ()) gw__tmp212_xaccAccountGetClearedBalance_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp215_xaccAccountGetReconciledBalance_namestr,
                     (SCM (*) ()) gw__tmp214_xaccAccountGetReconciledBalance_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp217_xaccAccountGetSplitList_namestr,
                     (SCM (*) ()) gw__tmp216_xaccAccountGetSplitList_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp219_xaccMallocAccountGroup_namestr,
                     (SCM (*) ()) gw__tmp218_xaccMallocAccountGroup_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp221_xaccAccountGroupBeginEdit_namestr,
                     (SCM (*) ()) gw__tmp220_xaccAccountGroupBeginEdit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp223_xaccAccountGroupCommitEdit_namestr,
                     (SCM (*) ()) gw__tmp222_xaccAccountGroupCommitEdit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp225_xaccAccountGroupDestroy_namestr,
                     (SCM (*) ()) gw__tmp224_xaccAccountGroupDestroy_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp227_xaccGroupGetBook_namestr,
                     (SCM (*) ()) gw__tmp226_xaccGroupGetBook_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp229_xaccGroupMergeAccounts_namestr,
                     (SCM (*) ()) gw__tmp228_xaccGroupMergeAccounts_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp231_xaccGroupConcatGroup_namestr,
                     (SCM (*) ()) gw__tmp230_xaccGroupConcatGroup_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp233_xaccGroupGetNumSubAccounts_namestr,
                     (SCM (*) ()) gw__tmp232_xaccGroupGetNumSubAccounts_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp235_xaccGroupGetNumAccounts_namestr,
                     (SCM (*) ()) gw__tmp234_xaccGroupGetNumAccounts_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp237_xaccGroupGetAccount_namestr,
                     (SCM (*) ()) gw__tmp236_xaccGroupGetAccount_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp239_xaccGetAccountFromFullName_namestr,
                     (SCM (*) ()) gw__tmp238_xaccGetAccountFromFullName_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp241_xaccGroupGetParentAccount_namestr,
                     (SCM (*) ()) gw__tmp240_xaccGroupGetParentAccount_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp243_xaccGroupInsertAccount_namestr,
                     (SCM (*) ()) gw__tmp242_xaccGroupInsertAccount_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp245_xaccAccountInsertSubAccount_namestr,
                     (SCM (*) ()) gw__tmp244_xaccAccountInsertSubAccount_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp247_xaccGroupGetSubAccounts_namestr,
                     (SCM (*) ()) gw__tmp246_xaccGroupGetSubAccounts_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp249_xaccGroupGetAccountList_namestr,
                     (SCM (*) ()) gw__tmp248_xaccGroupGetAccountList_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp251_xaccGroupBeginStagedTransactionTraversals_namestr,
                     (SCM (*) ()) gw__tmp250_xaccGroupBeginStagedTransactionTraversals_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp253_gnc_scmGroupStagedTransactionTraversal_namestr,
                     (SCM (*) ()) gw__tmp252_gnc_scmGroupStagedTransactionTraversal_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp255_gnc_scmAccountStagedTransactionTraversal_namestr,
                     (SCM (*) ()) gw__tmp254_gnc_scmAccountStagedTransactionTraversal_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp257_xaccAccountGetLotList_namestr,
                     (SCM (*) ()) gw__tmp256_xaccAccountGetLotList_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp261_gnc_price_create_namestr,
                     (SCM (*) ()) gw__tmp260_gnc_price_create_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp263_gnc_price_return_guid_namestr,
                     (SCM (*) ()) gw__tmp262_gnc_price_return_guid_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp265_gnc_price_unref_namestr,
                     (SCM (*) ()) gw__tmp264_gnc_price_unref_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp267_gnc_price_set_commodity_namestr,
                     (SCM (*) ()) gw__tmp266_gnc_price_set_commodity_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp269_gnc_price_set_currency_namestr,
                     (SCM (*) ()) gw__tmp268_gnc_price_set_currency_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp271_gnc_price_set_time_namestr,
                     (SCM (*) ()) gw__tmp270_gnc_price_set_time_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp273_gnc_price_set_source_namestr,
                     (SCM (*) ()) gw__tmp272_gnc_price_set_source_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp275_gnc_price_set_type_namestr,
                     (SCM (*) ()) gw__tmp274_gnc_price_set_type_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp277_gnc_price_set_value_namestr,
                     (SCM (*) ()) gw__tmp276_gnc_price_set_value_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp279_gnc_price_get_value_namestr,
                     (SCM (*) ()) gw__tmp278_gnc_price_get_value_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp281_gnc_price_get_commodity_namestr,
                     (SCM (*) ()) gw__tmp280_gnc_price_get_commodity_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp283_gnc_price_get_currency_namestr,
                     (SCM (*) ()) gw__tmp282_gnc_price_get_currency_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp285_gnc_price_get_time_namestr,
                     (SCM (*) ()) gw__tmp284_gnc_price_get_time_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp287_gnc_pricedb_add_price_namestr,
                     (SCM (*) ()) gw__tmp286_gnc_pricedb_add_price_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp289_gnc_price_list_destroy_namestr,
                     (SCM (*) ()) gw__tmp288_gnc_price_list_destroy_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp291_gnc_pricedb_lookup_latest_namestr,
                     (SCM (*) ()) gw__tmp290_gnc_pricedb_lookup_latest_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp293_gnc_pricedb_lookup_latest_any_currency_namestr,
                     (SCM (*) ()) gw__tmp292_gnc_pricedb_lookup_latest_any_currency_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp295_gnc_pricedb_lookup_nearest_in_time_namestr,
                     (SCM (*) ()) gw__tmp294_gnc_pricedb_lookup_nearest_in_time_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp297_gnc_pricedb_lookup_nearest_in_time_any_currency_namestr,
                     (SCM (*) ()) gw__tmp296_gnc_pricedb_lookup_nearest_in_time_any_currency_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp299_gnc_pricedb_get_prices_namestr,
                     (SCM (*) ()) gw__tmp298_gnc_pricedb_get_prices_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp301_gnc_pricedb_lookup_at_time_namestr,
                     (SCM (*) ()) gw__tmp300_gnc_pricedb_lookup_at_time_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp303_gnc_pricedb_lookup_day_namestr,
                     (SCM (*) ()) gw__tmp302_gnc_pricedb_lookup_day_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp305_gnc_pricedb_convert_balance_latest_price_namestr,
                     (SCM (*) ()) gw__tmp304_gnc_pricedb_convert_balance_latest_price_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp307_gnc_pricedb_convert_balance_nearest_price_namestr,
                     (SCM (*) ()) gw__tmp306_gnc_pricedb_convert_balance_nearest_price_wrapper,
                     5,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp309_gnc_session_new_namestr,
                     (SCM (*) ()) gw__tmp308_gnc_session_new_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp311_gnc_session_destroy_namestr,
                     (SCM (*) ()) gw__tmp310_gnc_session_destroy_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp313_gnc_session_get_book_namestr,
                     (SCM (*) ()) gw__tmp312_gnc_session_get_book_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp315_gnc_session_begin_namestr,
                     (SCM (*) ()) gw__tmp314_gnc_session_begin_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp317_gnc_session_scm_load_namestr,
                     (SCM (*) ()) gw__tmp316_gnc_session_scm_load_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp319_gnc_session_scm_save_namestr,
                     (SCM (*) ()) gw__tmp318_gnc_session_scm_save_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp321_gnc_session_scm_export_namestr,
                     (SCM (*) ()) gw__tmp320_gnc_session_scm_export_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp323_gnc_session_scm_set_callback_namestr,
                     (SCM (*) ()) gw__tmp322_gnc_session_scm_set_callback_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp325_gnc_session_end_namestr,
                     (SCM (*) ()) gw__tmp324_gnc_session_end_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp327_gnc_book_get_group_namestr,
                     (SCM (*) ()) gw__tmp326_gnc_book_get_group_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp329_gnc_book_get_commodity_table_namestr,
                     (SCM (*) ()) gw__tmp328_gnc_book_get_commodity_table_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp331_gnc_book_get_pricedb_namestr,
                     (SCM (*) ()) gw__tmp330_gnc_book_get_pricedb_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp333_gnc_book_kvp_changed_namestr,
                     (SCM (*) ()) gw__tmp332_gnc_book_kvp_changed_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp335_gnc_session_get_error_namestr,
                     (SCM (*) ()) gw__tmp334_gnc_session_get_error_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp337_gnc_session_get_url_namestr,
                     (SCM (*) ()) gw__tmp336_gnc_session_get_url_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp339_gnc_session_pop_error_namestr,
                     (SCM (*) ()) gw__tmp338_gnc_session_pop_error_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp341_gnc_set_log_level_global_namestr,
                     (SCM (*) ()) gw__tmp340_gnc_set_log_level_global_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp343_gnc_print_date_namestr,
                     (SCM (*) ()) gw__tmp342_gnc_print_date_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp345_xaccTransDestroy_namestr,
                     (SCM (*) ()) gw__tmp344_xaccTransDestroy_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp347_xaccTransBeginEdit_namestr,
                     (SCM (*) ()) gw__tmp346_xaccTransBeginEdit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp349_xaccTransCommitEdit_namestr,
                     (SCM (*) ()) gw__tmp348_xaccTransCommitEdit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp351_xaccTransIsOpen_namestr,
                     (SCM (*) ()) gw__tmp350_xaccTransIsOpen_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp353_xaccSplitDestroy_namestr,
                     (SCM (*) ()) gw__tmp352_xaccSplitDestroy_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp355_xaccTransAppendSplit_namestr,
                     (SCM (*) ()) gw__tmp354_xaccTransAppendSplit_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp357_xaccTransSetDate_namestr,
                     (SCM (*) ()) gw__tmp356_xaccTransSetDate_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp359_gnc_transaction_set_date_namestr,
                     (SCM (*) ()) gw__tmp358_gnc_transaction_set_date_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp361_xaccTransSetNum_namestr,
                     (SCM (*) ()) gw__tmp360_xaccTransSetNum_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp363_xaccTransSetDescription_namestr,
                     (SCM (*) ()) gw__tmp362_xaccTransSetDescription_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp365_xaccTransSetNotes_namestr,
                     (SCM (*) ()) gw__tmp364_xaccTransSetNotes_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp367_xaccMallocTransaction_namestr,
                     (SCM (*) ()) gw__tmp366_xaccMallocTransaction_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp369_xaccMallocSplit_namestr,
                     (SCM (*) ()) gw__tmp368_xaccMallocSplit_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp371_xaccSplitSetValue_namestr,
                     (SCM (*) ()) gw__tmp370_xaccSplitSetValue_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp373_xaccSplitSetBaseValue_namestr,
                     (SCM (*) ()) gw__tmp372_xaccSplitSetBaseValue_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp375_xaccSplitSetMemo_namestr,
                     (SCM (*) ()) gw__tmp374_xaccSplitSetMemo_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp377_xaccSplitSetAction_namestr,
                     (SCM (*) ()) gw__tmp376_xaccSplitSetAction_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp379_xaccSplitSetReconcile_namestr,
                     (SCM (*) ()) gw__tmp378_xaccSplitSetReconcile_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp381_DxaccSplitSetSharePrice_namestr,
                     (SCM (*) ()) gw__tmp380_DxaccSplitSetSharePrice_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp383_xaccSplitSetSharePrice_namestr,
                     (SCM (*) ()) gw__tmp382_xaccSplitSetSharePrice_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp385_xaccSplitSetAmount_namestr,
                     (SCM (*) ()) gw__tmp384_xaccSplitSetAmount_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp387_xaccSplitSetSharePriceAndAmount_namestr,
                     (SCM (*) ()) gw__tmp386_xaccSplitSetSharePriceAndAmount_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp389_xaccMallocQuery_namestr,
                     (SCM (*) ()) gw__tmp388_xaccMallocQuery_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp391_gncQueryCreate_namestr,
                     (SCM (*) ()) gw__tmp390_gncQueryCreate_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp393_gncQueryCreateFor_namestr,
                     (SCM (*) ()) gw__tmp392_gncQueryCreateFor_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp395_gncQuerySearchFor_namestr,
                     (SCM (*) ()) gw__tmp394_gncQuerySearchFor_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp397_xaccFreeQuery_namestr,
                     (SCM (*) ()) gw__tmp396_xaccFreeQuery_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp399_xaccQuerySetBook_namestr,
                     (SCM (*) ()) gw__tmp398_xaccQuerySetBook_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp401_xaccQueryInvert_namestr,
                     (SCM (*) ()) gw__tmp400_xaccQueryInvert_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp403_xaccQueryMerge_namestr,
                     (SCM (*) ()) gw__tmp402_xaccQueryMerge_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp405_xaccQueryClear_namestr,
                     (SCM (*) ()) gw__tmp404_xaccQueryClear_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp407_gncQueryPurgeTerms_namestr,
                     (SCM (*) ()) gw__tmp406_gncQueryPurgeTerms_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp409_xaccQueryHasTerms_namestr,
                     (SCM (*) ()) gw__tmp408_xaccQueryHasTerms_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp411_xaccQueryGetSplits_namestr,
                     (SCM (*) ()) gw__tmp410_xaccQueryGetSplits_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp413_xaccQueryGetSplitsUniqueTrans_namestr,
                     (SCM (*) ()) gw__tmp412_xaccQueryGetSplitsUniqueTrans_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp415_xaccQueryGetTransactions_namestr,
                     (SCM (*) ()) gw__tmp414_xaccQueryGetTransactions_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp417_xaccQueryGetLots_namestr,
                     (SCM (*) ()) gw__tmp416_xaccQueryGetLots_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp419_xaccQueryAddAccountMatch_namestr,
                     (SCM (*) ()) gw__tmp418_xaccQueryAddAccountMatch_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp421_xaccQueryAddSingleAccountMatch_namestr,
                     (SCM (*) ()) gw__tmp420_xaccQueryAddSingleAccountMatch_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp423_xaccQueryAddDescriptionMatch_namestr,
                     (SCM (*) ()) gw__tmp422_xaccQueryAddDescriptionMatch_wrapper,
                     5,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp425_xaccQueryAddNumberMatch_namestr,
                     (SCM (*) ()) gw__tmp424_xaccQueryAddNumberMatch_wrapper,
                     5,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp427_xaccQueryAddActionMatch_namestr,
                     (SCM (*) ()) gw__tmp426_xaccQueryAddActionMatch_wrapper,
                     5,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp429_xaccQueryAddSharePriceMatch_namestr,
                     (SCM (*) ()) gw__tmp428_xaccQueryAddSharePriceMatch_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp431_xaccQueryAddSharesMatch_namestr,
                     (SCM (*) ()) gw__tmp430_xaccQueryAddSharesMatch_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp433_xaccQueryAddValueMatch_namestr,
                     (SCM (*) ()) gw__tmp432_xaccQueryAddValueMatch_wrapper,
                     5,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp435_xaccQueryAddDateMatch_namestr,
                     (SCM (*) ()) gw__tmp434_xaccQueryAddDateMatch_wrapper,
                     9,
                     0,
                     1);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp437_xaccQueryAddDateMatchTS_namestr,
                     (SCM (*) ()) gw__tmp436_xaccQueryAddDateMatchTS_wrapper,
                     6,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp439_xaccQueryAddMemoMatch_namestr,
                     (SCM (*) ()) gw__tmp438_xaccQueryAddMemoMatch_wrapper,
                     5,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp441_xaccQueryAddClearedMatch_namestr,
                     (SCM (*) ()) gw__tmp440_xaccQueryAddClearedMatch_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp443_xaccQueryAddGUIDMatchGL_namestr,
                     (SCM (*) ()) gw__tmp442_xaccQueryAddGUIDMatchGL_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp445_xaccQuerySetSortOrder_namestr,
                     (SCM (*) ()) gw__tmp444_xaccQuerySetSortOrder_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp447_xaccQuerySetSortIncreasing_namestr,
                     (SCM (*) ()) gw__tmp446_xaccQuerySetSortIncreasing_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp449_gncQuerySetMaxResults_namestr,
                     (SCM (*) ()) gw__tmp448_gncQuerySetMaxResults_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp451_gnc_query2scm_namestr,
                     (SCM (*) ()) gw__tmp450_gnc_query2scm_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp453_gnc_scm2query_namestr,
                     (SCM (*) ()) gw__tmp452_gnc_scm2query_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp455_gnc_commodity_new_namestr,
                     (SCM (*) ()) gw__tmp454_gnc_commodity_new_wrapper,
                     5,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp457_gnc_commodity_destroy_namestr,
                     (SCM (*) ()) gw__tmp456_gnc_commodity_destroy_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp459_gnc_commodity_get_mnemonic_namestr,
                     (SCM (*) ()) gw__tmp458_gnc_commodity_get_mnemonic_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp461_gnc_commodity_get_namespace_namestr,
                     (SCM (*) ()) gw__tmp460_gnc_commodity_get_namespace_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp463_gnc_commodity_get_printname_namestr,
                     (SCM (*) ()) gw__tmp462_gnc_commodity_get_printname_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp465_gnc_commodity_get_fullname_namestr,
                     (SCM (*) ()) gw__tmp464_gnc_commodity_get_fullname_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp467_gnc_commodity_get_exchange_code_namestr,
                     (SCM (*) ()) gw__tmp466_gnc_commodity_get_exchange_code_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp469_gnc_commodity_get_fraction_namestr,
                     (SCM (*) ()) gw__tmp468_gnc_commodity_get_fraction_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp471_gnc_commodity_equiv_namestr,
                     (SCM (*) ()) gw__tmp470_gnc_commodity_equiv_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp473_gnc_commodity_table_new_namestr,
                     (SCM (*) ()) gw__tmp472_gnc_commodity_table_new_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp475_gnc_commodity_table_lookup_namestr,
                     (SCM (*) ()) gw__tmp474_gnc_commodity_table_lookup_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp477_gnc_commodity_table_find_full_namestr,
                     (SCM (*) ()) gw__tmp476_gnc_commodity_table_find_full_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp479_gnc_commodity_table_insert_namestr,
                     (SCM (*) ()) gw__tmp478_gnc_commodity_table_insert_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp481_gnc_commodity_table_has_namespace_namestr,
                     (SCM (*) ()) gw__tmp480_gnc_commodity_table_has_namespace_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp483_gnc_commodity_table_get_namespaces_namestr,
                     (SCM (*) ()) gw__tmp482_gnc_commodity_table_get_namespaces_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp485_gnc_commodity_table_add_namespace_namestr,
                     (SCM (*) ()) gw__tmp484_gnc_commodity_table_add_namespace_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp487_gnc_commodity_table_delete_namespace_namestr,
                     (SCM (*) ()) gw__tmp486_gnc_commodity_table_delete_namespace_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp489_gnc_commodity_table_get_commodities_namestr,
                     (SCM (*) ()) gw__tmp488_gnc_commodity_table_get_commodities_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp491_gnc_commodity_table_add_default_data_namestr,
                     (SCM (*) ()) gw__tmp490_gnc_commodity_table_add_default_data_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp493_gnc_engine_shutdown_namestr,
                     (SCM (*) ()) gw__tmp492_gnc_engine_shutdown_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp495_gnc_numeric_create_namestr,
                     (SCM (*) ()) gw__tmp494_gnc_numeric_create_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp497_gnc_numeric_zero_namestr,
                     (SCM (*) ()) gw__tmp496_gnc_numeric_zero_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp499_gnc_numeric_error_namestr,
                     (SCM (*) ()) gw__tmp498_gnc_numeric_error_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp501_gnc_numeric_check_namestr,
                     (SCM (*) ()) gw__tmp500_gnc_numeric_check_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp503_gnc_numeric_num_namestr,
                     (SCM (*) ()) gw__tmp502_gnc_numeric_num_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp505_gnc_numeric_denom_namestr,
                     (SCM (*) ()) gw__tmp504_gnc_numeric_denom_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp507_gnc_numeric_zero_p_namestr,
                     (SCM (*) ()) gw__tmp506_gnc_numeric_zero_p_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp509_gnc_numeric_compare_namestr,
                     (SCM (*) ()) gw__tmp508_gnc_numeric_compare_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp511_gnc_numeric_negative_p_namestr,
                     (SCM (*) ()) gw__tmp510_gnc_numeric_negative_p_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp513_gnc_numeric_positive_p_namestr,
                     (SCM (*) ()) gw__tmp512_gnc_numeric_positive_p_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp515_gnc_numeric_eq_namestr,
                     (SCM (*) ()) gw__tmp514_gnc_numeric_eq_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp517_gnc_numeric_equal_namestr,
                     (SCM (*) ()) gw__tmp516_gnc_numeric_equal_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp519_gnc_numeric_same_namestr,
                     (SCM (*) ()) gw__tmp518_gnc_numeric_same_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp521_gnc_numeric_add_namestr,
                     (SCM (*) ()) gw__tmp520_gnc_numeric_add_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp523_gnc_numeric_sub_namestr,
                     (SCM (*) ()) gw__tmp522_gnc_numeric_sub_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp525_gnc_numeric_mul_namestr,
                     (SCM (*) ()) gw__tmp524_gnc_numeric_mul_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp527_gnc_numeric_div_namestr,
                     (SCM (*) ()) gw__tmp526_gnc_numeric_div_wrapper,
                     4,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp529_gnc_numeric_neg_namestr,
                     (SCM (*) ()) gw__tmp528_gnc_numeric_neg_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp531_gnc_numeric_abs_namestr,
                     (SCM (*) ()) gw__tmp530_gnc_numeric_abs_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp533_gnc_numeric_add_fixed_namestr,
                     (SCM (*) ()) gw__tmp532_gnc_numeric_add_fixed_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp535_gnc_numeric_sub_fixed_namestr,
                     (SCM (*) ()) gw__tmp534_gnc_numeric_sub_fixed_wrapper,
                     2,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp537_gnc_numeric_convert_namestr,
                     (SCM (*) ()) gw__tmp536_gnc_numeric_convert_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp539_double_to_gnc_numeric_namestr,
                     (SCM (*) ()) gw__tmp538_double_to_gnc_numeric_wrapper,
                     3,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp541_gnc_numeric_to_double_namestr,
                     (SCM (*) ()) gw__tmp540_gnc_numeric_to_double_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp543_gnc_numeric_to_string_namestr,
                     (SCM (*) ()) gw__tmp542_gnc_numeric_to_string_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp545_gnc_run_rpc_server_namestr,
                     (SCM (*) ()) gw__tmp544_gnc_run_rpc_server_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp547_timespecCanonicalDayTime_namestr,
                     (SCM (*) ()) gw__tmp546_timespecCanonicalDayTime_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp549_gnc_lot_get_balance_namestr,
                     (SCM (*) ()) gw__tmp548_gnc_lot_get_balance_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp551_gnc_lot_is_closed_namestr,
                     (SCM (*) ()) gw__tmp550_gnc_lot_is_closed_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp553_gnc_lot_get_split_list_namestr,
                     (SCM (*) ()) gw__tmp552_gnc_lot_get_split_list_wrapper,
                     1,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp555_gnc_engine_suspend_events_namestr,
                     (SCM (*) ()) gw__tmp554_gnc_engine_suspend_events_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
    gh_new_procedure(gw__tmp557_gnc_engine_resume_events_namestr,
                     (SCM (*) ()) gw__tmp556_gnc_engine_resume_events_wrapper,
                     0,
                     0,
                     0);

if (gw__tmp691_status_var != GW__ERR_NONE)  gw__handle_wrapper_error (gw__tmp691_status_var,
                            "gw_init_wrapset_gw_engine",
                            0,
                            gw__tmp692_err_misc_msg,
                            gw__tmp693_err_data);
}
    gw_wrapset_initialized = 1;
    (void) gw__handle_wrapper_error;
  }
}
