gui: Fix const-ness warning for measure_to_string() return type.
[pspp-builds.git] / src / ui / gui / var-display.h
index 83b05aec54933923d019193cf4070a6164c50fc8..62212c8e1e5fdd455d977d03e5d2470be2819603 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2007  Free Software Foundation
+   Copyright (C) 2007, 2011  Free Software Foundation
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #define VAR_DISPLAY 1
 
 #include <glib.h>
+#include <data/variable.h>
+#include "psppire-dict.h"
 
 struct variable;
 
+#define n_ALIGNMENTS 3
 
-gchar * name_to_string (const struct variable *var, GError **err);
-
-
-gchar * missing_values_to_string (const struct variable *pv, GError **err);
-
-gchar * measure_to_string (const struct variable *var, GError **err);
-
-gchar * label_to_string (const struct variable *var, GError **err);
+extern const gchar *const alignments[n_ALIGNMENTS + 1];
+extern const gchar *const measures[n_MEASURES + 1];
 
+gchar *missing_values_to_string (const PsppireDict *dict, const struct variable *pv, GError **err);
+const gchar *measure_to_string (const struct variable *var, GError **err);
 
 #endif