projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make q2c link under mingw32, by eliminating the dependency on
[pspp]
/
src
/
data
/
format.c
diff --git
a/src/data/format.c
b/src/data/format.c
index e2b163a5097549625637954087e1688a740f56ca..b925f3cf336ffb4115d6f77370a2157b6a35c580 100644
(file)
--- a/
src/data/format.c
+++ b/
src/data/format.c
@@
-1,6
+1,5
@@
/* PSPP - computes sample statistics.
Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
/* PSPP - computes sample statistics.
Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
- Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@
-597,6
+596,8
@@
fmt_dollar_template (const struct fmt_spec *fmt)
struct string s = DS_EMPTY_INITIALIZER;
int c;
struct string s = DS_EMPTY_INITIALIZER;
int c;
+ assert (fmt->type == FMT_DOLLAR);
+
ds_put_char (&s, '$');
for (c = MAX (fmt->w - fmt->d - 1, 0); c > 0; )
{
ds_put_char (&s, '$');
for (c = MAX (fmt->w - fmt->d - 1, 0); c > 0; )
{
@@
-609,7
+610,7
@@
fmt_dollar_template (const struct fmt_spec *fmt)
}
if (fmt->d > 0)
{
}
if (fmt->d > 0)
{
- ds_put_char (&s,
'.'
);
+ ds_put_char (&s,
fmt_decimal_char (fmt->type)
);
ds_put_char_multiple (&s, '#', fmt->d);
}
ds_put_char_multiple (&s, '#', fmt->d);
}