projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some comments where needed
[pspp]
/
src
/
language
/
dictionary
/
modify-variables.c
diff --git
a/src/language/dictionary/modify-variables.c
b/src/language/dictionary/modify-variables.c
index cd5016910d61242c0c6afa8698a8f43553d38308..8de2ee18183161d824cf187743dbcf95276cdfb6 100644
(file)
--- a/
src/language/dictionary/modify-variables.c
+++ b/
src/language/dictionary/modify-variables.c
@@
-28,7
+28,6
@@
#include <libpspp/array.h>
#include <libpspp/bit-vector.h>
#include <libpspp/compiler.h>
#include <libpspp/array.h>
#include <libpspp/bit-vector.h>
#include <libpspp/compiler.h>
-#include <libpspp/hash.h>
#include <libpspp/message.h>
#include <libpspp/misc.h>
#include <libpspp/str.h>
#include <libpspp/message.h>
#include <libpspp/misc.h>
#include <libpspp/str.h>
@@
-111,7
+110,7
@@
cmd_modify_vars (struct lexer *lexer, struct dataset *ds)
if (already_encountered & 1)
{
if (already_encountered & 1)
{
- msg (SE, _("
REORDER subcommand may be given at most once.")
);
+ msg (SE, _("
%s subcommand may be given at most once."), "REORDER"
);
goto done;
}
already_encountered |= 1;
goto done;
}
already_encountered |= 1;
@@
-144,7
+143,7
@@
cmd_modify_vars (struct lexer *lexer, struct dataset *ds)
{
if (!lex_match (lexer, '('))
{
{
if (!lex_match (lexer, '('))
{
- msg (SE, _("`(' expected on
REORDER subcommand.")
);
+ msg (SE, _("`(' expected on
%s subcommand."), "REORDER"
);
free (v);
goto done;
}
free (v);
goto done;
}
@@
-174,7
+173,7
@@
cmd_modify_vars (struct lexer *lexer, struct dataset *ds)
{
if (already_encountered & 2)
{
{
if (already_encountered & 2)
{
- msg (SE, _("
RENAME subcommand may be given at most once.")
);
+ msg (SE, _("
%s subcommand may be given at most once."), "RENAME"
);
goto done;
}
already_encountered |= 2;
goto done;
}
already_encountered |= 2;
@@
-187,7
+186,7
@@
cmd_modify_vars (struct lexer *lexer, struct dataset *ds)
if (!lex_match (lexer, '('))
{
if (!lex_match (lexer, '('))
{
- msg (SE, _("`(' expected on
RENAME subcommand.")
);
+ msg (SE, _("`(' expected on
%s subcommand."), "RENAME"
);
goto done;
}
if (!parse_variables (lexer, dataset_dict (ds),
goto done;
}
if (!parse_variables (lexer, dataset_dict (ds),