projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
57e8789
)
more work
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 28 Dec 2021 05:03:13 +0000
(21:03 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 13 Jan 2022 05:52:26 +0000
(21:52 -0800)
src/language/stats/ctables.c
patch
|
blob
|
history
diff --git
a/src/language/stats/ctables.c
b/src/language/stats/ctables.c
index 1b8ba198f83cca7c882e2b3140e729a698a7d270..624331ba5d108429fcd220aca672eef66de6be65 100644
(file)
--- a/
src/language/stats/ctables.c
+++ b/
src/language/stats/ctables.c
@@
-216,12
+216,7
@@
struct ctables_postcompute_expr
/* CTPO_CAT_RANGE.
XXX what about string ranges? */
/* CTPO_CAT_RANGE.
XXX what about string ranges? */
- struct
- {
- double low; /* -DBL_MAX for LO. */
- double high; /* DBL_MAX for HIGH. */
- }
- range;
+ double range[2];
/* CTPO_ADD, CTPO_SUB, CTPO_MUL, CTPO_DIV, CTPO_POW. */
struct ctables_postcompute_expr *subs[2];
/* CTPO_ADD, CTPO_SUB, CTPO_MUL, CTPO_DIV, CTPO_POW. */
struct ctables_postcompute_expr *subs[2];
@@
-1526,7
+1521,6
@@
cmd_ctables (struct lexer *lexer, struct dataset *ds)
if (!lex_force_match (lexer, T_SLASH))
break;
if (!lex_force_match (lexer, T_SLASH))
break;
- /* XXX Validate axes. */
while (!lex_match_id (lexer, "TABLE") && lex_token (lexer) != T_ENDCMD)
{
if (lex_match_id (lexer, "SLABELS"))
while (!lex_match_id (lexer, "TABLE") && lex_token (lexer) != T_ENDCMD)
{
if (lex_match_id (lexer, "SLABELS"))
@@
-1857,6
+1851,13
@@
cmd_ctables (struct lexer *lexer, struct dataset *ds)
goto error;
}
}
goto error;
}
}
+
+ if (t->row_labels != CTLP_NORMAL && t->col_labels != CTLP_NORMAL)
+ {
+ msg (SE, _("ROWLABELS and COLLABELS may not both be specified."));
+ goto error;
+ }
+
}
while (lex_token (lexer) != T_ENDCMD);
ctables_destroy (ct);
}
while (lex_token (lexer) != T_ENDCMD);
ctables_destroy (ct);