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