/[pspp]/pspp/src/t-test.q
ViewVC logotype

Diff of /pspp/src/t-test.q

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

revision 1.39 by jmd, Mon Jan 24 04:29:53 2005 UTC revision 1.40 by blp, Fri Feb 11 08:22:05 2005 UTC
# Line 224  static int  group_calc (const struct cca Line 224  static int  group_calc (const struct cca
224  static void group_postcalc (struct cmd_t_test *);  static void group_postcalc (struct cmd_t_test *);
225    
226    
 static int compare_var_name (const void *a_, const void *b_, void *v_ UNUSED);  
 static unsigned hash_var_name (const void *a_, void *v_ UNUSED);  
   
227  static void calculate(const struct casefile *cf, void *_mode);  static void calculate(const struct casefile *cf, void *_mode);
228    
229  static  int mode;  static  int mode;
# Line 297  cmd_t_test(void) Line 294  cmd_t_test(void)
294            struct hsh_table *hash;            struct hsh_table *hash;
295            struct variable *v;            struct variable *v;
296    
297            hash=hsh_create(n_pairs,compare_var_name,hash_var_name,0,0);            hash = hsh_create (n_pairs, compare_var_names, hash_var_name, 0, 0);
298    
299            for (i=0; i < n_pairs; ++i)            for (i=0; i < n_pairs; ++i)
300              {              {
# Line 1584  one_sample_postcalc (struct cmd_t_test * Line 1581  one_sample_postcalc (struct cmd_t_test *
1581  }  }
1582    
1583    
   
 static int  
 compare_var_name (const void *a_, const void *b_, void *v_ UNUSED)  
 {  
   const struct variable *a = a_;  
   const struct variable *b = b_;  
   
   return strcmp(a->name,b->name);  
 }  
   
 static unsigned  
 hash_var_name (const void *a_, void *v_ UNUSED)  
 {  
   const struct variable *a = a_;  
   
   return hsh_hash_bytes (a->name, strlen(a->name));  
 }  
   
   
1584    
1585  static void  static void
1586  paired_precalc (struct cmd_t_test *cmd UNUSED)  paired_precalc (struct cmd_t_test *cmd UNUSED)

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

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