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