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