projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved knowledge of pspp_linreg_cache out of pspp_coeff_init
[pspp]
/
src
/
language
/
command.c
diff --git
a/src/language/command.c
b/src/language/command.c
index 61d54f9c4d3403f54f2cf32151b663f2ee273025..a465aa0dad7c7f4692ec465782990f3592e9c7e3 100644
(file)
--- a/
src/language/command.c
+++ b/
src/language/command.c
@@
-34,6
+34,7
@@
#include <language/lexer/lexer.h>
#include <language/line-buffer.h>
#include <libpspp/alloc.h>
#include <language/lexer/lexer.h>
#include <language/line-buffer.h>
#include <libpspp/alloc.h>
+#include <libpspp/assertion.h>
#include <libpspp/compiler.h>
#include <libpspp/message.h>
#include <libpspp/message.h>
#include <libpspp/compiler.h>
#include <libpspp/message.h>
#include <libpspp/message.h>
@@
-421,7
+422,7
@@
find_command (const char *name)
for (cmd = commands; cmd < commands + command_cnt; cmd++)
if (!strcmp (cmd->name, name))
return cmd;
for (cmd = commands; cmd < commands + command_cnt; cmd++)
if (!strcmp (cmd->name, name))
return cmd;
-
abort
();
+
NOT_REACHED
();
}
/* Frees the WORD_CNT words in WORDS. */
}
/* Frees the WORD_CNT words in WORDS. */
@@
-595,7
+596,7
@@
report_state_mismatch (const struct command *command, enum cmd_state state)
else if (allowed_cnt == 3)
s = xasprintf (_("%s, %s, or %s"), allowed[0], allowed[1], allowed[2]);
else
else if (allowed_cnt == 3)
s = xasprintf (_("%s, %s, or %s"), allowed[0], allowed[1], allowed[2]);
else
-
abort
();
+
NOT_REACHED
();
msg (SE, _("%s is allowed only %s."), command->name, s);
msg (SE, _("%s is allowed only %s."), command->name, s);