1 Sat Dec 16 22:15:55 2006 Ben Pfaff <blp@gnu.org>
3 Make it possible to pull cases from the active file with a
4 function call, instead of requiring indirection through a callback
7 * command.def: Marked MATRIX DATA as unimplemented.
9 Sun Dec 3 11:59:10 2006 Ben Pfaff <blp@gnu.org>
11 * syntax-file.c (read_syntax_file): Always read GETL_BATCH lines.
13 Wed Nov 29 19:35:44 WST 2006 John Darrington <john@darrington.wattle.id.au>
15 * command.c: Updated to reflect changed function names.
17 * line-buffer.c line-buffer.h: Removed. Guts of it moved to
18 libpspp/getl.[ch] The rest moved to files listed below.
20 * syntax-file.c syntax-file.h prompt.c prompt.h: New files.
22 Wed Nov 22 06:26:42 2006 Ben Pfaff <blp@gnu.org>
24 * command.def: HOST command needs F_KEEP_FINAL_TOKEN.
26 Sat Oct 28 16:15:56 WST 2006 John Darrington <john@darrington.wattle.id.au>
28 * linebuffer.c linebuffer.h: Moved getl_buf from here, into
31 Thu Oct 26 20:19:00 2006 Ben Pfaff <blp@gnu.org>
33 * command.def: Add DEBUG FLOAT FORMAT.
35 Fri Oct 20 10:59:06 WST 2006 John Darrington <john@darrington.wattle.id.au>
37 * command.def: Added additional unimpl commands.
39 Sun Oct 15 19:38:55 2006 Ben Pfaff <blp@gnu.org>
41 * command.c: (do_parse_command) Issue an error for unimplemented
42 commands, instead of silently ignoring them. Reported by John
45 Wed Jun 28 11:38:23 2006 Ben Pfaff <blp@gnu.org>
47 Don't offer both the full and abbreviated names for a single
48 command in command name completion.
50 * command.c: (enum flags) Add F_ABBREV flag.
51 (cmd_complete) Ignore command with F_ABBREV flag set.
53 * command.def: Add F_ABBREV to N, Q, SORT commands.
55 Tue Jun 27 22:36:38 2006 Ben Pfaff <blp@gnu.org>
57 Fix regression in command name completion reported by John
58 Darrington. Now completion is again state-dependent and occurs
59 only on the first line of a command.
61 * command.c (do_parse_command): Move reading the first token of
62 the command here, from execute_command and cmd_input_program.
63 Call set_completion_state and getl_set_prompt_style here.
64 (do_parse_command) Use in_correct_state instead of
66 (verify_valid_command) Break into two new functions,
67 in_correct_state and report_state_mismatch.
68 (set_completion_state) New function.
69 (cmd_complete) New function.
70 [HAVE_READLINE] (pspp_attempted_completion_function) Removed.
71 [HAVE_READLINE] (command_generator) Removed.
73 * line-buffer.c: (struct getl_source) Change `interactive' member
74 signature to take enum getl_prompt_style instead of const char *.
75 (create_interactive_source) Ditto, for parameter type.
76 (getl_append_interactive) Ditto.
77 (read_line_from_source) Pass get_prompt_style() to interactive
78 function instead of get_prompt().
80 (get_prompt_style) New function.
82 Sat May 6 13:25:25 2006 Ben Pfaff <blp@gnu.org>
84 Continue reforming procedure execution. In this phase, remove
85 PROCESS IF, which was deprecated anyway and can be easily
86 simulated with TEMPORARY followed by SELECT IF.
88 * command.def: Removed PROCESS IF.
90 Mon May 1 18:17:52 2006 Ben Pfaff <blp@gnu.org>
92 Further clean up the CMD_* command result codes.
94 * command.c (cmd_result_is_valid): New function.
95 (cmd_result_is_success) Assert that argument is valid. Simplified
96 check to one for a positive result.
97 (cmd_result_is_failure) Assert that argument is valid. Simplified
98 check to one for a negative result.
99 (do_parse_command) Check that command's returned result is valid.
101 * command.h: (enum cmd_result) Renamed CMD_QUIT to CMD_FINISH and
102 updated all users. Removed CMD_END_SUBLOOP in favor of new
103 CMD_PRIVATE_FIRST...CMD_PRIVATE_LAST range. Changed failure codes
104 to have negative values.
106 Mon May 1 15:56:56 2006 Ben Pfaff <blp@gnu.org>
108 Remove vestiges of FILE TYPE support.
110 * command.def: Mark FILE TYPE, RECORD TYPE unimplemented.
112 Wed Apr 26 21:13:46 2006 Ben Pfaff <blp@gnu.org>
114 CLEAR TRANSFORMATIONS is unsafe as implemented. It's a fair
115 amount of work to implement it correctly, so make it
118 * command.c: (cmd_clear_transformations) Removed.
120 * command.def: Mark CLEAR TRANSFORMATIONS as unimplemented.
122 Wed Apr 26 13:06:42 2006 Ben Pfaff <blp@gnu.org>
124 Work on readline completion.
126 * command.c: (pspp_completion_function) Removed.
127 (pspp_attempted_completion_function) New function.
128 (command_generator) New function.
130 Wed Apr 26 13:04:48 2006 Ben Pfaff <blp@gnu.org>
132 Improve the way we handle the various parsing "states". Until now
133 we've hard-coded the state transitions in the command definition
134 file, but that's error-prone and, worse, it's redundant--we can
135 figure out what state we're in anyhow. We can cleanly handle
136 INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
138 * command.c: (cmd_result_is_success) New function.
139 (cmd_result_is_failure) New function.
140 (enum states) New enum.
141 (enum flags) New enum.
142 (struct command) Add states, flags members. Remove transition,
143 skip_entire_name, debug members. Renamed func member as function.
144 (macro DEFCMD) Removed.
145 (macro DBGCMD) Removed.
146 (macro SPCCMD) Removed.
147 (macro UNIMPL) Removed.
149 (macro UNIMPL_CMD) New.
150 (macro COMMAND_CNT) Changed to static const var, renamed
151 command_cnt. Updated all references.
152 (FILE_TYPE_okay) Removed.
153 (cmd_parse) Rewrote in terms of do_parse_command().
154 (do_parse_command) New function.
155 (find_command) New function.
156 (unknown_command_error) Use struct string to simplify code.
157 (parse_command_name) Recognize comment command names. Handle
158 flags. Don't reject testing-mode-only commands here--let higher
160 (verify_valid_command) New function.
161 (cmd_comment) New function.
163 * command.def: Completely rewritten and now sensibly organized.
165 * command.h: (enum STATE_*) Renamed CMD_STATE_*.
166 (CMD_*) Now "enum cmd_result". Added CMD_QUIT. New
167 CMD_END_SUBLOOP. Removed CMD_TRAILING_GARBAGE, CMD_PART_SUCCESS,
168 CMD_PART_SUCCESS_MAYBE and replaced all references by CMD_FAILURE.
169 Added CMD_NOT_IMPLEMENTED.
170 (macro DEFCMD) Removed.
171 (macro DBGCMD) Removed.
172 (macro SPCCMD) Removed.
173 (macro UNIMPL) Removed.
175 (macro UNIMPL_CMD) New.
177 Mon Apr 3 11:03:36 2006 Ben Pfaff <blp@gnu.org>
179 * list.q: (write_all_headers) Adapt to new html and output
182 (write_varname) Ditto.
183 (write_fallback_headers) Ditto.
184 (determine_layout) Ditto.
188 Thu Mar 2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
190 * Moved files from src directory