#include <config.h>
#include <stdio.h>
#include "gettext.h"
-#include "command.h"
-#include "lexer.h"
-#include "moments.h"
+#include <language/command.h>
+#include <language/lexer/lexer.h>
+#include <math/moments.h>
+#include <math.h>
+#include <stdlib.h>
+#include "xalloc.h"
#define _(msgid) gettext (msgid)
-static int
+static bool
read_values (double **values, double **weights, size_t *cnt)
{
size_t cap = 0;
if (!lex_is_number ())
{
lex_error (_("expecting weight value"));
- return 0;
+ return false;
}
weight = tokval;
lex_get ();
(*cnt)++;
}
- return 1;
+ return true;
}
int