projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a dict parameter to data_in and dealt with the consequences.
[pspp-builds.git]
/
src
/
ui
/
gui
/
helper.c
diff --git
a/src/ui/gui/helper.c
b/src/ui/gui/helper.c
index b4b3872df3abecf00de49e2e36979a333cb7e2f1..d670002a467fc741bacafd4480f63782e97ef7b6 100644
(file)
--- a/
src/ui/gui/helper.c
+++ b/
src/ui/gui/helper.c
@@
-49,7
+49,7
@@
/* Formats a value according to FORMAT
The returned string must be freed when no longer required */
gchar *
/* Formats a value according to FORMAT
The returned string must be freed when no longer required */
gchar *
-value_to_text (union value v, PsppireDict *dict, struct fmt_spec format)
+value_to_text (union value v,
const
PsppireDict *dict, struct fmt_spec format)
{
gchar *s = 0;
{
gchar *s = 0;
@@
-63,6
+63,7
@@
value_to_text (union value v, PsppireDict *dict, struct fmt_spec format)
gboolean
text_to_value (const gchar *text, union value *v,
gboolean
text_to_value (const gchar *text, union value *v,
+ const PsppireDict *dict,
struct fmt_spec format)
{
bool ok;
struct fmt_spec format)
{
bool ok;
@@
-86,6
+87,7
@@
text_to_value (const gchar *text, union value *v,
msg_disable ();
ok = data_in (ss_cstr (text), LEGACY_NATIVE, format.type, 0, 0, 0,
msg_disable ();
ok = data_in (ss_cstr (text), LEGACY_NATIVE, format.type, 0, 0, 0,
+ dict->dict,
v, fmt_var_width (&format));
msg_enable ();
v, fmt_var_width (&format));
msg_enable ();