/[pspp]/pspp/src/data-out.c
ViewVC logotype

Diff of /pspp/src/data-out.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by jmd, Sat Nov 26 22:49:57 2005 UTC revision 1.21 by blp, Sun Dec 11 02:48:45 2005 UTC
# Line 965  year4 (int year) Line 965  year4 (int year)
965  static int  static int
966  try_CCx (char *dst, const struct fmt_spec *fp, double number)  try_CCx (char *dst, const struct fmt_spec *fp, double number)
967  {  {
968    const struct set_cust_currency *cc = get_cc(fp->type - FMT_CCA);    const struct custom_currency *cc = get_cc(fp->type - FMT_CCA);
969    
970    struct fmt_spec f;    struct fmt_spec f;
971    
# Line 975  try_CCx (char *dst, const struct fmt_spe Line 975  try_CCx (char *dst, const struct fmt_spe
975    
976    /* Determine length available, decimal character for number    /* Determine length available, decimal character for number
977       proper. */       proper. */
978    f.type = cc->decimal == get_decimal() ? FMT_COMMA : FMT_DOT;    f.type = cc->decimal == get_decimal () ? FMT_COMMA : FMT_DOT;
979    f.w = fp->w - strlen (cc->prefix) - strlen (cc->suffix);    f.w = fp->w - strlen (cc->prefix) - strlen (cc->suffix);
980    if (number < 0)    if (number < 0)
981      f.w -= strlen (cc->neg_prefix) + strlen (cc->neg_suffix) - 1;      f.w -= strlen (cc->neg_prefix) + strlen (cc->neg_suffix) - 1;

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26