#include <string.h>
#include <stdlib.h>
-#include "missing-values.h"
-#include "value-labels.h"
-#include "format.h"
+#include <data/missing-values.h>
+#include <data/value-labels.h>
+#include <data/format.h>
#include "psppire-variable.h"
#include "psppire-dict.h"
gboolean
psppire_variable_set_decimals(struct PsppireVariable *pv, gint decimals)
{
+ struct fmt_spec fmt;
+
g_return_val_if_fail(pv, FALSE);
g_return_val_if_fail(pv->dict, FALSE);
g_return_val_if_fail(pv->v, FALSE);
- struct fmt_spec fmt = pv->v->write;
+ fmt = pv->v->write;
fmt.d = decimals;
gboolean
psppire_variable_set_width(struct PsppireVariable *pv, gint width)
{
+ struct fmt_spec fmt ;
g_return_val_if_fail(pv, FALSE);
g_return_val_if_fail(pv->dict, FALSE);
g_return_val_if_fail(pv->v, FALSE);
- struct fmt_spec fmt = pv->v->write;
+ fmt = pv->v->write;
fmt.w = width;
return pv->v->width;
}
+
+/* FIXME: This name is misleading */
gint
psppire_variable_get_index(const struct PsppireVariable *pv)
{