lex_match (lexer, T_EQUALS);
- for (; lex_token (lexer) != T_ENDCMD; )
+ for (; lex_token (lexer) != T_ENDCMD;)
{
lex_match (lexer, T_SLASH);
if (lex_match_id (lexer, "TESTVAL"))
if (NULL == (gvar = parse_variable (lexer, dict)))
goto exit;
- value_init (&gval0, var_get_width (gvar));
- value_init (&gval1, var_get_width (gvar));
+ gval_width = var_get_width (gvar);
+ value_init (&gval0, gval_width);
+ value_init (&gval1, gval_width);
int n;
if (lex_match (lexer, T_LPAREN))
PV_NO_DUPLICATE | PV_NUMERIC))
goto exit;
- if ( lex_match (lexer, T_WITH))
+ if (lex_match (lexer, T_WITH))
{
with = true;
if (!parse_variables_const (lexer, dict,
{
int i;
- if ( !with )
+ if (!with)
n_pairs = (n_v1 * (n_v1 - 1)) / 2.0;
- else if ( paired )
+ else if (paired)
n_pairs = n_v1;
else
n_pairs = n_v1 * n_v2;
pairs = xcalloc (n_pairs, sizeof *pairs);
- if ( with)
+ if (with)
{
int x = 0;
if (paired)
}
else if (lex_match_id (lexer, "VARIABLES"))
{
- if ( tt.mode == MODE_PAIRED)
+ if (tt.mode == MODE_PAIRED)
{
msg (SE, _("%s subcommand may not be used with %s."), "VARIABLES", "PAIRS");
goto exit;
PV_NO_DUPLICATE | PV_NUMERIC))
goto exit;
}
- else if ( lex_match_id (lexer, "MISSING"))
+ else if (lex_match_id (lexer, "MISSING"))
{
lex_match (lexer, T_EQUALS);
while (lex_token (lexer) != T_ENDCMD && lex_token (lexer) != T_SLASH)
else if (lex_match_id (lexer, "CRITERIA"))
{
lex_match (lexer, T_EQUALS);
- if ( lex_match_id (lexer, "CIN") || lex_force_match_id (lexer, "CI"))
- if ( lex_force_match (lexer, T_LPAREN))
+ if (lex_match_id (lexer, "CIN") || lex_force_match_id (lexer, "CI"))
+ if (lex_force_match (lexer, T_LPAREN))
{
if (!lex_force_num (lexer))
goto exit;
}
}
- if ( mode_count != 1)
+ if (mode_count != 1)
{
msg (SE, _("Exactly one of TESTVAL, GROUPS and PAIRS subcommands "
"must be specified."));
while (casegrouper_get_next_group (grouper, &group))
{
- if ( tt.mode == MODE_SINGLE)
+ if (tt.mode == MODE_SINGLE)
{
- if ( tt.missing_type == MISS_LISTWISE )
+ if (tt.missing_type == MISS_LISTWISE)
group = casereader_create_filter_missing (group,
tt.vars, tt.n_vars,
tt.exclude,
NULL, NULL);
one_sample_run (&tt, testval, group);
}
- else if ( tt.mode == MODE_PAIRED)
+ else if (tt.mode == MODE_PAIRED)
{
- if ( tt.missing_type == MISS_LISTWISE )
+ if (tt.missing_type == MISS_LISTWISE)
{
group = casereader_create_filter_missing (group,
v1, n_v1,
}
else /* tt.mode == MODE_INDEP */
{
- if ( tt.missing_type == MISS_LISTWISE )
+ if (tt.missing_type == MISS_LISTWISE)
{
group = casereader_create_filter_missing (group,
tt.vars, tt.n_vars,