1 Mon May 1 18:17:52 2006 Ben Pfaff <blp@gnu.org>
3 Further clean up the CMD_* command result codes.
5 * command.c (cmd_result_is_valid): New function.
6 (cmd_result_is_success) Assert that argument is valid. Simplified
7 check to one for a positive result.
8 (cmd_result_is_failure) Assert that argument is valid. Simplified
9 check to one for a negative result.
10 (do_parse_command) Check that command's returned result is valid.
12 * command.h: (enum cmd_result) Renamed CMD_QUIT to CMD_FINISH and
13 updated all users. Removed CMD_END_SUBLOOP in favor of new
14 CMD_PRIVATE_FIRST...CMD_PRIVATE_LAST range. Changed failure codes
15 to have negative values.
17 Mon May 1 15:56:56 2006 Ben Pfaff <blp@gnu.org>
19 Remove vestiges of FILE TYPE support.
21 * command.def: Mark FILE TYPE, RECORD TYPE unimplemented.
23 Wed Apr 26 21:13:46 2006 Ben Pfaff <blp@gnu.org>
25 CLEAR TRANSFORMATIONS is unsafe as implemented. It's a fair
26 amount of work to implement it correctly, so make it
29 * command.c: (cmd_clear_transformations) Removed.
31 * command.def: Mark CLEAR TRANSFORMATIONS as unimplemented.
33 Wed Apr 26 13:06:42 2006 Ben Pfaff <blp@gnu.org>
35 Work on readline completion.
37 * command.c: (pspp_completion_function) Removed.
38 (pspp_attempted_completion_function) New function.
39 (command_generator) New function.
41 Wed Apr 26 13:04:48 2006 Ben Pfaff <blp@gnu.org>
43 Improve the way we handle the various parsing "states". Until now
44 we've hard-coded the state transitions in the command definition
45 file, but that's error-prone and, worse, it's redundant--we can
46 figure out what state we're in anyhow. We can cleanly handle
47 INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
49 * command.c: (cmd_result_is_success) New function.
50 (cmd_result_is_failure) New function.
51 (enum states) New enum.
52 (enum flags) New enum.
53 (struct command) Add states, flags members. Remove transition,
54 skip_entire_name, debug members. Renamed func member as function.
55 (macro DEFCMD) Removed.
56 (macro DBGCMD) Removed.
57 (macro SPCCMD) Removed.
58 (macro UNIMPL) Removed.
60 (macro UNIMPL_CMD) New.
61 (macro COMMAND_CNT) Changed to static const var, renamed
62 command_cnt. Updated all references.
63 (FILE_TYPE_okay) Removed.
64 (cmd_parse) Rewrote in terms of do_parse_command().
65 (do_parse_command) New function.
66 (find_command) New function.
67 (unknown_command_error) Use struct string to simplify code.
68 (parse_command_name) Recognize comment command names. Handle
69 flags. Don't reject testing-mode-only commands here--let higher
71 (verify_valid_command) New function.
72 (cmd_comment) New function.
74 * command.def: Completely rewritten and now sensibly organized.
76 * command.h: (enum STATE_*) Renamed CMD_STATE_*.
77 (CMD_*) Now "enum cmd_result". Added CMD_QUIT. New
78 CMD_END_SUBLOOP. Removed CMD_TRAILING_GARBAGE, CMD_PART_SUCCESS,
79 CMD_PART_SUCCESS_MAYBE and replaced all references by CMD_FAILURE.
80 Added CMD_NOT_IMPLEMENTED.
81 (macro DEFCMD) Removed.
82 (macro DBGCMD) Removed.
83 (macro SPCCMD) Removed.
84 (macro UNIMPL) Removed.
86 (macro UNIMPL_CMD) New.
88 Mon Apr 3 11:03:36 2006 Ben Pfaff <blp@gnu.org>
90 * list.q: (write_all_headers) Adapt to new html and output
93 (write_varname) Ditto.
94 (write_fallback_headers) Ditto.
95 (determine_layout) Ditto.
99 Thu Mar 2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
101 * Moved files from src directory