X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Flanguage%2Fdictionary%2Fvariable-label.c;h=dcd607fe05f3fb71eacea8ecc4c02538ede1ab99;hb=0188d216a999f6f45ccb98f6ee40bb82c13ac7fd;hp=bc171a296ebb8c02c65db2843a3569d77633b836;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp-builds.git diff --git a/src/language/dictionary/variable-label.c b/src/language/dictionary/variable-label.c index bc171a29..dcd607fe 100644 --- a/src/language/dictionary/variable-label.c +++ b/src/language/dictionary/variable-label.c @@ -18,20 +18,21 @@ 02110-1301, USA. */ #include + #include #include -#include + +#include +#include #include -#include #include +#include +#include #include -#include #include "gettext.h" #define _(msgid) gettext (msgid) -#include - int cmd_variable_labels (void) { @@ -43,13 +44,13 @@ cmd_variable_labels (void) size_t i; if (!parse_variables (default_dict, &v, &nv, PV_NONE)) - return CMD_PART_SUCCESS_MAYBE; + return CMD_FAILURE; if (token != T_STRING) { msg (SE, _("String expected for variable label.")); free (v); - return CMD_PART_SUCCESS_MAYBE; + return CMD_FAILURE; } if (ds_length (&tokstr) > 255) { @@ -60,7 +61,7 @@ cmd_variable_labels (void) { if (v[i]->label) free (v[i]->label); - v[i]->label = xstrdup (ds_c_str (&tokstr)); + v[i]->label = ds_xstrdup (&tokstr); } lex_get ();