From a889712da2f24b0789587d2b422672787fbb18ed Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Wed, 28 May 2003 23:35:35 +0000 Subject: [PATCH] cleanup old utilities git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8419 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/file/io-gncbin-r.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/backend/file/io-gncbin-r.c b/src/backend/file/io-gncbin-r.c index d152beb0b7..af7ac32188 100644 --- a/src/backend/file/io-gncbin-r.c +++ b/src/backend/file/io-gncbin-r.c @@ -119,7 +119,7 @@ #define VERSION 10 -/* hack alert the current file format does not support most of the +/* The binary file format does not support most of the * new/improved account & transaction structures */ @@ -180,6 +180,11 @@ typedef struct { static GSList *potential_quotes; + +#define EPS (1.0e-6) +#define DEQEPS(x,y,eps) (((((x)+(eps))>(y)) ? 1 : 0) && ((((x)-(eps))<(y)) ? 1 : 0)) +#define DEQ(x,y) DEQEPS(x,y,EPS) + static void mark_potential_quote(Split *s, double price, double quantity) {