* src/engine/QueryNew.h: change QUERY_FIRST_TERM to a #define.

It does not need to be part of the enum (it's not even used anywhere)
	* src/engine/QueryCore.h: gint32 prints as a "%d", not a "%ld".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8635 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-06-17 21:29:22 +00:00
parent c8b10ef11c
commit 426e3068fa
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-06-17 Derek Atkins <derek@ihtfp.com>
* src/engine/QueryNew.h: change QUERY_FIRST_TERM to a #define.
It does not need to be part of the enum (it's not even used anywhere)
* src/engine/QueryCore.h: gint32 prints as a "%d", not a "%ld".
2003-06-16 David Hampton <hampton@employees.org>
* src/gnome/window-register.c: Register with the component manager

View File

@ -730,7 +730,7 @@ static char * int32_to_string (gpointer object, QueryAccess get)
{
gint32 num = ((query_int32_getter)get)(object);
return g_strdup_printf ("%ld", num);
return g_strdup_printf ("%d", num);
}
/* ================================================================ */

View File

@ -38,7 +38,6 @@ typedef struct querynew_s QueryNew;
/** Query Term Operators, for combining Query Terms */
typedef enum {
QUERY_FIRST_TERM=1, /* First/only term is same as 'and' */
QUERY_AND=1,
QUERY_OR,
QUERY_NAND,
@ -46,6 +45,9 @@ typedef enum {
QUERY_XOR
} QueryOp;
/* First/only term is same as 'and' */
#define QUERY_FIRST_TERM QUERY_AND
/** Default sort object type */
#define QUERY_DEFAULT_SORT "GnucashQueryDefaultSortObject"