X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Futilities%2Ftitle.c;h=18e4bb2745068af5f6e156e8642b4d1f497ca070;hb=fb67d7201c231228f4a528f0c10d1cd17cddd6c5;hp=15e5a404983a1d85fa321b825691b52b927b993c;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp diff --git a/src/language/utilities/title.c b/src/language/utilities/title.c index 15e5a40498..18e4bb2745 100644 --- a/src/language/utilities/title.c +++ b/src/language/utilities/title.c @@ -18,24 +18,24 @@ 02110-1301, USA. */ #include + #include #include -#include -#include + #include -#include +#include +#include +#include #include -#include +#include +#include #include -#include #include -#include +#include #include "gettext.h" #define _(msgid) gettext (msgid) -#include - static int get_title (const char *cmd, char **title); int @@ -56,7 +56,6 @@ get_title (const char *cmd, char **title) int c; c = lex_look_ahead (); - debug_printf ((_("%s before: %s\n"), cmd, *title ? *title : _(""))); if (c == '"' || c == '\'') { lex_get (); @@ -64,7 +63,7 @@ get_title (const char *cmd, char **title) return CMD_FAILURE; if (*title) free (*title); - *title = xstrdup (ds_c_str (&tokstr)); + *title = ds_xstrdup (&tokstr); lex_get (); if (token != '.') { @@ -84,7 +83,6 @@ get_title (const char *cmd, char **title) *cp = toupper ((unsigned char) (*cp)); token = '.'; } - debug_printf ((_("%s after: %s\n"), cmd, *title)); return CMD_SUCCESS; }