/[pspp]/pspp/src/examine.q
ViewVC logotype

Diff of /pspp/src/examine.q

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

revision 1.18 by jmd, Fri Jan 14 04:05:47 2005 UTC revision 1.19 by jmd, Tue Jan 18 11:31:45 2005 UTC
# Line 132  void box_plot_group(const struct factor Line 132  void box_plot_group(const struct factor
132    
133    
134  void box_plot_variables(const struct factor *fctr,  void box_plot_variables(const struct factor *fctr,
135                          struct variable **vars, int n_vars,                          const struct variable **vars, int n_vars,
136                          const struct variable *id                          const struct variable *id
137                          );                          );
138    
# Line 211  cmd_examine(void) Line 211  cmd_examine(void)
211    multipass_procedure_with_splits (run_examine, &cmd);    multipass_procedure_with_splits (run_examine, &cmd);
212    
213    if ( totals )    if ( totals )
214      free(totals);      free( totals );
215      
216      if ( dependent_vars )
217        free (dependent_vars);
218    
219    subc_list_double_destroy(&percentile_list);    subc_list_double_destroy(&percentile_list);
220    
# Line 485  xmn_custom_variables(struct cmd_examine Line 488  xmn_custom_variables(struct cmd_examine
488    assert(n_dependent_vars);    assert(n_dependent_vars);
489    
490    totals = xmalloc( sizeof(struct metrics) * n_dependent_vars);    totals = xmalloc( sizeof(struct metrics) * n_dependent_vars);
491      memset ( totals, 0, sizeof(struct metrics) * n_dependent_vars);
492    
493    if ( lex_match(T_BY))    if ( lex_match(T_BY))
494      {      {
# Line 786  run_examine(const struct casefile *cf, v Line 790  run_examine(const struct casefile *cf, v
790    
791    output_examine();    output_examine();
792    
793    for ( v = 0 ; v < n_dependent_vars ; ++v )  
794      hsh_destroy(totals[v].ordered_data);    if ( totals )
795        {
796          int i;
797          for ( i = 0 ; i < n_dependent_vars ; ++i )
798            metrics_destroy(&totals[i]);
799        }
800    
801  }  }
802    
# Line 1623  populate_descriptives(struct tab_table * Line 1632  populate_descriptives(struct tab_table *
1632    
1633  void  void
1634  box_plot_variables(const struct factor *fctr,  box_plot_variables(const struct factor *fctr,
1635                     struct variable **vars, int n_vars,                     const struct variable **vars, int n_vars,
1636                     const struct variable *id)                     const struct variable *id)
1637  {  {
1638    
# Line 1687  void Line 1696  void
1696  box_plot_group(const struct factor *fctr,  box_plot_group(const struct factor *fctr,
1697                 const struct variable **vars,                 const struct variable **vars,
1698                 int n_vars,                 int n_vars,
1699                 const struct variable *id)                 const struct variable *id UNUSED)
1700  {  {
1701    
1702    int i;    int i;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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