projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix table function assertions to respect offsets.
[pspp]
/
src
/
sample.c
diff --git
a/src/sample.c
b/src/sample.c
index b721f2db9c1228464ed2b2c30486a63cfbf8cc08..67523b3d80ff62e65cd5185de4ce70ce26df7777 100644
(file)
--- a/
src/sample.c
+++ b/
src/sample.c
@@
-48,7
+48,7
@@
struct sample_trns
unsigned frac; /* TYPE_FRACTION: a fraction of UINT_MAX. */
};
unsigned frac; /* TYPE_FRACTION: a fraction of UINT_MAX. */
};
-
int sample_trns_proc (struct trns_header *, struct ccase *)
;
+
static trns_proc_func sample_trns_proc
;
int
cmd_sample (void)
int
cmd_sample (void)
@@
-59,8
+59,6
@@
cmd_sample (void)
int a, b;
unsigned frac;
int a, b;
unsigned frac;
- lex_match_id ("SAMPLE");
-
if (!lex_force_num ())
return CMD_FAILURE;
if (!lex_integer_p ())
if (!lex_force_num ())
return CMD_FAILURE;
if (!lex_integer_p ())
@@
-118,8
+116,10
@@
cmd_sample (void)
return lex_end_of_command ();
}
return lex_end_of_command ();
}
-int
-sample_trns_proc (struct trns_header * trns, struct ccase *c unused)
+/* Executes a SAMPLE transformation. */
+static int
+sample_trns_proc (struct trns_header * trns, struct ccase *c UNUSED,
+ int case_num UNUSED)
{
struct sample_trns *t = (struct sample_trns *) trns;
double U;
{
struct sample_trns *t = (struct sample_trns *) trns;
double U;