From 7e47c69e0b943c5e113eb3cdc9c8e44f30e4ced9 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 5 Apr 2004 00:09:15 +0000 Subject: [PATCH] Fixed some problems encountered when compiling under Cygwin --- pref.h.orig | 5 +++++ src/t-test.q | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pref.h.orig b/pref.h.orig index b79ce578..6ae22997 100644 --- a/pref.h.orig +++ b/pref.h.orig @@ -133,3 +133,8 @@ /* Define to exclude the PostScript and Encapsulated PostScript driver. */ /* #define NO_POSTSCRIPT 1 */ + +/* Non ansi compilers may set this */ +#ifndef P_tmpdir +#define P_tmpdir "/tmp" +#endif diff --git a/src/t-test.q b/src/t-test.q index 3baa983a..172f236d 100644 --- a/src/t-test.q +++ b/src/t-test.q @@ -901,8 +901,8 @@ trbox_independent_samples_init(struct trbox *self, tab_text(self->t,10,2, TAB_CENTER | TAT_TITLE,_("Upper")); tab_joint_text(self->t, 9, 1, 10, 1, TAB_CENTER | TAT_PRINTF, - _("%d%% Confidence Interval of the Difference"), - (int)round(cmd->criteria*100.0)); + _("%g%% Confidence Interval of the Difference"), + cmd->criteria*100.0); } @@ -1053,8 +1053,8 @@ trbox_paired_init(struct trbox *self, tab_vline(self->t,TAL_0,6,0,1); tab_joint_text(self->t, 5, 1, 6, 1, TAB_CENTER | TAT_PRINTF, - _("%d%% Confidence Interval of the Difference"), - (int)round(cmd->criteria*100.0)); + _("%g%% Confidence Interval of the Difference"), + cmd->criteria*100.0); tab_text (self->t, 2, 2, TAB_CENTER | TAT_TITLE, _("Mean")); tab_text (self->t, 3, 2, TAB_CENTER | TAT_TITLE, _("Std. Deviation")); @@ -1148,8 +1148,8 @@ trbox_one_sample_init(struct trbox *self, struct cmd_t_test *cmd ) tab_joint_text(self->t,5,1,6,1,TAB_CENTER | TAT_PRINTF, - _("%d%% Confidence Interval of the Difference"), - (int)round(cmd->criteria*100.0)); + _("%g%% Confidence Interval of the Difference"), + cmd->criteria*100.0); tab_vline(self->t,TAL_0,6,1,1); tab_hline(self->t,TAL_1,5,6,2); -- 2.30.2