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