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