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