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

Diff of /pspp/src/frequencies.q

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

revision 1.39 by blp, Sun Aug 7 04:39:28 2005 UTC revision 1.40 by blp, Mon Oct 24 02:51:32 2005 UTC
# Line 188  static double scale, incr;     /* FIXME */ Line 188  static double scale, incr;     /* FIXME */
188  static int normal;              /* FIXME */  static int normal;              /* FIXME */
189    
190  /* Variables for which to calculate statistics. */  /* Variables for which to calculate statistics. */
191  static int n_variables;  static size_t n_variables;
192  static struct variable **v_variables;  static struct variable **v_variables;
193    
194  /* Arenas used to store semi-permanent storage. */  /* Arenas used to store semi-permanent storage. */
# Line 493  static int Line 493  static int
493  calc (struct ccase *c, void *aux UNUSED)  calc (struct ccase *c, void *aux UNUSED)
494  {  {
495    double weight;    double weight;
496    int i;    size_t i;
497    int bad_warn = 1;    int bad_warn = 1;
498    
499    weight = dict_get_case_weight (default_dict, c, &bad_warn);    weight = dict_get_case_weight (default_dict, c, &bad_warn);
# Line 547  calc (struct ccase *c, void *aux UNUSED) Line 547  calc (struct ccase *c, void *aux UNUSED)
547  static void  static void
548  precalc (void *aux UNUSED)  precalc (void *aux UNUSED)
549  {  {
550    int i;    size_t i;
551    
552    pool_destroy (gen_pool);    pool_destroy (gen_pool);
553    gen_pool = pool_create ();    gen_pool = pool_create ();
# Line 591  precalc (void *aux UNUSED) Line 591  precalc (void *aux UNUSED)
591  static void  static void
592  postcalc (void *aux UNUSED)  postcalc (void *aux UNUSED)
593  {  {
594    int i;    size_t i;
595    
596    for (i = 0; i < n_variables; i++)    for (i = 0; i < n_variables; i++)
597      {      {
# Line 773  frq_custom_variables (struct cmd_frequen Line 773  frq_custom_variables (struct cmd_frequen
773    int mode;    int mode;
774    int min = 0, max = 0;    int min = 0, max = 0;
775    
776    int old_n_variables = n_variables;    size_t old_n_variables = n_variables;
777    int i;    size_t i;
778    
779    lex_match ('=');    lex_match ('=');
780    if (token != T_ALL && (token != T_ID    if (token != T_ALL && (token != T_ID
# Line 856  frq_custom_grouped (struct cmd_frequenci Line 856  frq_custom_grouped (struct cmd_frequenci
856        || token == T_ID)        || token == T_ID)
857      for (;;)      for (;;)
858        {        {
859          int i;          size_t i;
860    
861          /* Max, current size of list; list itself. */          /* Max, current size of list; list itself. */
862          int nl, ml;          int nl, ml;
863          double *dl;          double *dl;
864    
865          /* Variable list. */          /* Variable list. */
866          int n;          size_t n;
867          struct variable **v;          struct variable **v;
868    
869          if (!parse_variables (default_dict, &v, &n,          if (!parse_variables (default_dict, &v, &n,

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