Create a QOF_SCANF_LLD (because we cannot use the printf version).

Keep the deprecated GNC_SCANF_LLD defined in terms of the new
QOF_SCANF_LLD.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13764 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2006-04-10 22:13:46 +00:00
parent 5028d178ea
commit f9d1f3e42f
3 changed files with 14 additions and 5 deletions

View File

@ -12,6 +12,12 @@
lots of other stuff that has nothing to do with glib.h. Note
that this revision wont build, but I'll fix that shortly.
* lib/libqof/qof/deprecated.h:
* lib/libqof/qof/qofutil.h:
Create a QOF_SCANF_LLD (because we cannot use the printf version).
Keep the deprecated GNC_SCANF_LLD defined in terms of the new
QOF_SCANF_LLD.
2006-04-08 David Hampton <hampton@employees.org>
* src/gnome-utils/account-quickfill.c: Eliminate some unnecessary

View File

@ -169,11 +169,7 @@ safe_strcasecmp() instead. */
#define SAFE_STRCASECMP(da,db) SAFE_STRCMP_REAL(strcasecmp,(da),(db))
/** \deprecated use qof_util_string_cache_insert instead. */
gpointer gnc_string_cache_insert(gconstpointer key);
#if HAVE_SCANF_LLD
# define GNC_SCANF_LLD "%lld" /**< \deprecated use G_GINT64_FORMAT instead. */
#else
# define GNC_SCANF_LLD "%qd" /**< \deprecated use G_GINT64_FORMAT instead. */
#endif
#define GNC_SCANF_LLD QOF_SCANF_LLD /**< \deprecated use QOF_SCANF_LLD instead. */
/** \deprecated use qof_util_stpcpy instead. */
gchar * gnc_stpcpy (gchar *dest, const gchar *src);
/** \deprecated use qof_init instead. */

View File

@ -40,6 +40,13 @@
#include "qofbook.h"
#include "qofinstance.h"
/** Do not use these for printf, only scanf */
#if HAVE_SCANF_LLD
# define QOF_SCANF_LLD "%lld"
#else
# define QOF_SCANF_LLD "%qd"
#endif
#define QOF_MOD_UTIL "qof-utilities"
/** \name typedef enum as string macros