mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix 'make check' compilation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17449 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
d122ffbfe9
commit
eab2cba9f5
@ -38,17 +38,17 @@ static int count = 0;
|
|||||||
static void
|
static void
|
||||||
test_string_fcn (QofBook *book, const char *message,
|
test_string_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncCustomer *, const char *str),
|
void (*set) (GncCustomer *, const char *str),
|
||||||
const char * (*get)(GncCustomer *));
|
const char * (*get)(const GncCustomer *));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_numeric_fcn (QofBook *book, const char *message,
|
test_numeric_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncCustomer *, gnc_numeric),
|
void (*set) (GncCustomer *, gnc_numeric),
|
||||||
gnc_numeric (*get)(GncCustomer *));
|
gnc_numeric (*get)(const GncCustomer *));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_bool_fcn (QofBook *book, const char *message,
|
test_bool_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncCustomer *, gboolean),
|
void (*set) (GncCustomer *, gboolean),
|
||||||
gboolean (*get) (GncCustomer *));
|
gboolean (*get) (const GncCustomer *));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_customer (void)
|
test_customer (void)
|
||||||
@ -149,7 +149,7 @@ test_customer (void)
|
|||||||
static void
|
static void
|
||||||
test_string_fcn (QofBook *book, const char *message,
|
test_string_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncCustomer *, const char *str),
|
void (*set) (GncCustomer *, const char *str),
|
||||||
const char * (*get)(GncCustomer *))
|
const char * (*get)(const GncCustomer *))
|
||||||
{
|
{
|
||||||
GncCustomer *customer = gncCustomerCreate (book);
|
GncCustomer *customer = gncCustomerCreate (book);
|
||||||
char const *str = get_random_string ();
|
char const *str = get_random_string ();
|
||||||
@ -168,7 +168,7 @@ test_string_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_numeric_fcn (QofBook *book, const char *message,
|
test_numeric_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncCustomer *, gnc_numeric),
|
void (*set) (GncCustomer *, gnc_numeric),
|
||||||
gnc_numeric (*get)(GncCustomer *))
|
gnc_numeric (*get)(const GncCustomer *))
|
||||||
{
|
{
|
||||||
GncCustomer *customer = gncCustomerCreate (book);
|
GncCustomer *customer = gncCustomerCreate (book);
|
||||||
gnc_numeric num = gnc_numeric_create (17, 1);
|
gnc_numeric num = gnc_numeric_create (17, 1);
|
||||||
@ -187,7 +187,7 @@ test_numeric_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_bool_fcn (QofBook *book, const char *message,
|
test_bool_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncCustomer *, gboolean),
|
void (*set) (GncCustomer *, gboolean),
|
||||||
gboolean (*get) (GncCustomer *))
|
gboolean (*get) (const GncCustomer *))
|
||||||
{
|
{
|
||||||
GncCustomer *customer = gncCustomerCreate (book);
|
GncCustomer *customer = gncCustomerCreate (book);
|
||||||
gboolean num = get_random_boolean ();
|
gboolean num = get_random_boolean ();
|
||||||
|
@ -38,17 +38,17 @@ static int count = 0;
|
|||||||
static void
|
static void
|
||||||
test_string_fcn (QofBook *book, const char *message,
|
test_string_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncEmployee *, const char *str),
|
void (*set) (GncEmployee *, const char *str),
|
||||||
const char * (*get)(GncEmployee *));
|
const char * (*get)(const GncEmployee *));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_numeric_fcn (QofBook *book, const char *message,
|
test_numeric_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncEmployee *, gnc_numeric),
|
void (*set) (GncEmployee *, gnc_numeric),
|
||||||
gnc_numeric (*get)(GncEmployee *));
|
gnc_numeric (*get)(const GncEmployee *));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_bool_fcn (QofBook *book, const char *message,
|
test_bool_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncEmployee *, gboolean),
|
void (*set) (GncEmployee *, gboolean),
|
||||||
gboolean (*get) (GncEmployee *));
|
gboolean (*get) (const GncEmployee *));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static void
|
static void
|
||||||
@ -138,7 +138,7 @@ test_employee (void)
|
|||||||
static void
|
static void
|
||||||
test_string_fcn (QofBook *book, const char *message,
|
test_string_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncEmployee *, const char *str),
|
void (*set) (GncEmployee *, const char *str),
|
||||||
const char * (*get)(GncEmployee *))
|
const char * (*get)(const GncEmployee *))
|
||||||
{
|
{
|
||||||
GncEmployee *employee = gncEmployeeCreate (book);
|
GncEmployee *employee = gncEmployeeCreate (book);
|
||||||
char const *str = get_random_string ();
|
char const *str = get_random_string ();
|
||||||
@ -157,7 +157,7 @@ test_string_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_numeric_fcn (QofBook *book, const char *message,
|
test_numeric_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncEmployee *, gnc_numeric),
|
void (*set) (GncEmployee *, gnc_numeric),
|
||||||
gnc_numeric (*get)(GncEmployee *))
|
gnc_numeric (*get)(const GncEmployee *))
|
||||||
{
|
{
|
||||||
GncEmployee *employee = gncEmployeeCreate (book);
|
GncEmployee *employee = gncEmployeeCreate (book);
|
||||||
gnc_numeric num = gnc_numeric_create (17, 1);
|
gnc_numeric num = gnc_numeric_create (17, 1);
|
||||||
@ -176,7 +176,7 @@ test_numeric_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_bool_fcn (QofBook *book, const char *message,
|
test_bool_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncEmployee *, gboolean),
|
void (*set) (GncEmployee *, gboolean),
|
||||||
gboolean (*get) (GncEmployee *))
|
gboolean (*get) (const GncEmployee *))
|
||||||
{
|
{
|
||||||
GncEmployee *employee = gncEmployeeCreate (book);
|
GncEmployee *employee = gncEmployeeCreate (book);
|
||||||
gboolean num = get_random_boolean ();
|
gboolean num = get_random_boolean ();
|
||||||
|
@ -38,25 +38,25 @@ static int count = 0;
|
|||||||
static void
|
static void
|
||||||
test_string_fcn (QofBook *book, const char *message,
|
test_string_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncJob *, const char *str),
|
void (*set) (GncJob *, const char *str),
|
||||||
const char * (*get)(GncJob *));
|
const char * (*get)(const GncJob *));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static void
|
static void
|
||||||
test_numeric_fcn (QofBook *book, const char *message,
|
test_numeric_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncJob *, gnc_numeric),
|
void (*set) (GncJob *, gnc_numeric),
|
||||||
gnc_numeric (*get)(GncJob *));
|
gnc_numeric (*get)(const GncJob *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_bool_fcn (QofBook *book, const char *message,
|
test_bool_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncJob *, gboolean),
|
void (*set) (GncJob *, gboolean),
|
||||||
gboolean (*get) (GncJob *));
|
gboolean (*get) (const GncJob *));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static void
|
static void
|
||||||
test_gint_fcn (QofBook *book, const char *message,
|
test_gint_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncJob *, gint),
|
void (*set) (GncJob *, gint),
|
||||||
gint (*get) (GncJob *));
|
gint (*get) (const GncJob *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -157,7 +157,7 @@ test_job (void)
|
|||||||
static void
|
static void
|
||||||
test_string_fcn (QofBook *book, const char *message,
|
test_string_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncJob *, const char *str),
|
void (*set) (GncJob *, const char *str),
|
||||||
const char * (*get)(GncJob *))
|
const char * (*get)(const GncJob *))
|
||||||
{
|
{
|
||||||
GncJob *job = gncJobCreate (book);
|
GncJob *job = gncJobCreate (book);
|
||||||
char const *str = get_random_string ();
|
char const *str = get_random_string ();
|
||||||
@ -176,7 +176,7 @@ test_string_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_numeric_fcn (QofBook *book, const char *message,
|
test_numeric_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncJob *, gnc_numeric),
|
void (*set) (GncJob *, gnc_numeric),
|
||||||
gnc_numeric (*get)(GncJob *))
|
gnc_numeric (*get)(const GncJob *))
|
||||||
{
|
{
|
||||||
GncJob *job = gncJobCreate (book);
|
GncJob *job = gncJobCreate (book);
|
||||||
gnc_numeric num = gnc_numeric_create (17, 1);
|
gnc_numeric num = gnc_numeric_create (17, 1);
|
||||||
@ -195,7 +195,7 @@ test_numeric_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_bool_fcn (QofBook *book, const char *message,
|
test_bool_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncJob *, gboolean),
|
void (*set) (GncJob *, gboolean),
|
||||||
gboolean (*get) (GncJob *))
|
gboolean (*get) (const GncJob *))
|
||||||
{
|
{
|
||||||
GncJob *job = gncJobCreate (book);
|
GncJob *job = gncJobCreate (book);
|
||||||
gboolean num = get_random_boolean ();
|
gboolean num = get_random_boolean ();
|
||||||
@ -216,7 +216,7 @@ test_bool_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_gint_fcn (QofBook *book, const char *message,
|
test_gint_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncJob *, gint),
|
void (*set) (GncJob *, gint),
|
||||||
gint (*get) (GncJob *))
|
gint (*get) (const GncJob *))
|
||||||
{
|
{
|
||||||
GncJob *job = gncJobCreate (book);
|
GncJob *job = gncJobCreate (book);
|
||||||
gint num = 17;
|
gint num = 17;
|
||||||
|
@ -37,25 +37,25 @@ static int count = 0;
|
|||||||
static void
|
static void
|
||||||
test_string_fcn (QofBook *book, const char *message,
|
test_string_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncVendor *, const char *str),
|
void (*set) (GncVendor *, const char *str),
|
||||||
const char * (*get)(GncVendor *));
|
const char * (*get)(const GncVendor *));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static void
|
static void
|
||||||
test_numeric_fcn (QofBook *book, const char *message,
|
test_numeric_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncVendor *, gnc_numeric),
|
void (*set) (GncVendor *, gnc_numeric),
|
||||||
gnc_numeric (*get)(GncVendor *));
|
gnc_numeric (*get)(const GncVendor *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_bool_fcn (QofBook *book, const char *message,
|
test_bool_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncVendor *, gboolean),
|
void (*set) (GncVendor *, gboolean),
|
||||||
gboolean (*get) (GncVendor *));
|
gboolean (*get) (const GncVendor *));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static void
|
static void
|
||||||
test_gint_fcn (QofBook *book, const char *message,
|
test_gint_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncVendor *, gint),
|
void (*set) (GncVendor *, gint),
|
||||||
gint (*get) (GncVendor *));
|
gint (*get) (const GncVendor *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -138,7 +138,7 @@ test_vendor (void)
|
|||||||
static void
|
static void
|
||||||
test_string_fcn (QofBook *book, const char *message,
|
test_string_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncVendor *, const char *str),
|
void (*set) (GncVendor *, const char *str),
|
||||||
const char * (*get)(GncVendor *))
|
const char * (*get)(const GncVendor *))
|
||||||
{
|
{
|
||||||
GncVendor *vendor = gncVendorCreate (book);
|
GncVendor *vendor = gncVendorCreate (book);
|
||||||
char const *str = get_random_string ();
|
char const *str = get_random_string ();
|
||||||
@ -157,7 +157,7 @@ test_string_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_numeric_fcn (QofBook *book, const char *message,
|
test_numeric_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncVendor *, gnc_numeric),
|
void (*set) (GncVendor *, gnc_numeric),
|
||||||
gnc_numeric (*get)(GncVendor *))
|
gnc_numeric (*get)(const GncVendor *))
|
||||||
{
|
{
|
||||||
GncVendor *vendor = gncVendorCreate (book);
|
GncVendor *vendor = gncVendorCreate (book);
|
||||||
gnc_numeric num = gnc_numeric_create (17, 1);
|
gnc_numeric num = gnc_numeric_create (17, 1);
|
||||||
@ -176,7 +176,7 @@ test_numeric_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_bool_fcn (QofBook *book, const char *message,
|
test_bool_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncVendor *, gboolean),
|
void (*set) (GncVendor *, gboolean),
|
||||||
gboolean (*get) (GncVendor *))
|
gboolean (*get) (const GncVendor *))
|
||||||
{
|
{
|
||||||
GncVendor *vendor = gncVendorCreate (book);
|
GncVendor *vendor = gncVendorCreate (book);
|
||||||
gboolean num = get_random_boolean ();
|
gboolean num = get_random_boolean ();
|
||||||
@ -197,7 +197,7 @@ test_bool_fcn (QofBook *book, const char *message,
|
|||||||
static void
|
static void
|
||||||
test_gint_fcn (QofBook *book, const char *message,
|
test_gint_fcn (QofBook *book, const char *message,
|
||||||
void (*set) (GncVendor *, gint),
|
void (*set) (GncVendor *, gint),
|
||||||
gint (*get) (GncVendor *))
|
gint (*get) (const GncVendor *))
|
||||||
{
|
{
|
||||||
GncVendor *vendor = gncVendorCreate (book);
|
GncVendor *vendor = gncVendorCreate (book);
|
||||||
gint num = 17;
|
gint num = 17;
|
||||||
|
Loading…
Reference in New Issue
Block a user