1 2008-03-04 Ben Pfaff <blp@gnu.org>
3 Patch #6441. Reviewed by John Darrington.
5 * command.def: Add DEBUG FORMAT GUESSER command.
7 2007-12-04 Ben Pfaff <blp@gnu.org>
9 * command.def: Add GET DATA command.
11 2007-11-05 Ben Pfaff <blp@gnu.org>
13 Patch #6258. Reviewed by John Darrington.
15 * command.c (report_state_mismatch): Replace code to construct an
16 error message from bits and pieces by a switch statement that
17 hard-codes each possible error. Makes i18n easier.
18 Suggested by Chusslove Illich <caslav.ilic@gmx.net>.
20 2007-09-22 Ben Pfaff <blp@gnu.org>
22 Bug #21128. Reviewed by John Darrington.
24 * command.def: Add DEBUG PAPER SIZE command.
26 2007-09-05 John Darrington <john@darrington.wattle.id.au>
28 * command.c (do_parse_command): Translate CMD_FAILURE into
29 CMD_CASCADING_FAILURE, if the ERRMODE_STOP is set on the syntax
32 2007-06-06 Ben Pfaff <blp@gnu.org>
34 * command.def: Add DEBUG DATASHEET command. Remove DEBUG CASEFILE
37 2007-03-18 Ben Pfaff <blp@gnu.org>
39 * syntax-string-source.c (close): Rename to do_close to avoid
40 conflict with POSIX function of the same name.
42 Thu Feb 8 15:04:42 2007 Ben Pfaff <blp@gnu.org>
44 Reduce platform dependence.
46 * command.c (shell): Always define this function, instead of only
47 in unix, but make it a stub when fork or execl is not available.
48 (run_command): Move parsing code into cmd_host.
49 (cmd_host): Drop unix dependence now that the shell function is
52 Sun Jan 21 15:31:52 WST 2007 John Darrington <john@darrington.wattle.id.au>
54 * command.c command.h: Renamed cmd_parse to cmd_parse_in_state.
55 New function cmd_parse.
57 Wed Dec 13 21:02:51 2006 Ben Pfaff <blp@gnu.org>
59 * command.def: Add DELETE VARS.
61 Sat Dec 16 22:15:55 2006 Ben Pfaff <blp@gnu.org>
63 Make it possible to pull cases from the active file with a
64 function call, instead of requiring indirection through a callback
67 * command.def: Marked MATRIX DATA as unimplemented.
69 Sun Dec 3 11:59:10 2006 Ben Pfaff <blp@gnu.org>
71 * syntax-file.c (read_syntax_file): Always read GETL_BATCH lines.
73 Wed Nov 29 19:35:44 WST 2006 John Darrington <john@darrington.wattle.id.au>
75 * command.c: Updated to reflect changed function names.
77 * line-buffer.c line-buffer.h: Removed. Guts of it moved to
78 libpspp/getl.[ch] The rest moved to files listed below.
80 * syntax-file.c syntax-file.h prompt.c prompt.h: New files.
82 Wed Nov 22 06:26:42 2006 Ben Pfaff <blp@gnu.org>
84 * command.def: HOST command needs F_KEEP_FINAL_TOKEN.
86 Sat Oct 28 16:15:56 WST 2006 John Darrington <john@darrington.wattle.id.au>
88 * linebuffer.c linebuffer.h: Moved getl_buf from here, into
91 Thu Oct 26 20:19:00 2006 Ben Pfaff <blp@gnu.org>
93 * command.def: Add DEBUG FLOAT FORMAT.
95 Fri Oct 20 10:59:06 WST 2006 John Darrington <john@darrington.wattle.id.au>
97 * command.def: Added additional unimpl commands.
99 Sun Oct 15 19:38:55 2006 Ben Pfaff <blp@gnu.org>
101 * command.c: (do_parse_command) Issue an error for unimplemented
102 commands, instead of silently ignoring them. Reported by John
105 Wed Jun 28 11:38:23 2006 Ben Pfaff <blp@gnu.org>
107 Don't offer both the full and abbreviated names for a single
108 command in command name completion.
110 * command.c: (enum flags) Add F_ABBREV flag.
111 (cmd_complete) Ignore command with F_ABBREV flag set.
113 * command.def: Add F_ABBREV to N, Q, SORT commands.
115 Tue Jun 27 22:36:38 2006 Ben Pfaff <blp@gnu.org>
117 Fix regression in command name completion reported by John
118 Darrington. Now completion is again state-dependent and occurs
119 only on the first line of a command.
121 * command.c (do_parse_command): Move reading the first token of
122 the command here, from execute_command and cmd_input_program.
123 Call set_completion_state and getl_set_prompt_style here.
124 (do_parse_command) Use in_correct_state instead of
125 verify_valid_command.
126 (verify_valid_command) Break into two new functions,
127 in_correct_state and report_state_mismatch.
128 (set_completion_state) New function.
129 (cmd_complete) New function.
130 [HAVE_READLINE] (pspp_attempted_completion_function) Removed.
131 [HAVE_READLINE] (command_generator) Removed.
133 * line-buffer.c: (struct getl_source) Change `interactive' member
134 signature to take enum getl_prompt_style instead of const char *.
135 (create_interactive_source) Ditto, for parameter type.
136 (getl_append_interactive) Ditto.
137 (read_line_from_source) Pass get_prompt_style() to interactive
138 function instead of get_prompt().
139 (get_prompt) Removed.
140 (get_prompt_style) New function.
142 Sat May 6 13:25:25 2006 Ben Pfaff <blp@gnu.org>
144 Continue reforming procedure execution. In this phase, remove
145 PROCESS IF, which was deprecated anyway and can be easily
146 simulated with TEMPORARY followed by SELECT IF.
148 * command.def: Removed PROCESS IF.
150 Mon May 1 18:17:52 2006 Ben Pfaff <blp@gnu.org>
152 Further clean up the CMD_* command result codes.
154 * command.c (cmd_result_is_valid): New function.
155 (cmd_result_is_success) Assert that argument is valid. Simplified
156 check to one for a positive result.
157 (cmd_result_is_failure) Assert that argument is valid. Simplified
158 check to one for a negative result.
159 (do_parse_command) Check that command's returned result is valid.
161 * command.h: (enum cmd_result) Renamed CMD_QUIT to CMD_FINISH and
162 updated all users. Removed CMD_END_SUBLOOP in favor of new
163 CMD_PRIVATE_FIRST...CMD_PRIVATE_LAST range. Changed failure codes
164 to have negative values.
166 Mon May 1 15:56:56 2006 Ben Pfaff <blp@gnu.org>
168 Remove vestiges of FILE TYPE support.
170 * command.def: Mark FILE TYPE, RECORD TYPE unimplemented.
172 Wed Apr 26 21:13:46 2006 Ben Pfaff <blp@gnu.org>
174 CLEAR TRANSFORMATIONS is unsafe as implemented. It's a fair
175 amount of work to implement it correctly, so make it
178 * command.c: (cmd_clear_transformations) Removed.
180 * command.def: Mark CLEAR TRANSFORMATIONS as unimplemented.
182 Wed Apr 26 13:06:42 2006 Ben Pfaff <blp@gnu.org>
184 Work on readline completion.
186 * command.c: (pspp_completion_function) Removed.
187 (pspp_attempted_completion_function) New function.
188 (command_generator) New function.
190 Wed Apr 26 13:04:48 2006 Ben Pfaff <blp@gnu.org>
192 Improve the way we handle the various parsing "states". Until now
193 we've hard-coded the state transitions in the command definition
194 file, but that's error-prone and, worse, it's redundant--we can
195 figure out what state we're in anyhow. We can cleanly handle
196 INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
198 * command.c: (cmd_result_is_success) New function.
199 (cmd_result_is_failure) New function.
200 (enum states) New enum.
201 (enum flags) New enum.
202 (struct command) Add states, flags members. Remove transition,
203 skip_entire_name, debug members. Renamed func member as function.
204 (macro DEFCMD) Removed.
205 (macro DBGCMD) Removed.
206 (macro SPCCMD) Removed.
207 (macro UNIMPL) Removed.
209 (macro UNIMPL_CMD) New.
210 (macro COMMAND_CNT) Changed to static const var, renamed
211 command_cnt. Updated all references.
212 (FILE_TYPE_okay) Removed.
213 (cmd_parse) Rewrote in terms of do_parse_command().
214 (do_parse_command) New function.
215 (find_command) New function.
216 (unknown_command_error) Use struct string to simplify code.
217 (parse_command_name) Recognize comment command names. Handle
218 flags. Don't reject testing-mode-only commands here--let higher
220 (verify_valid_command) New function.
221 (cmd_comment) New function.
223 * command.def: Completely rewritten and now sensibly organized.
225 * command.h: (enum STATE_*) Renamed CMD_STATE_*.
226 (CMD_*) Now "enum cmd_result". Added CMD_QUIT. New
227 CMD_END_SUBLOOP. Removed CMD_TRAILING_GARBAGE, CMD_PART_SUCCESS,
228 CMD_PART_SUCCESS_MAYBE and replaced all references by CMD_FAILURE.
229 Added CMD_NOT_IMPLEMENTED.
230 (macro DEFCMD) Removed.
231 (macro DBGCMD) Removed.
232 (macro SPCCMD) Removed.
233 (macro UNIMPL) Removed.
235 (macro UNIMPL_CMD) New.
237 Mon Apr 3 11:03:36 2006 Ben Pfaff <blp@gnu.org>
239 * list.q: (write_all_headers) Adapt to new html and output
242 (write_varname) Ditto.
243 (write_fallback_headers) Ditto.
244 (determine_layout) Ditto.
248 Thu Mar 2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
250 * Moved files from src directory