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