projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First step in making struct variable opaque: the boring mechanical
[pspp-builds.git]
/
src
/
language
/
dictionary
/
numeric.c
diff --git
a/src/language/dictionary/numeric.c
b/src/language/dictionary/numeric.c
index b7ad96eb7440d9eb7cb5dc244c3aa00eee4bb9dd..29155961b1daf6dc8fd2e8b1c0c74876f127225b 100644
(file)
--- a/
src/language/dictionary/numeric.c
+++ b/
src/language/dictionary/numeric.c
@@
-85,7
+85,7
@@
cmd_numeric (struct lexer *lexer, struct dataset *ds)
else
{
if (f.type != -1)
else
{
if (f.type != -1)
-
new_var->print = new_var->write = f
;
+
var_set_both_formats (new_var, &f)
;
}
}
}
}
@@
-152,7
+152,7
@@
cmd_string (struct lexer *lexer, struct dataset *ds)
if (!new_var)
msg (SE, _("There is already a variable named %s."), v[i]);
else
if (!new_var)
msg (SE, _("There is already a variable named %s."), v[i]);
else
-
new_var->print = new_var->write = f
;
+
var_set_both_formats (new_var, &f)
;
}
/* Clean up. */
}
/* Clean up. */