projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed constness
[pspp-builds.git]
/
src
/
frequencies.q
diff --git
a/src/frequencies.q
b/src/frequencies.q
index 50b11f37d00d22768f3825d0e166bfa59006f602..0ca83a45b29e95f866aaedc8d521c81b234ced19 100644
(file)
--- a/
src/frequencies.q
+++ b/
src/frequencies.q
@@
-14,8
+14,8
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
/*
TODO:
/*
TODO:
@@
-51,6
+51,11
@@
#include "vfm.h"
#include "settings.h"
#include "chart.h"
#include "vfm.h"
#include "settings.h"
#include "chart.h"
+
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+#define N_(msgid) msgid
+
/* (headers) */
#include "debug-print.h"
/* (headers) */
#include "debug-print.h"
@@
-692,7
+697,7
@@
not_missing (const void *f_, void *v_)
const struct freq *f = f_;
struct variable *v = v_;
const struct freq *f = f_;
struct variable *v = v_;
- return !
is_missing (&f->v,
v);
+ return !
mv_is_value_missing (&v->miss, &f->
v);
}
/* Summarizes the frequency table data for variable V. */
}
/* Summarizes the frequency table data for variable V. */
@@
-702,7
+707,7
@@
postprocess_freq_tab (struct variable *v)
hsh_compare_func *compare;
struct freq_tab *ft;
size_t count;
hsh_compare_func *compare;
struct freq_tab *ft;
size_t count;
- void **data;
+ void *
const
*data;
struct freq *freqs, *f;
size_t i;
struct freq *freqs, *f;
size_t i;
@@
-868,7
+873,7
@@
frq_custom_grouped (struct cmd_frequencies *cmd UNUSED)
{
nl = ml = 0;
dl = NULL;
{
nl = ml = 0;
dl = NULL;
- while (
token == T_NUM
)
+ while (
lex_integer ()
)
{
if (nl >= ml)
{
{
if (nl >= ml)
{
@@
-1559,7
+1564,7
@@
freq_tab_to_hist(const struct freq_tab *ft, const struct variable *var)
/* Find out the extremes of the x value */
for ( frq = hsh_first(fh, &hi); frq != 0; frq = hsh_next(fh, &hi) )
{
/* Find out the extremes of the x value */
for ( frq = hsh_first(fh, &hi); frq != 0; frq = hsh_next(fh, &hi) )
{
- if (
is_missing(&frq->v, var
))
+ if (
mv_is_value_missing(&var->miss, &frq->v
))
continue;
if ( frq->v.f < x_min ) x_min = frq->v.f ;
continue;
if ( frq->v.f < x_min ) x_min = frq->v.f ;