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