/[pspp]/pspp/src/aggregate.c
ViewVC logotype

Diff of /pspp/src/aggregate.c

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

revision 1.30 by blp, Sun Mar 20 07:08:32 2005 UTC revision 1.31 by blp, Tue Apr 5 05:29:58 2005 UTC
# Line 545  parse_aggregate_functions (struct agr_pr Line 545  parse_aggregate_functions (struct agr_pr
545                           || function->alpha_type == NUMERIC)                           || function->alpha_type == NUMERIC)
546                    {                    {
547                      destvar = dict_create_var (agr->dict, dest[i], 0);                      destvar = dict_create_var (agr->dict, dest[i], 0);
548                                                if (destvar != NULL)
549                      if ((func_index == N || func_index == NMISS)                        {
550                          && dict_get_weight (default_dict) != NULL)                          if ((func_index == N || func_index == NMISS)
551                        destvar->print = destvar->write = f8_2;                              && dict_get_weight (default_dict) != NULL)
552                      else                            destvar->print = destvar->write = f8_2;
553                        destvar->print = destvar->write = function->format;                          else
554                              destvar->print = destvar->write = function->format;
555                          }
556                    }                    }
                 else  
                   destvar = dict_create_var (agr->dict, dest[i],  
                                              v->src->width);  
557                } else {                } else {
558                  v->src = NULL;                  v->src = NULL;
559                  destvar = dict_create_var (agr->dict, dest[i], 0);                  destvar = dict_create_var (agr->dict, dest[i], 0);
# Line 572  parse_aggregate_functions (struct agr_pr Line 571  parse_aggregate_functions (struct agr_pr
571                             "the aggregate variables and the break "                             "the aggregate variables and the break "
572                             "variables."),                             "variables."),
573                       dest[i]);                       dest[i]);
                 free (dest[i]);  
574                  goto error;                  goto error;
575                }                }
576    

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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