mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
g_warning -> PWARN
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6421 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4f4c394a76
commit
f8d85c21f1
@ -40,34 +40,41 @@
|
|||||||
#include "gnc-engine.h"
|
#include "gnc-engine.h"
|
||||||
#include "gnc-numeric.h"
|
#include "gnc-numeric.h"
|
||||||
|
|
||||||
|
static short module = MOD_ENGINE;
|
||||||
|
|
||||||
Timespec
|
Timespec
|
||||||
gnc_transaction_get_date_posted(Transaction *t) {
|
gnc_transaction_get_date_posted(Transaction *t)
|
||||||
|
{
|
||||||
Timespec result;
|
Timespec result;
|
||||||
xaccTransGetDatePostedTS(t, &result);
|
xaccTransGetDatePostedTS(t, &result);
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
Timespec
|
Timespec
|
||||||
gnc_transaction_get_date_entered(Transaction *t) {
|
gnc_transaction_get_date_entered(Transaction *t)
|
||||||
|
{
|
||||||
Timespec result;
|
Timespec result;
|
||||||
xaccTransGetDateEnteredTS(t, &result);
|
xaccTransGetDateEnteredTS(t, &result);
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
Timespec
|
Timespec
|
||||||
gnc_split_get_date_reconciled(Split *s) {
|
gnc_split_get_date_reconciled(Split *s)
|
||||||
|
{
|
||||||
Timespec result;
|
Timespec result;
|
||||||
xaccSplitGetDateReconciledTS(s, &result);
|
xaccSplitGetDateReconciledTS(s, &result);
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gnc_transaction_set_date_posted(Transaction *t, const Timespec d) {
|
gnc_transaction_set_date_posted(Transaction *t, const Timespec d)
|
||||||
|
{
|
||||||
xaccTransSetDatePostedTS(t, &d);
|
xaccTransSetDatePostedTS(t, &d);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gnc_transaction_set_date_entered(Transaction *t, const Timespec d) {
|
gnc_transaction_set_date_entered(Transaction *t, const Timespec d)
|
||||||
|
{
|
||||||
xaccTransSetDateEnteredTS(t, &d);
|
xaccTransSetDateEnteredTS(t, &d);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -716,7 +723,7 @@ gnc_scm2kvp_value (SCM value_scm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_warning ("unexpected type: %d", value_t);
|
PWARN ("unexpected type: %d", value_t);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -829,7 +836,7 @@ gnc_queryterm2scm (QueryTerm *qt)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
g_warning ("query type %d not supported", qt->data.type);
|
PWARN ("query type %d not supported", qt->data.type);
|
||||||
return SCM_BOOL_F;
|
return SCM_BOOL_F;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,6 @@
|
|||||||
# define P_tmpdir "/tmp"
|
# define P_tmpdir "/tmp"
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
||||||
/** Constants *******************************************************/
|
/** Constants *******************************************************/
|
||||||
#define DEBUG_GUID 0
|
#define DEBUG_GUID 0
|
||||||
#define BLOCKSIZE 4096
|
#define BLOCKSIZE 4096
|
||||||
@ -148,9 +147,7 @@ init_from_file(const char *filename, size_t max_size)
|
|||||||
|
|
||||||
file_bytes = init_from_stream(fp, max_size);
|
file_bytes = init_from_stream(fp, max_size);
|
||||||
|
|
||||||
#if DEBUG_GUID
|
PINFO ("guid_init got %u bytes from %s", file_bytes, filename);
|
||||||
g_warning ("guid_init got %u bytes from %s", file_bytes, filename);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
total += file_bytes;
|
total += file_bytes;
|
||||||
|
|
||||||
@ -343,12 +340,10 @@ guid_init(void)
|
|||||||
/* time in secs and clock ticks */
|
/* time in secs and clock ticks */
|
||||||
bytes += init_from_time();
|
bytes += init_from_time();
|
||||||
|
|
||||||
#if DEBUG_GUID
|
PINFO ("got %u bytes", bytes);
|
||||||
g_warning ("guid_init got %u bytes", bytes);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (bytes < THRESHOLD)
|
if (bytes < THRESHOLD)
|
||||||
g_warning("WARNING: guid_init only got %u bytes.\n"
|
PWARN("only got %u bytes.\n"
|
||||||
"The identifiers might not be very random.\n", bytes);
|
"The identifiers might not be very random.\n", bytes);
|
||||||
|
|
||||||
guid_initialized = TRUE;
|
guid_initialized = TRUE;
|
||||||
|
@ -38,11 +38,13 @@ exec guile -s $0 "$@"
|
|||||||
~S,
|
~S,
|
||||||
~S,
|
~S,
|
||||||
~S);\n
|
~S);\n
|
||||||
if(!c)
|
if(!c) {
|
||||||
g_warning(\"failed to create commodity for currency %s\", fullname);
|
PWARN(\"failed to create commodity for currency %s\", fullname);
|
||||||
else
|
} else {
|
||||||
if(!gnc_commodity_table_insert(table, c))
|
if(!gnc_commodity_table_insert(table, c)) {
|
||||||
g_warning(\"failed to insert %s into commodity table\", fullname);
|
PWARN(\"failed to insert %s into commodity table\", fullname);
|
||||||
|
}
|
||||||
|
}
|
||||||
}\n"
|
}\n"
|
||||||
fullname
|
fullname
|
||||||
namespace
|
namespace
|
||||||
@ -78,4 +80,4 @@ exec guile -s $0 "$@"
|
|||||||
|
|
||||||
;; Local Variables:
|
;; Local Variables:
|
||||||
;; mode: scheme
|
;; mode: scheme
|
||||||
;; End:
|
;; End:
|
||||||
|
Loading…
Reference in New Issue
Block a user