projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start of new branch involving major rewrite of lib/gtksheet/*
[pspp-builds.git]
/
src
/
ui
/
gui
/
t-test-independent-samples-dialog.c
diff --git
a/src/ui/gui/t-test-independent-samples-dialog.c
b/src/ui/gui/t-test-independent-samples-dialog.c
index d5f9eaa6406c7908f96f8f55f35269642f5d13e6..9c3ea41daeb3f4511884ac6be6c6a359ad2af7f7 100644
(file)
--- a/
src/ui/gui/t-test-independent-samples-dialog.c
+++ b/
src/ui/gui/t-test-independent-samples-dialog.c
@@
-29,7
+29,7
@@
#include "dict-display.h"
#include "widget-io.h"
#include "t-test-options.h"
#include "dict-display.h"
#include "widget-io.h"
#include "t-test-options.h"
-#include <
libpspp
/syntax-gen.h>
+#include <
ui
/syntax-gen.h>
#include <language/syntax-string-source.h>
#include "syntax-editor.h"
#include <language/syntax-string-source.h>
#include "syntax-editor.h"
@@
-177,9
+177,8
@@
generate_syntax (const struct tt_indep_samples_dialog *d)
if ( var_is_alpha (group_variable))
{
if ( var_is_alpha (group_variable))
{
- struct string s;
- ds_init_cstr (&s, d->grps->val[0]);
- gen_quoted_string (&s);
+ struct string s = DS_EMPTY_INITIALIZER;
+ syntax_gen_string (&s, ss_cstr (d->grps->val[0]));
g_string_append (str, ds_cstr (&s));
ds_destroy (&s);
}
g_string_append (str, ds_cstr (&s));
ds_destroy (&s);
}
@@
-194,9
+193,8
@@
generate_syntax (const struct tt_indep_samples_dialog *d)
if ( var_is_alpha (group_variable))
{
if ( var_is_alpha (group_variable))
{
- struct string s;
- ds_init_cstr (&s, d->grps->val[1]);
- gen_quoted_string (&s);
+ struct string s = DS_EMPTY_INITIALIZER;
+ syntax_gen_string (&s, ss_cstr (d->grps->val[1]));
g_string_append (str, ds_cstr (&s));
ds_destroy (&s);
}
g_string_append (str, ds_cstr (&s));
ds_destroy (&s);
}